diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-03-18 21:28:05 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-03-18 22:30:13 +0100 |
commit | 5f24f1b53ed2c1746670ae8828a05cc7b63354e8 (patch) | |
tree | b60a7f98a834391ea4b24bf0ecd6c37f0d4bf996 /libguile/socket.c | |
parent | 1ea37620c2c1794f7685b312d2530676a078ada7 (diff) |
Define the new Linux-specific `SO_REUSEPORT'.
* libguile/socket.c (scm_init_socket)[SO_REUSEPORT]: Define
`SO_REUSEPORT'.
(scm_setsockopt, scm_getsockopt): Update docstring.
* doc/ref/posix.texi (Network Sockets and Communication): List
`SO_REUSEPORT'.
Diffstat (limited to 'libguile/socket.c')
-rw-r--r-- | libguile/socket.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libguile/socket.c b/libguile/socket.c index bed069b83..fd5bea87c 100644 --- a/libguile/socket.c +++ b/libguile/socket.c @@ -510,6 +510,7 @@ SCM_DEFINE (scm_getsockopt, "getsockopt", 3, 0, 0, "@defvarx SO_OOBINLINE\n" "@defvarx SO_NO_CHECK\n" "@defvarx SO_PRIORITY\n" + "@defvarx SO_REUSEPORT\n" "The value returned is an integer.\n" "@end defvar\n" "\n" @@ -608,6 +609,7 @@ SCM_DEFINE (scm_setsockopt, "setsockopt", 4, 0, 0, "@defvarx SO_OOBINLINE\n" "@defvarx SO_NO_CHECK\n" "@defvarx SO_PRIORITY\n" + "@defvarx SO_REUSEPORT\n" "@var{value} is an integer.\n" "@end defvar\n" "\n" @@ -1856,6 +1858,9 @@ scm_init_socket () #ifdef SO_LINGER scm_c_define ("SO_LINGER", scm_from_int (SO_LINGER)); #endif +#ifdef SO_REUSEPORT /* new in Linux 3.9 */ + scm_c_define ("SO_REUSEPORT", scm_from_int (SO_REUSEPORT)); +#endif /* recv/send options. */ #ifdef MSG_DONTWAIT |