diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-02-23 17:39:46 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-02-23 17:39:46 +0000 |
commit | c8b404bf5c8c5268ef9a288d8c59b7e3ea935e8b (patch) | |
tree | 619b38b52fa65a469b1d8ca788b9a834a15768c9 /winsup/cygwin/cygwin.din | |
parent | 81d0376064d861df4d70f1263ec627af96486443 (diff) | |
download | cygnal-c8b404bf5c8c5268ef9a288d8c59b7e3ea935e8b.tar.gz cygnal-c8b404bf5c8c5268ef9a288d8c59b7e3ea935e8b.tar.bz2 cygnal-c8b404bf5c8c5268ef9a288d8c59b7e3ea935e8b.zip |
* cygwin.din (getpeereid): Export.
* fhandler.h (class fhandler_socket): Add pipe and id members to
exchange eid credentials for AF_LOCAL sockets.
(eid_pipe_name): Declare new method.
(getpeereid): Ditto.
* fhandler_socket.cc (fhandler_socket::eid_pipe_name): New method.
(fhandler_socket::fhandler_socket): Initialize sec_pipe.
(fhandler_socket::connect): Exchange eid credentials with accepting
socket process.
(fhandler_socket::listen): Prepare eid credential transaction.
(fhandler_socket::accept): Exchange eid credentials with connecting
socket process.
(fhandler_socket::close): Close eid credentials pipe if open.
(fhandler_socket::getpeereid): New method.
* net.cc (cygwin_getsockopt): Add SO_PEERCRED handling.
(getpeereid): New function.
* include/asm/socket.h (SO_PEERCRED): Define.
* include/cygwin/socket.h (struct ucred): Define new type.
* include/cygwin/version.h: Bump API minor version.
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 dd8e5a8c4..594f114e7 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -307,6 +307,7 @@ gethostbyaddr = cygwin_gethostbyaddr SIGFE gethostbyname = cygwin_gethostbyname SIGFE _gethostname = cygwin_gethostname SIGFE gethostname = cygwin_gethostname SIGFE +getpeereid SIGFE getpeername = cygwin_getpeername SIGFE getprogname NOSIGFE getprotobyname = cygwin_getprotobyname SIGFE |