libuv/src/unix
Ben Leslie 98bcddc8dd unix: improve uv_guess_handle() implementation
uv_guess_handle is currently squelching both fifo and all
sockets on to the UV_NAMED_PIPE type. Rather than treating
all sockets as UV_NAMED_PIPE, use getsockopt() and
getsockaddr() to determine if the socket is an AF_UNIX
stream (in which case return UV_NAMED_PIPE), or an AF_INET
stream (in which case return UV_TCP), or an AF_INET datagram
socket (in which case return UV_UDP).

Additionally, currently all other file descriptor types are
squelched to the UV_FILE type. Instead, only file descriptors
that are marked as regular files are treated as UV_FILE. All
other types (such as directories, character and block devices)
are now treated as UV_UNKNOWN_HANDLE.
2013-01-08 05:26:58 +01:00
..
linux linux: fix race in uv_resident_set_memory() 2013-01-06 22:31:48 +01:00
aix.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
async.c unix: fix GNU-ism introduced in edd1007 2013-01-07 15:43:58 +01:00
core.c unix: fix up #if defined checks 2013-01-06 22:31:47 +01:00
cygwin.c unix: fix include in cygwin.c 2013-01-06 21:25:58 +01:00
darwin.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
dl.c unix: assume that dlopen() clobbers dlerror() 2012-06-28 01:54:02 +02:00
error.c unix: map EDQUOT to UV_ENOSPC 2012-09-21 17:08:27 +02:00
freebsd.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
fs.c unix: reset errno when using sendfile emulation 2012-12-28 16:00:49 +01:00
fsevents.c unix: remove dependency on libev 2012-11-16 17:33:25 +01:00
getaddrinfo.c unix: fix up #if defined checks 2013-01-06 22:31:47 +01:00
internal.h unix: fix up #if defined checks 2013-01-06 22:31:47 +01:00
kqueue.c unix: update loop->time after poll 2013-01-06 18:30:03 +01:00
loop-watcher.c prepare/idle/check: don't allow NULL callback 2012-12-24 17:05:01 +01:00
loop.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
netbsd.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
openbsd.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
pipe.c unix: use select() for specific fds on OS X 2012-12-09 15:43:08 +01:00
poll.c unix: rename UV__IO_* constants 2012-11-16 17:33:29 +01:00
process.c unix: fix up #if defined checks 2013-01-06 22:31:47 +01:00
signal.c unix: fix up function prototypes in signal.c 2013-01-06 21:25:58 +01:00
stream.c unix: make uv__read_start_common() static 2013-01-06 21:25:58 +01:00
sunos.c unix: update loop->time after poll 2013-01-06 18:30:03 +01:00
tcp.c unix: disable relaxed accept() by default 2012-12-18 15:44:21 +01:00
thread.c unix: use uv__hrtime() internally 2013-01-06 17:35:34 +01:00
threadpool.c unix: make uv__work_cancel() static 2013-01-06 21:25:58 +01:00
timer.c unix: change uv_backend_timeout() prototype 2012-11-28 17:02:30 +01:00
tty.c unix: improve uv_guess_handle() implementation 2013-01-08 05:26:58 +01:00
udp.c unix: fix up #if defined checks 2013-01-06 22:31:47 +01:00