summaryrefslogtreecommitdiff
path: root/src/sys/select.rs
diff options
context:
space:
mode:
authorGeoffrey Thomas <geofft@ldpreload.com>2015-08-23 22:15:07 -0400
committerGeoffrey Thomas <geofft@ldpreload.com>2015-10-06 19:30:26 -0400
commitb5c13463743d5c2e4dead1934b4abe74eceac104 (patch)
tree514f60bfdc6c113fd2e0e0fd243b70c251bfe4d5 /src/sys/select.rs
parent0529fb8e324157bb02908eac5cfd9d0fa99c130f (diff)
downloadnix-b5c13463743d5c2e4dead1934b4abe74eceac104.zip
Add support for sendmsg(2), recvmsg(2), and cmsg(3)
The best specification for control message layout appears to be [RFC 2292, section 4](https://tools.ietf.org/html/rfc2292#section-4), despite this not being a wire protocol. These definitions have also been checked against glibc 2.19 <bits/socket.h> and Linux 4.0 <linux/socket.h>, and tested on Debian 8.1 and FreeBSD 10.2 x86_64. The API differs a bit from the cmsg(3) API for type-safety reasons (and also because the cmsg(3) API is terrible). See test/sys/test_socket.rs for an example. Only supports SCM_RIGHTS at the moment. Fixes #88.
Diffstat (limited to 'src/sys/select.rs')
0 files changed, 0 insertions, 0 deletions