unix: expose uv__make_socketpair, uv__make_pipe in unix/internal.h
This commit is contained in:
parent
0db56ea41a
commit
3dd4ecb493
@ -185,4 +185,9 @@ void uv__udp_watcher_stop(uv_udp_t* handle, ev_io* w);
|
||||
/* fs */
|
||||
void uv__fs_event_destroy(uv_fs_event_t* handle);
|
||||
|
||||
#define UV__F_IPC (1 << 0)
|
||||
#define UV__F_NONBLOCK (1 << 1)
|
||||
int uv__make_socketpair(int fds[2], int flags);
|
||||
int uv__make_pipe(int fds[2], int flags);
|
||||
|
||||
#endif /* UV_UNIX_INTERNAL_H_ */
|
||||
|
||||
@ -63,10 +63,7 @@ static void uv__chld(EV_P_ ev_child* watcher, int revents) {
|
||||
}
|
||||
|
||||
|
||||
#define UV__F_IPC (1 << 0)
|
||||
#define UV__F_NONBLOCK (1 << 1)
|
||||
|
||||
static int uv__make_socketpair(int fds[2], int flags) {
|
||||
int uv__make_socketpair(int fds[2], int flags) {
|
||||
#ifdef SOCK_NONBLOCK
|
||||
int fl;
|
||||
|
||||
@ -103,7 +100,7 @@ static int uv__make_socketpair(int fds[2], int flags) {
|
||||
}
|
||||
|
||||
|
||||
static int uv__make_pipe(int fds[2], int flags) {
|
||||
int uv__make_pipe(int fds[2], int flags) {
|
||||
#if HAVE_SYS_PIPE2
|
||||
int fl;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user