diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-01-15 18:40:05 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-01-15 18:40:05 +0300 |
commit | 0d6531551b6bf4037017c97d7f7ece5b83739601 (patch) | |
tree | 7fa8946d313748126bbe721da0b66f51e6094493 /winsup/cygwin/cygwin.din | |
parent | 14c800a5ba66195a80dfc02ffb0ea7da5f737bd7 (diff) |
* cygwin.din (accept4): Export.
* fhandler.h (fhandler_socket::accept4): Rename from accept. Take
additional flag parameter.
* fhandler_socket.cc (fhandler_socket::accept4): Ditto. Handle
SOCK_NONBLOCK and SOCK_CLOEXEC flags.
* net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags
in type. Check for invalid flag values.
(socketpair): Ditto.
(cygwin_accept): Accommodate renaming of fhandler_socket::accept
function to accept4.
(accept4): New function.
* posix.sgml: Mention accept4 as GNU extensions.
* include/cygwin/socket.h (SOCK_NONBLOCK): Define.
(SOCK_CLOEXEC): Define.
(_SOCK_FLAG_MASK): Define when building Cygwin.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/socket.h (accept4): Declare.
Diffstat (limited to 'winsup/cygwin/cygwin.din')
-rw-r--r-- | winsup/cygwin/cygwin.din | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din index ec485236c..b2d2b1e47 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -37,6 +37,7 @@ _abort = abort SIGFE abs NOSIGFE _abs = abs NOSIGFE accept = cygwin_accept SIGFE +accept4 SIGFE access SIGFE _access = access SIGFE acl SIGFE |