summaryrefslogtreecommitdiffstats
path: root/newlib/libc/unix/getcwd.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-10-11 18:28:04 +0000
committerCorinna Vinschen <corinna@vinschen.de>2014-10-11 18:28:04 +0000
commit697b9afe00c21df9fc74c748ea35113b4b37c4b4 (patch)
treefd3a5755a6880643d192ebb7043dd501dedd1505 /newlib/libc/unix/getcwd.c
parenta85ab1d48243778e745b8f04b3eb67b8c13a64ad (diff)
downloadcygnal-697b9afe00c21df9fc74c748ea35113b4b37c4b4.tar.gz
cygnal-697b9afe00c21df9fc74c748ea35113b4b37c4b4.tar.bz2
cygnal-697b9afe00c21df9fc74c748ea35113b4b37c4b4.zip
Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disable
initial handshake on AF_LOCAL sockets. * fhandler.h (class fhandler_socket): Add no_getpeereid status flag. (fhandler_socket::af_local_set_no_getpeereid): New prototype. * fhandler_socket.cc (fhandler_socket::af_local_connect): Skip handshake if no_getpeereid is set. Add debug output. (fhandler_socket::af_local_accept): Likewise. (fhandler_socket::af_local_set_no_getpeereid): New function. (fhandler_socket::af_local_copy): Copy no_getpeereid. (fhandler_socket::getpeereid): Fail if no_getpeereid is set. * net.cc (cygwin_setsockopt): Add SO_PEERCRED for AF_LOCAL/SOCK_STREAM sockets. Add comment to explain why we need it. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Diffstat (limited to 'newlib/libc/unix/getcwd.c')
0 files changed, 0 insertions, 0 deletions