summaryrefslogtreecommitdiff
path: root/sysdeps/mach
AgeCommit message (Collapse)Author
2018-12-28fix mergeHEADtschwinge/Roger_WhittakerSamuel Thibault
2018-12-27fix mergeSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-12-27Merge branch 't/sysvshm' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Fix warningsSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-12-27Merge branch 't/sendmsg-SCM_RIGHTS' into ↵Samuel Thibault
refs/top-bases/tschwinge/Roger_Whittaker
2018-12-27Fix build with inlinesSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-12-27Merge branch 'fixes-2.28' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27hurd: Fix last-minute refactoringfixes-2.28Samuel Thibault
* sysdeps/mach/hurd/msync.c (msync): Fix syntax.
2018-12-27Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-12-27Merge branch 'fixes-2.28' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Fix mergeSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-12-27Merge branch 't/UTIME' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Merge branch 't/gsync-libc' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Merge branch 't/ifaddrs_v6' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Merge branch 't/____longjmp_chk' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Merge branch 't/tls-threadvar' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27Merge branch 't/tls' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2018-12-27hurd: Support msyncSamuel Thibault
* sysdeps/mach/hurd/msync.c: New file.
2018-12-27Merge branch 't/tls-threadvar' into refs/top-bases/t/gsync-libc-mergeSamuel Thibault
2018-12-27Merge branch 't/tls' into refs/top-bases/t/tls-threadvarSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/t/sysvshm' into t/sysvshmSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/t/sendmsg-SCM_RIGHTS' into t/sendmsg-SCM_RIGHTSSamuel Thibault
2018-12-27Merge commit 'refs/top-bases/t/ifaddrs_v6' into t/ifaddrs_v6t/ifaddrs_v6Samuel Thibault
2018-08-09Avoid PLTSamuel Thibault
2018-08-07Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-08-07Merge branch 't/hurdsig-SA_SIGINFO' into ↵Samuel Thibault
refs/top-bases/tschwinge/Roger_Whittaker
2018-08-07Fix standardization of exposition of sigactionSamuel Thibault
2018-08-06Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into ↵Samuel Thibault
tschwinge/Roger_Whittaker
2018-08-06Merge branch 't/hurdsig-SA_SIGINFO' into ↵Samuel Thibault
refs/top-bases/tschwinge/Roger_Whittaker
2018-08-06Add missing inclusion guardSamuel Thibault
2018-08-01hurd: Fix exec usage of mach_setup_threadSamuel Thibault
Exec needs that mach_setup_thread does *not* set up TLS since it works on another task, so we have to split this into mach_setup_tls. * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes. * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to... (__mach_setup_tls): ... new function. (mach_setup_tls): New alias. * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after __mach_setup_thread. * sysdeps/mach/hurd/profil.c (update_waiter): Likewise. * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise. * mach/Versions [libc] (mach_setup_tls): Add symbol. * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
2018-07-31hurd: Fix startup of static binaries linked against libpthreadSamuel Thibault
* sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS initialization... (init): ... before initializing libpthread.
2018-07-28hurd: Fix some ld.so symbol override from libcSamuel Thibault
ld.so symbols to be overriden by libc need to be extern to really get overriden. * sysdeps/mach/hurd/not-errno.h: New file. * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
2018-07-28hurd: Fix some ld.so symbol override from libcSamuel Thibault
ld.so symbols to be overriden by libc need to be extern to really get overriden. * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read, __sbrk): Do not set attribute_hidden. * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly. * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
2018-07-27hurd: Fix some ld.so symbol override from libcSamuel Thibault
ld.so symbols to be overriden by libc need to be extern to really get overriden. More fixes are needed to avoid the hidden attribute. * sysdeps/mach/hurd/Versions (libc): Make __access and __access_noerrno external so they can override the ld symbols. (ld): Make __access, __read, __sbrk, __strtoul_internal, __write, __writev, __open64, __access_noerrno extern so they can be overrided. * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly. * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
2018-07-20check-execstack: Permit sysdeps to xfail some libsSamuel Thibault
* scripts/check-execstack.awk: Consider `xfail' variable containing a list of libraries whose stack executability is expected. * elf/Makefile ($(objpfx)check-execstack.out): Pass $(check-execstack-xfail) to check-execstack.awk through `xfail' variable. * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so libc.so libpthread.so.
2018-07-20hurd: Fix installed-headers testsSamuel Thibault
* sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Do not declare libc hidden prototypes. * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
2018-07-20Fix new file headerSamuel Thibault
2018-07-20hurd: Implement pipe2Thomas Schwinge
* sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to implement __pipe2. * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
2018-07-20hurd: SOCK_CLOEXEC and SOCK_NONBLOCK for socketpairThomas Schwinge
* sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC and SOCK_NONBLOCK.
2018-07-20hurd: SOCK_CLOEXEC and SOCK_NONBLOCK for socketThomas Schwinge
* sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and SOCK_NONBLOCK.
2018-07-20hurd: Enable thread-safe i386 atomic instructionsSamuel Thibault
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads to 1.
2018-07-10Add the statx functionFlorian Weimer
2018-07-05Add renameat2 function [BZ #17662]Florian Weimer
The implementation falls back to renameat if renameat2 is not available in the kernel (or in the kernel headers) and the flags argument is zero. Without kernel support, a non-zero argument returns EINVAL, not ENOSYS. This mirrors what the kernel does for invalid renameat2 flags.
2018-07-03Fix hurd expected fcntl versionAdhemerval Zanella
Different than Linux, hurd does not need the OFD locks fix from 06ab719d30b (since OFD locks are current Linux specific). This in turn allows hurd to not provide a fcntl compat symbol. Checked on a i686-gnu with check-abi. * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove symbol.
2018-06-29libc: Extend __libc_freeres framework (Bug 23329).Carlos O'Donell
The __libc_freeres framework does not extend to non-libc.so objects. This causes problems in general for valgrind and mtrace detecting unfreed objects in both libdl.so and libpthread.so. This change is a pre-requisite to properly moving the malloc hooks out of malloc since such a move now requires precise accounting of all allocated data before destructors are run. This commit adds a proper hook in libc.so.6 for both libdl.so and for libpthread.so, this ensures that shm-directory.c which uses freeit () to free memory is called properly. We also remove the nptl_freeres hook and fall back to using weak-ref-and-check idiom for a loaded libpthread.so, thus making this process similar for all DSOs. Lastly we follow best practice and use explicit free calls for both libdl.so and libpthread.so instead of the generic hook process which has undefined order. Tested on x86_64 with no regressions. Signed-off-by: DJ Delorie <dj@redhat.com> Signed-off-by: Carlos O'Donell <carlos@redhat.com>