summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-05-11 11:31:45 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-05-11 11:58:07 +0200
commit74a2c71153b910ee4773866ee30be84730a4d5b8 (patch)
tree41ac5d32a5b40f4acdd0d0bee0831696df0d12bb /include
parent46e3df937b05fa291470e975cd836c5435aa0ecc (diff)
accept4: Implement cancellation
.. and add proper prototype, move it into it's own obj and other such cleanups. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/sys/socket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 0824fc855..5d38f1105 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -227,6 +227,15 @@ extern int accept (int __fd, __SOCKADDR_ARG __addr,
socklen_t *__restrict __addr_len);
libc_hidden_proto(accept)
+#ifdef __USE_GNU
+/* Similar to 'accept' but takes an additional parameter to specify flags.
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
+extern int accept4 (int __fd, __SOCKADDR_ARG __addr,
+ socklen_t *__restrict __addr_len, int __flags);
+#endif
+
/* Shut down all or part of the connection open on socket FD.
HOW determines what to shut down:
SHUT_RD = No more receptions;