mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 20:05:32 +02:00
Add accept4 support
* doc/ref/posix.texi (Network Sockets and Communication): Add documentation. * libguile/socket.c (scm_accept4): New function, replaces accept implementation. (scm_accept): Call scm_accept4. (scm_init_socket): Define SOCK_CLOEXEC and SOCK_NONBLOCK. * libguile/socket.h: Add private scm_accept4 decl. * module/ice-9/suspendable-ports.scm (accept): Update.
This commit is contained in:
parent
9399c13479
commit
6e0965104c
4 changed files with 28 additions and 9 deletions
|
@ -42,6 +42,7 @@ SCM_API SCM scm_shutdown (SCM sfd, SCM how);
|
|||
SCM_API SCM scm_connect (SCM sockfd, SCM fam, SCM address, SCM args);
|
||||
SCM_API SCM scm_bind (SCM sockfd, SCM fam, SCM address, SCM args);
|
||||
SCM_API SCM scm_listen (SCM sfd, SCM backlog);
|
||||
SCM_INTERNAL SCM scm_accept4 (SCM sockfd, SCM flags);
|
||||
SCM_API SCM scm_accept (SCM sockfd);
|
||||
SCM_API SCM scm_getsockname (SCM sockfd);
|
||||
SCM_API SCM scm_getpeername (SCM sockfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue