84 Commits

Author SHA1 Message Date
Bernhard Reutner-Fischer
6ff9c31abc utmp: favour POSIX utmpx over SVID utmp
Note: _PATH_UTMPX == _PATH_UTMP and the utmp struct is identical to the
utmpx struct so this only changes the external API entrypoints and NOT
the underlying data source.

This saves about 500b (~1300b from previously ~1950) while at it.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-25 23:59:45 +01:00
Bernhard Reutner-Fischer
4da43e9f2e buildsys: HAS_UTMP (XPG2, SVr4 compat) knob
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-24 00:11:21 +01:00
Bernhard Reutner-Fischer
eee76e42f3 libc: TIME64_COMPAT32 for sparc, mips
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-24 00:11:15 +01:00
Mike Frysinger
266bdc1f62 Replace FSF snail mail address with URLs
This matches a similar change made to glibc.

No functional changes here.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-18 06:03:38 -05:00
Bernd Schmidt bernds_cb1@t-online.de
f4eebb6146 Add Makefile support for DSBT ELF.
This adds support for a new binary format, DSBT ELF, to the Makefiles.
Every shared library is assigned a DSBT index, and the link.so macro is
adjusted to ensure the correct linker argument is passed.

Configuration and ldso support will follow in separate commits.

Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-03-05 18:09:46 +01:00
Natanael Copa
71239593ef nptl: proper soname handling
Since sublevel releases are not ABI compatible we need to adjust
the soname to include the sublevel version.

This makes it possible to install ABI incompatible versions of the
library side by side so clean upgrades are possible.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2010-04-22 08:39:36 -07:00
Denys Vlasenko
b2f0faf042 libutil/login: was totally broken. fixed
Also made login() and logout() usable with utmpname(non_std_utmp_file)
   text           data     bss     dec     hex filename
    111              0       0     111      6f libutil/login.o
    217              0       0     217      d9 libutil/login.o
   text           data     bss     dec     hex filename
    164              0       0     164      a4 libutil/logout.o
    134              0       0     134      86 libutil/logout.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-04-05 19:27:41 +02:00
Bernhard Reutner-Fischer
abdbaa897b prettify make clean
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-03-25 15:39:02 +01:00
Bernhard Reutner-Fischer
3b547855d9 libutil: provide knob to disable it
These tty utility functions are non-standard. They usually
are available on BSD and/or glibc based systems.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-11-19 18:21:10 +01:00
Denys Vlasenko
45f5c6f25b wtmp code: style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-05 23:30:57 +02:00
Bernhard Reutner-Fischer
49d8a0e9c6 support building out-of-tree
Handle O=

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-08-17 19:17:00 +02:00
Bernhard Reutner-Fischer
b74c3aa1a9 - less verbose make clean 2008-11-07 21:15:53 +00:00
Bernhard Reutner-Fischer
1f020b1786 - trim any trailing whitespace 2008-07-23 11:23:36 +00:00
Bernhard Reutner-Fischer
63abaebc01 - move stripping into do_ar resp compile-m for the sake of simplicity 2008-06-17 14:20:36 +00:00
Bernhard Reutner-Fischer
bf765e60dd - strip the targets and not prerequisites
- tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few

  This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.
2008-06-04 14:57:16 +00:00
Bernhard Reutner-Fischer
4cc4b30426 - adds several config-options to allow for turning off certain features
like
  o UCLIBC_HAS_GNU_ERROR
  o UCLIBC_HAS_BSD_ERR
  o UCLIBC_HAS_PTY
  o UCLIBC_HAS_GETPT (1)
  o UCLIBC_SYSCALL_STUBS
  o UCLIBC_SYSCALL_STUB_WARNING
  o UCLIBC_LINUX_SPECIFIC (2)
  o UCLIBC_BSD_SPECIFIC (3)
  o UCLIBC_NTP_LEGACY (4)
  o UCLIBC_SV4_DEPRECATED (5)
  o UCLIBC_HAVE_REALTIME (6)
  o UCLIBC_HAVE_ADVANCED_REALTIME (7)
  o UCLIBC_HAVE_EPOLL (8)
  o UCLIBC_HAVE_XATTR (9)
  o UCLIBC_HAVE_PROFILING (10)

(1) make non-standard getpt optional and implement standard posix_openpt
(2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(),
    personality()
    ppoll(), setresuid()
(3) mincore(), getdomainname(), setdomainname()
(4) ntp_adjtime(), ntp_gettime() aliases
(5) ustat() [use statfs(2) in your code instead]
(6) All marked as "(REALTIME)" in SUSv3
(7) All marked as "(ADVANCED REALTIME)" in SUSv3
(8) epoll_create(), epoll_ctl(), epoll_wait()
(9) all Extended Attributes
(10) helpers for gcc's -finstrument-functions

- Fixes _dl_exit()
- Implements sleep(3) for !UCLIBC_HAVE_REALTIME
- Implements usleep(3) for !UCLIBC_HAVE_REALTIME
- adds #warning about incorrect posix_fadvise{,64}()
- removes unused and unwanted uselib()

Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead 
of formerly 130k.
2008-06-03 08:11:56 +00:00
Bernd Schmidt
68d02d6473 A slight improvement over my previous commit which ensured we always rebuild
libc when one of the source files changes.

Since there are more places which want to depend on $(libc), fix them all to
use a new variable $(libc.depend), which contains the filename for which we
have a rule.
2008-06-01 16:49:23 +00:00
Bernhard Reutner-Fischer
534b77f460 - Avoid warning about undefined preprocessor token. No obj-code changes. 2008-05-30 17:58:47 +00:00
Bernhard Reutner-Fischer
11975abb2c - remove old-style definitions. No object-code changes. 2008-05-20 08:47:51 +00:00
Mike Frysinger
6bc45b2d57 #1273 if EXTRAVERSION is set, make sure we respect it 2007-03-19 09:49:04 +00:00
Eric Andersen
f79ff0842e fixup my copyright notice, trim stale remnants of older notices which
I had clearly run search/replace on that were cluttering things up.
2006-07-05 18:38:37 +00:00
Mike Frysinger
010301e968 tweak the idea between having a MMU and actually using it 2006-02-18 07:03:24 +00:00
Peter S. Mazinger
a29eb4f241 DOMULTI may be used for libc, the excluded files need work, linuxthreads[_db] as well, don't try on slow box 2006-02-15 18:12:03 +00:00
Peter S. Mazinger
df31d32b41 Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA is a useless attempt 2006-01-22 19:35:08 +00:00
Peter S. Mazinger
6a4a2506e0 Add -D_GNU_SOURCE to CFLAGS, else openpty picks the XOPEN variant of fd_set 2006-01-20 11:59:06 +00:00
Peter S. Mazinger
548f1e2092 Add multi support to libm, remove lib*-multi-y, unneeded 2006-01-19 20:43:50 +00:00
Peter S. Mazinger
cd84f06dcf Add target strip command and use it, also disable for now CFLAGS-multi-y, after splitting all MSRC, it won't be needed 2006-01-18 21:12:52 +00:00
Peter S. Mazinger
625d50e90b Add IMA build rules 2006-01-18 21:05:37 +00:00
Peter S. Mazinger
6f2aa010fb Convert to hidden_def 2006-01-16 21:39:33 +00:00
Mike Frysinger
164c1d8ffb import 32/64 bit compat support from glibc 2005-11-23 13:17:18 +00:00
Mike Frysinger
26340613a0 sync with glibc 2005-11-23 12:53:58 +00:00
Peter S. Mazinger
72c0f6a2d6 Depedencies corrected (less make oldconfig/headers), rerunning make remakes only headers 2005-11-22 21:45:24 +00:00
Mike Frysinger
b20ee706ef rework depends and stripping so that libraries arent rebuilt all the time in a loop 2005-11-22 01:44:51 +00:00
Peter S. Mazinger
e2d30731f8 Use internal hidden versions of __login_tty/__openpty 2005-11-21 20:40:14 +00:00
Peter S. Mazinger
ba31c6c463 Remove TOPDIR 2005-11-21 16:15:55 +00:00
Peter S. Mazinger
31ae4299f5 Add info to CFLAGS about lib we are building 2005-11-18 20:37:59 +00:00
Peter S. Mazinger
0a7b9d5d57 Include all lib*/Makefile.in in top_srcdir/Makefile.in, allows adding foreign objects to a lib 2005-11-17 22:56:02 +00:00
Peter S. Mazinger
e6aa37afc9 Replace all Makefiles for new build infrastucture 2005-10-29 10:16:07 +00:00
Peter S. Mazinger
237277e9a8 Moved guard_setup to dl-osinfo.h (used commonly by ldso and libc). Renamed to _dl_setup_stack_chk_guard, as in glibc. SSP requires now binutils-2.16.1 and newer. Add NOT_IN_libc/IS_IN_libc. Began using -DSHARED in uClibc_main.c, there are more candidates in there. Move back dl_protect_relro to it's earlier place. 2005-10-27 22:58:52 +00:00
Peter S. Mazinger
bddfb866b0 Default changed to IMA compiling, disabled explicitely where currently not possible. Add clean targets for linuxthreads[_db]. 2005-10-26 08:15:03 +00:00
Peter S. Mazinger
a80fc77b65 All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally. 2005-10-25 22:17:39 +00:00
Peter S. Mazinger
5e48b8b628 Add the current implementation to review 2005-10-19 20:19:47 +00:00
Peter S. Mazinger
3a7ac9c7a7 Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much. 2005-10-12 16:12:36 +00:00
Peter S. Mazinger
998913a5ce Do not defer expansions where useless, like CSRC/OBJS/LIB_NAME/AR_LIB_NAME, defer only for shared lib related stuff, because it is optional. Run STRIPTOOL only once. More use of /$^/$<. 2005-10-11 23:05:36 +00:00
Peter S. Mazinger
99720814c3 Missed OBJS definition in libcrypt/libutil. Use := where possible 2005-10-11 20:49:07 +00:00
Peter S. Mazinger
c60a8a994f Undo size optimizing patch that does not work with gcc-4.1-head, reported by sjhill, thanks cow for testing 2005-10-11 19:42:32 +00:00
Peter S. Mazinger
8e87f7ffea Doing the compile in one step creates smaller archives, libcrypt.a shrinks from 12k to 10k, libutil.a to 8k to 4k. Use make provided features where possible /$</$^. 2005-10-07 16:27:57 +00:00
Peter S. Mazinger
f70602be19 Remove ar-target and shared targets, at build time now we traverse the tree only once. Generalize all toplevel makefiles. Make sure, that libdl.so is built against libc.so and not libc.a 2005-09-28 12:34:41 +00:00
Peter S. Mazinger
0929e196d2 no check needed in libm/libpthread, we do not recurse anymore if the related option is not set, more Makefile cleanups 2005-09-22 09:45:02 +00:00
Mike Frysinger
4203076cd1 no more cvs 2005-02-12 20:59:08 +00:00