Ben Noordhuis
84bc18684e
linux: omit superfluous fcntl(F_GETFD) syscall
2011-10-29 05:32:34 +02:00
Ben Noordhuis
ed2b5e60cb
linux: use ioctl(FIONBIO) to set O_NONBLOCK, saves a syscall
2011-10-29 01:31:11 +02:00
Ben Noordhuis
f2c6b4106d
unix: have uv_strerror() handle getaddrinfo() errors
2011-10-28 01:31:55 +02:00
Ben Noordhuis
9da53df457
unix: fix uv_freeaddrinfo() segfault on sunos
...
The system freeaddrinfo() on SunOS does not handle NULL values graciously.
2011-10-21 14:20:36 -07:00
Igor Zinkovsky
81c4043c83
ipc on windows
2011-10-06 10:17:42 -07:00
Ben Noordhuis
8e9a3384c9
unix: implement kqueue file watcher API
...
kqueue fds are not embeddable into other pollsets (select, poll, kqueue).
Hack the libev event loop to receive kqueue events with filter flags intact.
2011-10-04 23:28:36 +02:00
saghul
b594dba248
unix: fix memcpy when copying hints on uv_getaddrinfo
2011-09-29 15:32:26 +02:00
Erick Tryzelaar
23796d208c
Fixes #76 . Unify OS error reporting
...
As a nice fringe benefit, this also shaves a word
off of a windows TCP handle by replacing "uv_err_t
bind_error" with "int bind_error".
2011-09-27 19:05:33 -07:00
Erick Tryzelaar
7e8645d101
unix,win: Make uv_freeaddrinfo to clean up addrinfo
...
Fixes #196
2011-09-23 09:31:01 -07:00
Ben Noordhuis
2a1c32a60c
linux: implement file watcher API
2011-09-21 13:23:49 -07:00
Ryan Dahl
2ef8f359ee
tty fixes for unix
2011-09-20 13:14:16 -07:00
Ben Noordhuis
37e8bf2556
unix: fix dangling pointer free() bug
2011-09-19 17:23:23 +02:00
Erick Tryzelaar
70e1032094
unix: Fix uv_getaddrinfo from deleting invalid data
...
If the uv_getaddrinfo_t handle is owned by its
data pointer, deleting the data in the callback
could cause uv_getaddrinfo_done to call freeaddrinfo
on an invalid pointer.
2011-09-19 17:11:34 +02:00
Ben Noordhuis
3c96410902
unix: bring back uv__stream_destroy()
...
This is the revised version of reverted commit 431195c .
2011-09-14 04:48:56 +02:00
Ryan Dahl
828b6eb11d
unix: remove uv_init
2011-09-12 11:32:41 -07:00
Erick Tryzelaar
efa1b54076
Subclass uv_getaddrinfo_t from uv_req_t.
...
This patch also fixes #155 . Since we no longer
memset clear the uv_getaddrinfo_t, the user can
now set the `uv_getaddrinfo_t->data` field without
problems.
2011-09-10 01:46:26 -07:00
Ben Noordhuis
ca5346f9ce
unix: revert 98b9f58 and 431195c for now, corrupts memory
2011-09-09 23:40:10 +02:00
Ben Noordhuis
431195c944
unix: run callbacks of pending writes when handle is closed
2011-09-08 19:15:22 +02:00
Ben Noordhuis
cc91989cc2
unix: fix buffer overrun in uv__strlcpy()
...
Reported by Thomas Shinnick.
2011-09-06 15:44:47 +02:00
Ben Noordhuis
bb0c6e6d53
unix: move linux feature detection macros to internal.h
2011-09-05 16:05:28 +02:00
Ryan Dahl
142a70292b
unix: fix fs_chmod
2011-09-04 16:09:45 -07:00
Bert Belder
12b01e95f9
Specialize uv_xxx_getsockname, add uv_tcp_getpeername
2011-09-04 04:49:13 +02:00
Ryan Dahl
836cc204b6
unix: Fix test-gethostbyname
2011-08-31 15:37:16 -07:00
Ryan Dahl
6fd340b8ca
unix: split out stream into its own file
2011-08-31 13:41:22 -07:00
Ryan Dahl
38ce213b6a
unix: split out pipe
2011-08-31 13:29:17 -07:00
Ryan Dahl
510407c03d
unix: split out tcp module
2011-08-31 13:11:38 -07:00
Ryan Dahl
e553f96f94
unix: split out uv_spawn into src/unix/process.c
2011-08-31 11:50:08 -07:00
Ryan Dahl
490c83dd35
move src/uv-unix.c to src/unix/core.c
2011-08-31 11:26:43 -07:00