diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-03-17 16:14:50 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-03-17 16:14:50 +0000 |
commit | e374e54e1b4d1271537c98e3f67478a93295bb7a (patch) | |
tree | 05dfa35b50fe9597dbc928f97a1900b13f9653b1 /winsup/cygwin/fhandler_socket.cc | |
parent | 74d06d61a2df9066f053922da856352875b7d486 (diff) | |
download | newlib-e374e54e1b4d1271537c98e3f67478a93295bb7a.zip newlib-e374e54e1b4d1271537c98e3f67478a93295bb7a.tar.gz newlib-e374e54e1b4d1271537c98e3f67478a93295bb7a.tar.bz2 |
* fhandler_socket.cc (get_inet_addr): Make externally available.
* autoload.cc (GetUdpTable): Define.
* syslog.cc (connect_syslogd): Use get_inet_addr rather than _stat64
to check for local socket file. Create socket with type returned by
get_inet_addr. If connect on UDP socket works, test if there's
really a listening peer, otherwise fall back to Windows event log.
(try_connect_syslogd): Use syslogd_inited flag to check if syslogd
is available.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 22ae05f..b5eab05 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -63,7 +63,7 @@ adjust_socket_file_mode (mode_t mode) } /* cygwin internal: map sockaddr into internet domain address */ -static int +int get_inet_addr (const struct sockaddr *in, int inlen, struct sockaddr_storage *out, int *outlen, int *type = NULL, int *secret = NULL) |