summaryrefslogtreecommitdiffstats
path: root/lib/libc/hidden/sys/socket.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-071-1/+8
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
* recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!)guenther2015-10-041-1/+3
| | | | so wrap them to make internal calls go direct
* getpeereid() and sockatmark() are neither used in libc nor in ISO C, so markguenther2015-10-041-1/+3
| | | | them deprecated and weak
* Add PROTO_WRAP() for (almost) all the syscalls that libpthread doesn'tguenther2015-09-111-0/+35
override so that internal calls go direct ok deraadt@