aboutsummaryrefslogtreecommitdiff
path: root/librt
Commit message (Collapse)AuthorAgeFilesLines
* librt: Add missing __dso_handleGravatar Bernhard Reutner-Fischer2015-04-142-0/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: Refine LIBSGravatar Bernhard Reutner-Fischer2015-04-141-4/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: honour HAS_STUBS in buildsysGravatar Bernhard Reutner-Fischer2015-04-141-0/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: Rephrase librt.so library dependenciesGravatar Bernhard Reutner-Fischer2015-04-141-2/+5
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: Fix librt.so depends for !NPTLGravatar Bernhard Reutner-Fischer2015-04-141-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: Do not build crt upon pregenGravatar Bernhard Reutner-Fischer2015-03-311-1/+1
| | | | | | No need to build crt when just generating headers Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Revert "librt: Use -nodefaultlibs instead of -nostdlib"Gravatar Bernhard Reutner-Fischer2015-03-311-3/+0
| | | | | | | | This reverts commit 534f44d53146457b3ca686c47efb9207543b88e1. I don't think this is wanted. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: Use -nodefaultlibs instead of -nostdlibGravatar Khem Raj2015-03-221-0/+3
| | | | | | | | | | | | | nostdlib disables linking in startup files too which is not what we want here since it needs to resolve __dso_handle which comes from crtbeginS.o, otherwise librt has this undefined reference to a weak undefined __dso_handle that shows up as error (with gold linker) when shared libraries are being built which are linking in librt Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: fix mq_timed{send,receive} return instructionsGravatar Baruch Siach2013-12-202-2/+2
| | | | | | | | Not all architectures use 'ret' as function return instruction. For example, xtensa usually uses 'retw'. Use the ret_ERRVAL arch dependant macro instead. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Replace FSF snail mail address with URLsGravatar Mike Frysinger2012-11-183-9/+6
| | | | | | | | This matches a similar change made to glibc. No functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Reorder includes and include only what is necessaryGravatar Peter S. Mazinger2012-06-151-4/+1
| | | | | | | | Use param.h instead of MIN. Use stddef.h instead of offsetof. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: provide missing prototypes for mq_timedreceive,mq_timedsendGravatar Peter S. Mazinger2012-06-153-2/+12
| | | | | | | | | | If ADVANCED_REALTIME is disabled, these prototypes are missing and librt_hidden_proto() fails. Makefile.in: added a comment, we build mq_timedreceive/mq_timedsend on NPTL even if ADVANCED_REALTIME is disabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: get rid of visible __mq_timed(send,receive)Gravatar Peter S. Mazinger2012-06-152-10/+6
| | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* do not include libc-internal.hGravatar Peter S. Mazinger2012-06-151-1/+0
| | | | | | | it is already included by features.h Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: convince spawn to compile for !LFSGravatar Bernhard Reutner-Fischer2012-04-041-0/+9
| | | | | | Great to have this valuable family of high kwalitee functions in here. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* spawn: fix building on no-mmu systemsGravatar Mike Frysinger2012-03-261-1/+6
| | | | | | | We don't have fork() on no-mmu, so if we're going to end up calling it, return ENOSYS instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* spawn: do not require C99 styleGravatar Mike Frysinger2012-03-261-2/+4
| | | | | | Simple style tweak to build with older standards. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* librt: add posix_spawn supportGravatar Ismael Luceno2012-03-257-0/+493
| | | | | Signed-off-by: Ismael Luceno <ismael.luceno@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* librt: refactor source selectionGravatar Mike Frysinger2012-03-051-8/+11
| | | | | | | Should make adding more knob control simpler as people only need to modify one variable now (librt_filter_SRC). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* stubs: mark stubs as usedGravatar Bernhard Reutner-Fischer2012-01-181-0/+1
| | | | | | | Avoids warning from -Wunused-function about the alias target that is only used at link-time. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add Makefile support for DSBT ELF.Gravatar Bernd Schmidt bernds_cb1@t-online.de2011-03-051-0/+1
| | | | | | | | | | | 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>
* fix dependency on ADVANCED_REALTIMEGravatar Peter S. Mazinger2011-03-033-33/+75
| | | | | | | Do not depend on ADVANCED REALTIME for mq_send/mq_receive Added stubs implementation based on libc's stubs.c Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* librt: fix linking WRT pthreadsGravatar Bernhard Reutner-Fischer2010-06-171-3/+2
| | | | | | | | Linking order matters. Always did and still does today. See how this makes the ugly and wrong hack to put pthread symbols into librt _and_ linking librt against pthread moot? Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* librt: simplify handling LDFLAGSGravatar Bernhard Reutner-Fischer2010-06-171-9/+6
| | | | | | plus a few cosmetic touch-ups Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: proper soname handlingGravatar Natanael Copa2010-04-221-1/+1
| | | | | | | | | | | 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>
* Merge commit 'origin/master' into nptlGravatar Austin Foxley2010-04-021-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.in extra/Configs/Config.in libc/sysdeps/linux/common/bits/kernel-features.h libc/sysdeps/linux/common/poll.c libc/sysdeps/linux/common/sysdep.h libc/sysdeps/linux/sh/sysdep.h Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * prettify make cleanGravatar Bernhard Reutner-Fischer2010-03-251-2/+2
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | improve parallel make behaviourGravatar Austin Foxley2010-02-231-2/+2
| | | | | | | | | | | | | | | | * add library dependencies for libdl,libpthread * fix typo in librt/Makefile.in * also remove extra trailing slashes on i386, sparc pregen headers Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | mass sync with glibc nptlGravatar Austin Foxley2010-02-161-0/+8
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | librt additions that are now possible with nptlGravatar Austin Foxley2009-10-1710-52/+613
|/ | | | | | | * clock_getcpuclockid, clock_gettime, clock_nanosleep, mq_receive, mq_send, mq_timedreceive, mq_timedsend, _SC_MONOTONIC_CLOCK Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesGravatar Denys Vlasenko2009-09-181-9/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* do not save/restore errno around free() callsGravatar Denys Vlasenko2009-09-051-10/+6
| | | | | | | | In any non-buggy program free() does not fail. And when it fails in a buggy program, the failure is usually fatal (heap corruption and segfault). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failureGravatar Denys Vlasenko2009-09-051-7/+10
| | | | | | | | | | | | text data bss dec hex filename - 370 0 0 370 172 libc/misc/dirent/opendir.o + 366 0 0 366 16e libc/misc/dirent/opendir.o - 375 4 0 379 17b libc/pwd_grp/lckpwdf.o + 356 4 0 360 168 libc/pwd_grp/lckpwdf.o - 248 0 0 248 f8 librt/shm.o + 209 0 0 209 d1 librt/shm.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* support building out-of-treeGravatar Bernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add a few missing includesGravatar Ron2009-07-051-0/+1
| | | | | | | | elf.h needs __BYTE_ORDER, and s_scalbn.c needs {LONG,INT}_MAX. shm.c complains about no prototypes for shm_{open,unlink} without its header. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add testcases for shm_{open,unlink}Gravatar Bernhard Reutner-Fischer2009-07-031-0/+4
| | | | | Reported-by: Mikael Lund Jepsen <mlj@iccc.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* include errno.h unconditionallyGravatar Bernhard Reutner-Fischer2009-06-021-4/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* add stub for shm_open() and shm_unlinkGravatar Bernhard Reutner-Fischer2009-06-021-0/+98
| | | | | | Untested and needs testsuite exercise added Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* - also link librt with --as-needed and do so unconditionally to work aroundGravatar Bernhard Reutner-Fischer2009-01-221-1/+1
| | | | | | bugs in gentoo's QA. Just add UCLIBC_HAS_SSP to the "and" of link.asneeded to properly take SSP into account, if you prefer.
* CLean librt/*.oS too (NPTL will add some).Gravatar Carmelo Amoroso2008-12-041-1/+1
|
* - less verbose make cleanGravatar Bernhard Reutner-Fischer2008-11-071-2/+2
|
* - disentangle REALTIME from ADVANCED_REALTIME (Peter S. Mazinger)Gravatar Bernhard Reutner-Fischer2008-10-062-29/+46
|
* - fix inline keywordGravatar Bernhard Reutner-Fischer2008-07-2311-11/+11
|
* - move stripping into do_ar resp compile-m for the sake of simplicityGravatar Bernhard Reutner-Fischer2008-06-171-2/+0
|
* - strip the targets and not prerequisitesGravatar Bernhard Reutner-Fischer2008-06-041-2/+2
| | | | | | - 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.
* - adds several config-options to allow for turning off certain featuresGravatar Bernhard Reutner-Fischer2008-06-033-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* A slight improvement over my previous commit which ensured we always rebuildGravatar Bernd Schmidt2008-06-011-2/+2
| | | | | | | | | 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.
* #1273 if EXTRAVERSION is set, make sure we respect itGravatar Mike Frysinger2007-03-191-1/+1
|
* Kay McCormick reports: when evp is NULL, it is reset too late and so can ↵Gravatar Mike Frysinger2007-02-091-15/+14
| | | | cause a crash when it is dereferenced
* run through LindentGravatar Mike Frysinger2007-02-0912-119/+123
|