Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: expose uv__make_socketpair, uv__make_pipe in unix/internal.h

  • Loading branch information
ry committed Dec 28, 2011
1 parent 0db56ea commit 3dd4ecb493ea6ea81eec066a20f3235b67826cfc
Showing with 7 additions and 5 deletions.
  1. +5 −0 src/unix/internal.h
  2. +2 −5 src/unix/process.c
@@ -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;

0 comments on commit 3dd4ecb

Please sign in to comment.
You can’t perform that action at this time.