summaryrefslogtreecommitdiff
path: root/libguile/socket.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2017-02-15 22:01:51 +0100
committerAndy Wingo <wingo@pobox.com>2017-02-15 22:10:25 +0100
commit6e0965104c579431e5a786b60e1a964a112c73b8 (patch)
tree20039c935d8968fcc6d0b50b45a52026165088d1 /libguile/socket.h
parent9399c1347918fb9b39ee4b1443bcc0df78ebf750 (diff)
downloadguile-6e0965104c579431e5a786b60e1a964a112c73b8.tar.gz
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.
Diffstat (limited to 'libguile/socket.h')
-rw-r--r--libguile/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/socket.h b/libguile/socket.h
index a211867c6..d7c368a22 100644
--- a/libguile/socket.h
+++ b/libguile/socket.h
@@ -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);