Saúl Ibarra Corretgé
aab8d9dab4
doc: clarify return value when UV_RUN_NOWAIT is used
...
Signed-off-by: Saúl Ibarra Corretgé <saghul@gmail.com>
2014-05-25 23:39:40 +02:00
Rasmus Christian Pedersen
70c42563c1
unix, windows: getnameinfo implementation
...
Closes #852
2014-05-20 17:33:52 +02:00
Rasmus Christian Pedersen
ecaede660c
unix, windows: uv_dlerror const argument
2014-05-13 00:00:54 +02:00
Saúl Ibarra Corretgé
fa0e1e5071
unix, windows: remove unneeded define
2014-05-08 09:08:33 +02:00
Trevor Norris
32597100b8
thread: add uv_thread_cb typedef
...
To keep with convention, add a typedef for the function called that
initializes the new thread.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-02 01:33:13 +04:00
Timothy J Fontaine
b5548f18c9
Now working on v0.11.26
2014-05-01 09:16:48 -07:00
Timothy J Fontaine
2acd544cff
2014.05.02, Version 0.11.25 (Unstable)
...
Changes since version 0.11.24:
* osx: pass const handle pointer to uv___stream_fd (Chernyshev
Viacheslav)
* unix, windows: pass const handle ptr to uv_tcp_get*name (Chernyshev
Viacheslav)
* common: pass const sockaddr ptr to uv_ip*_name (Chernyshev Viacheslav)
* unix, windows: validate flags on uv_udp|tcp_bind (Saúl Ibarra
Corretgé)
* unix: handle case when addr is not initialized after recvmsg (Saúl
Ibarra Corretgé)
* unix, windows: uv_now constness (Rasmus Pedersen)
2014-05-01 09:16:45 -07:00
Rasmus Christian Pedersen
87ae69b638
unix, windows: uv_now constness
...
uv_now doesnt require modification of uv_loop_t as such argument is
changed to a const uv_loop_t* as this more in spirit with remaining
API in libuv.
2014-04-29 19:39:13 -03:00
Saúl Ibarra Corretgé
76eb7518c6
doc: clarify what the addr argument of uv_udp_recv_cb contains
2014-04-23 19:28:30 +02:00
Saúl Ibarra Corretgé
d86d86633e
doc: clarify uv_try_write return values
2014-04-22 08:41:16 +02:00
Chernyshev Viacheslav
20d092edc8
common: pass const sockaddr ptr to uv_ip*_name
...
uv_ip4_name and uv_ip6_name do not modify passed sockaddr pointer,
so there is no need to keep this parameter non-const.
2014-04-18 12:07:38 +02:00
Chernyshev Viacheslav
886e2bcd55
unix, windows: pass const handle ptr to uv_tcp_get*name
...
uv_tcp_getsockname and uv_tcp_getpeername do not modify passed handle
pointer, so there is no need to keep this parameter non-const.
2014-04-18 12:07:38 +02:00
Trevor Norris
f212ceffae
include: reorder UV_HANDLE_PRIVATE_FIELDS
...
The fields for UV_HANDLE_PRIVATE_FIELDS in uv-win.h and uv-unix.h are
the same, but in different order. Simply swap them so uv_handle_t are
the same on both platforms.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-04-17 14:31:23 +04:00
Timothy J Fontaine
1daff47ae9
Now working on v0.11.25
2014-04-14 09:56:52 -07:00
Timothy J Fontaine
ed948c29f6
2014.04.15, Version 0.11.24 (Unstable)
...
Changes since version 0.11.23:
* linux: reduce file descriptor count of async pipe (Ben Noordhuis)
* sunos: support IPv6 qualified link-local addresses (Saúl Ibarra
Corretgé)
* windows: fix opening of read-only stdin pipes (Alexis Campailla)
* windows: Fix an infinite loop in uv_spawn (Alex Crichton)
* windows: fix console signal handler refcount (李港平)
* inet: allow scopeid in uv_inet_pton (Fedor Indutny)
* win: always leave crit section in get_proc_title (Fedor Indutny)
2014-04-14 09:56:49 -07:00
Fedor Indutny
6a657dcbee
include: add reserved field for #926
...
Introduce reserved field to be able to fix #926 after v0.12 release.
2014-04-14 20:44:49 +04:00
Saúl Ibarra Corretgé
2c02c4ee1e
sunos: support IPv6 qualified link-local addresses
2014-04-09 19:40:01 +02:00
Fedor Indutny
842c70c5c5
Now working on v0.11.24
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-04-07 15:39:10 +04:00
Fedor Indutny
e54de537ef
2014.04.07, Version 0.11.23 (Unstable)
...
Changes since version 0.11.22:
* fs: avoid using readv/writev where possible (Fedor Indutny)
* mingw: fix build with autotools (Saúl Ibarra Corretgé)
* bsd: support IPv6 qualified link-local addresses (Saúl Ibarra Corretgé)
* unix: add UV_HANDLE_IPV6 flag to tcp and udp handles (Saúl Ibarra Corretgé)
* unix, windows: do not set SO_REUSEADDR by default on udp (Saúl Ibarra
Corretgé)
* windows: fix check in uv_tty_endgame() (Maks Naumov)
* unix, windows: add IPv6 support for uv_udp_multicast_interface (Saúl Ibarra
Corretgé)
* unix: fallback to blocking writes if reopening a tty fails (Saúl Ibarra
Corretgé)
* unix: fix handling uv__open_cloexec failure (Saúl Ibarra Corretgé)
* unix, windows: add IPv6 support to uv_udp_set_membership (Saúl Ibarra
Corretgé)
* unix, windows: removed unused status parameter (Saúl Ibarra Corretgé)
* android: add support of ifaddrs in android (Javier Hernández)
* build: fix SunOS and AIX build with autotools (Saúl Ibarra Corretgé)
* build: freebsd link with libelf if dtrace enabled (Saúl Ibarra Corretgé)
* stream: do not leak `alloc_cb` buffers on error (Fedor Indutny)
* unix: fix setting written size on uv_wd (Saúl Ibarra Corretgé)
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-04-07 15:38:27 +04:00
Fedor Indutny
7d5ac7b9cc
Merge branch 'v0.10'
...
Conflicts:
include/uv.h
src/unix/error.c
2014-04-03 17:04:32 +04:00
Fedor Indutny
295882ed32
error: add EMLINK mapping
...
fix joyent/node#7307
2014-04-03 16:37:25 +04:00
Saúl Ibarra Corretgé
e89740a957
bsd: support IPv6 qualified link-local addresses
2014-04-02 01:27:01 +02:00
Saúl Ibarra Corretgé
3558d65d2f
unix, windows: do not set SO_REUSEADDR by default on udp
...
Add UV_UDP_REUSEADDR flag instead, which can be passed to uv_udp_bind.
If the udp handle is unbound when uv_udp_set_memberhsip or
uv_udp_set_multicast_interface is called, the handle will be bound with
UV_UDP_REUSEADDR set.
2014-04-02 01:21:35 +02:00
Saúl Ibarra Corretgé
db2a9072bc
unix, windows: removed unused status parameter
...
async, timer, prepare, idle and check handles don't need the status
parameter.
2014-03-17 21:42:36 +01:00
Javier Hernández
a2506c9362
android: add support of ifaddrs in android
...
Fixes https://github.com/joyent/node/issues/7291
2014-03-16 23:16:25 +01:00
Timothy J Fontaine
1dc2709b99
Now working on v0.11.23
2014-03-10 16:58:32 -07:00
Timothy J Fontaine
cd0c19b1d3
2014.03.11, Version 0.11.22 (Unstable)
...
Changes since version 0.11.21:
* unix, windows: map ERANGE errno (Saúl Ibarra Corretgé)
* unix, windows: make uv_cwd be consistent with uv_exepath (Saúl Ibarra
Corretgé)
* process: remove debug perror() prints (Fedor Indutny)
* windows: fall back for volume info query (Isaiah Norton)
* pipe: allow queueing pending handles (Fedor Indutny)
* windows: fix winsock status codes for address errors (Raul Martins)
* windows: Remove unused variable from uv__pipe_insert_pending_socket
(David Capello)
* unix: workaround broken pthread_sigmask on Android (Paul Tan)
* error: add ENXIO for O_NONBLOCK FIFO open() (Fedor Indutny)
* freebsd: use accept4, introduced in version 10 (Saúl Ibarra Corretgé)
* windows: fix warnings of MinGW -Wall -O3 (StarWing)
* openbsd, osx: fix compilation warning on scandir (Saúl Ibarra
Corretgé)
* linux: always deregister closing fds from epoll (Geoffry Song)
* unix: reopen tty as /dev/tty (Saúl Ibarra Corretgé)
* kqueue: invalidate fd in uv_fs_event_t (Fedor Indutny)
2014-03-10 16:54:33 -07:00
Fedor Indutny
9aa48312bc
Merge remote-tracking branch 'origin/v0.10'
...
Conflicts:
AUTHORS
ChangeLog
include/uv.h
src/unix/error.c
src/unix/process.c
src/version.c
2014-03-06 20:45:15 +04:00
Fedor Indutny
4f72f2145b
error: add ENXIO for O_NONBLOCK FIFO open()
...
When opening FIFO with `O_NONBLOCK` flag, `ENXIO` could be returned if
the readable side hasn't yet opened this FIFO.
2014-03-06 20:36:07 +04:00
Paul Tan
347000929d
unix: workaround broken pthread_sigmask on Android
...
On android, if a call to `pthread_sigmask` fails with EINVAL, fallback
to `sigprocmask`. This workarounds the broken behaviour of
`pthread_sigmask` on Android versions < 4.1. See:
* https://android.googlesource.com/platform/bionic/+/9bf330b5
* https://code.google.com/p/android/issues/detail?id=15337
This is implemented by replacing all calls of `pthread_sigmask` to a new
function `uv__pthread_sigmask` which implements this fallback mechanism.
2014-03-06 11:54:50 +01:00
Fedor Indutny
b05a3ee4d1
pipe: allow queueing pending handles
...
Introduce `int uv_pipe_pending_count(uv_pipe_t*)` and
`uv_handle_type uv_pipe_pending_type(uv_pipe_t*)`. They should be
used in IPC pipe's read cb to accept incoming handles:
int count = uv_pipe_pending_count(pipe);
int i;
for (i = 0; i < count; i++) {
uv_handle_type type = uv_pipe_pending_type(pipe);
/* ... */
uv_accept(...);
}
2014-03-04 00:34:29 +04:00
Saúl Ibarra Corretgé
422d2810b3
unix, windows: make uv_cwd be consistent with uv_exepath
...
Fixes #446
2014-02-27 09:44:28 +01:00
Timothy J Fontaine
649dfc3037
Now working on v0.11.22
2014-02-26 18:04:24 -08:00
Timothy J Fontaine
3ef958158a
2014.02.28, Version 0.11.21 (Unstable)
...
Changes since version 0.11.20:
* unix: fix uv_fs_write when using an empty buffer (Saúl Ibarra
Corretgé)
* unix, windows: add assertion in uv_loop_delete (Saúl Ibarra Corretgé)
2014-02-26 18:04:23 -08:00
Timothy J Fontaine
2cfb96e9e2
src: bump the version number
...
There was a bug in the libuv release tool where it didn't properly
update the proper version file.
2014-02-26 17:53:01 -08:00
Saúl Ibarra Corretgé
b055538d09
unix, windows: clarify what uv_stream_set_blocking does
...
Also replace the assert with an error on unix.
2014-02-26 00:03:30 +01:00
Saúl Ibarra Corretgé
7ad8f74302
unix, windows: set required size on UV_ENOBUFS
...
When the supplied buffer is not big enough and UV_ENOBUFS is
returned, hint the user about the required size by setting
the len paramemeter to the required value.
Applies to:
- uv_pipe_getsockname
- uv_fs_event_getpath
- uv_fs_poll_getpath
2014-02-25 11:56:02 +01:00
Saúl Ibarra Corretgé
6f98f4efd1
unix, windows: map ERANGE errno
...
This is a backport of 2f58bb6 from the master branch
2014-02-25 10:48:26 +01:00
Saúl Ibarra Corretgé
2f58bb6018
unix, windows: map ERANGE errno
2014-02-25 09:51:44 +01:00
Saúl Ibarra Corretgé
8c9d5dce57
unix, windows: add uv_fs_poll_getpath
2014-02-24 23:21:13 +01:00
Saúl Ibarra Corretgé
a7ac2c462a
unix, windows: add uv_fs_event_getpath
2014-02-24 22:08:23 +01:00
Saúl Ibarra Corretgé
e5bdef9b59
fsevent: rename filename field to path
...
Also, it's now considered private.
2014-02-24 21:51:21 +01:00
Saúl Ibarra Corretgé
10f9120d78
errno: map EFBIG, ENOPROTOOPT and ETXTBSY
...
This is a backport of:
107be2bed3
4a023fc078
aaaefe32ca
2014-02-24 12:57:28 +01:00
Fedor Indutny
aaaefe32ca
errno: add ETXTBSY
...
Add `ETXTBSY` which could be returned by file system reads on some
unixes and emulate it with -148 (`ERROR_PATH_BUSY`) on windows.
2014-02-24 15:41:17 +04:00
Saúl Ibarra Corretgé
4a023fc078
unix, windows: map ENOPROTOOPT errno
...
Fixes #1143
2014-02-24 09:19:12 +01:00
Saúl Ibarra Corretgé
5ac214c712
unix, windows: add uv_pipe_getsockname
2014-02-23 20:25:20 +01:00
Saúl Ibarra Corretgé
a442aa7643
doc: small fixes to comments and syntax
2014-02-23 18:01:03 +01:00
Benjamin Saunders
13dd3502a7
fs: vectored IO API for filesystem read/write
...
This improves API consistency with uv_read and uv_write and may
improve efficiency for some uses. Vectored IO is emulated when the
requisite system calls are unavailable.
2014-02-23 17:24:05 +01:00
Oleg Efimov
da9a2b1d3d
unix, windows: add uv_getrusage() function
2014-02-21 18:50:15 +01:00
Saúl Ibarra Corretgé
787f5fff92
unix, windows: add uv_loop_init and uv_loop_close
...
These functions supersede uv_loop_new and uv_loop_delete.
uv_loop_init initialized a user allocated loop and uv_loop_close
removes all associated resources a loop uses after it has finished
execution.
uv_loop_new and uv_loop_delete are now deprecated.
2014-02-21 09:56:13 +01:00