Created
June 5, 2012 23:43
-
-
Save Keno/2878900 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* uv_spawn() options */ | |
typedef enum { | |
UV_IGNORE = 0x00, | |
UV_CREATE_PIPE = 0x01, | |
UV_INHERIT_FD = 0x02, | |
UV_INHERIT_STREAM = 0x04, | |
UV_DUAL_PIPE = 0x08, | |
/* When UV_CREATE_PIPE is specified, UV_READABLE_PIPE and UV_WRITABLE_PIPE | |
* determine the direction of flow, from the child process' perspective. Both | |
* flags may be specified to create a duplex data stream. | |
*/ | |
UV_READABLE_PIPE = 0x10, | |
UV_WRITABLE_PIPE = 0x20 | |
} uv_stdio_flags; | |
typedef enum { | |
UV_ALLOCATED = 0x00, | |
UV_INITIALIZED = 0x01, | |
UV_STREAM_READ_PIPE = 0x02, | |
UV_STREAM_WRITE_PIPE = 0x04 | |
} uv_dual_pipe_flags; | |
typedef struct uv_dual_pipe_s { | |
uv_dual_pipe_flags flags; | |
union { | |
uv_os_fd_t fd; | |
uv_stream_t *pipe; | |
} read; | |
union { | |
uv_os_fd_t fd; | |
uv_stream_t *pipe; | |
} write; | |
} uv_dual_pipe_t; | |
typedef union { | |
uv_stream_t* stream; | |
uv_dual_pipe_t* pipe; | |
int fd; | |
} uv_stdio_data; | |
typedef struct uv_stdio_container_s { | |
uv_stdio_flags flags; | |
uv_stdio_data data; | |
} uv_stdio_container_t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment