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

This commit is contained in:
Ryan Dahl 2011-12-27 19:04:09 -08:00
parent 0db56ea41a
commit 3dd4ecb493
2 changed files with 7 additions and 5 deletions

View File

@ -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_ */

View File

@ -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;