aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/bits/socket.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* workaround another sendmsg kernel bug on 64-bit machines•••the kernel wrongly expects the cmsg length field to be size_t instead of socklen_t. in order to work around the issue, we have to impose a length limit and copy to a local buffer. the length limit should be more than sufficient for any real-world use; these headers are only used for passing file descriptors and permissions between processes over unix sockets. Rich Felker2012-07-121-0/+8
* cleanup more bits cruft (sysmacros and socket)Rich Felker2011-09-181-200/+0
* socket headers macro adjustment - workaround for buggy programs•••some program was undefining AF_NETLINK and thereby breaking AF_ROUTE... Rich Felker2011-07-211-1/+1
* workaround broken msghdr struct on 64bit linux•••POSIX clearly specifies the type of msg_iovlen and msg_controllen, and Linux ignores it and makes them both size_t instead. to work around this we add padding (instead of just using the wrong types like glibc does), but we also need to patch-up the struct before passing it to the kernel in case the caller did not zero-fill it. if i could trust the kernel to just ignore the upper 32 bits, this would not be necessary, but i don't think it will ignore them... Rich Felker2011-04-081-2/+2
* Update x86_64 bits to mirror (modulo platform differences) the latest changes•••to i386. Nicholas J. Kain2011-02-151-2/+0
* Port musl to x86-64. One giant commit!Nicholas J. Kain2011-02-151-0/+212