mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
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'.
This commit is contained in:
parent
1ea37620c2
commit
5f24f1b53e
2 changed files with 6 additions and 0 deletions
|
@ -3051,6 +3051,7 @@ Manual}, or @command{man 7 socket}.
|
|||
@defvarx SO_OOBINLINE
|
||||
@defvarx SO_NO_CHECK
|
||||
@defvarx SO_PRIORITY
|
||||
@defvarx SO_REUSEPORT
|
||||
The @var{value} taken or returned is an integer.
|
||||
@end defvar
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue