diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-08-06 04:56:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-08-06 04:56:04 +0000 |
commit | 489aa29d623782c2c4045065ef1a22a07af921af (patch) | |
tree | 2cd3f3b4e67e0e9fb1b7d2797dc6f58fcbcac851 /include/sys/socket.h | |
parent | a3c7fcf0f1249fd79b7f72ef49c99b198c4ea219 (diff) | |
download | glibc-489aa29d623782c2c4045065ef1a22a07af921af.tar.gz glibc-489aa29d623782c2c4045065ef1a22a07af921af.tar.xz glibc-489aa29d623782c2c4045065ef1a22a07af921af.zip |
Update.
* inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE, struct group_filter, and GROUP_FILTER_SIZE. * include/sys/socket.h: Declare __getsockopt. * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file. * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file. * sysdeps/unix/sysv/linux/setsourcefilter.c: New file. * sysdeps/unix/sysv/linux/getsourcefilter.c: New file.
Diffstat (limited to 'include/sys/socket.h')
-rw-r--r-- | include/sys/socket.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h index 05798095f8..937909a125 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -97,6 +97,13 @@ extern int __setsockopt (int __fd, int __level, int __optname, __const void *__optval, socklen_t __optlen) attribute_hidden; +/* Put the current value for socket FD's option OPTNAME at protocol level LEVEL + into OPTVAL (which is *OPTLEN bytes long), and set *OPTLEN to the value's + actual length. Returns 0 on success, -1 for errors. */ +extern int __getsockopt (int __fd, int __level, int __optname, + void *__restrict __optval, + socklen_t *__restrict __optlen) attribute_hidden; + /* Put the local address of FD into *ADDR and its length in *LEN. */ extern int __getsockname (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __len) attribute_hidden; |