|
@ -612,11 +612,6 @@ struct uv_tty_s { |
|
|
UV_TTY_PRIVATE_FIELDS |
|
|
UV_TTY_PRIVATE_FIELDS |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
* Returns 1 if file is associated with a Console/TTY 0 otherwise. |
|
|
|
|
|
*/ |
|
|
|
|
|
int uv_is_tty(uv_file file); |
|
|
|
|
|
|
|
|
|
|
|
int uv_tty_init(uv_loop_t*, uv_tty_t*, uv_file fd); |
|
|
int uv_tty_init(uv_loop_t*, uv_tty_t*, uv_file fd); |
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
@ -633,6 +628,7 @@ int uv_tty_get_winsize(uv_tty_t*, int* width, int* height); |
|
|
* Used to detect what type of stream should be used with a given file |
|
|
* Used to detect what type of stream should be used with a given file |
|
|
* descriptor. Usually this will be used during initialization to guess the |
|
|
* descriptor. Usually this will be used during initialization to guess the |
|
|
* type of the stdio streams. |
|
|
* type of the stdio streams. |
|
|
|
|
|
* For isatty() functionality use this function and test for UV_TTY. |
|
|
*/ |
|
|
*/ |
|
|
uv_handle_type uv_guess_handle(uv_file file); |
|
|
uv_handle_type uv_guess_handle(uv_file file); |
|
|
|
|
|
|
|
@ -807,8 +803,10 @@ struct uv_getaddrinfo_s { |
|
|
* |
|
|
* |
|
|
* Return code 0 means that request is accepted and callback will be called |
|
|
* Return code 0 means that request is accepted and callback will be called |
|
|
* with result. Other return codes mean that there will not be a callback. |
|
|
* with result. Other return codes mean that there will not be a callback. |
|
|
* Input arguments may be released after return from this call. Callback |
|
|
* Input arguments may be released after return from this call. |
|
|
* must not call freeaddrinfo. |
|
|
* |
|
|
|
|
|
* uv_freeaddrinfo() must be called after completion to free the addrinfo |
|
|
|
|
|
* structure. |
|
|
*/ |
|
|
*/ |
|
|
int uv_getaddrinfo(uv_loop_t*, |
|
|
int uv_getaddrinfo(uv_loop_t*, |
|
|
uv_getaddrinfo_t* handle, |
|
|
uv_getaddrinfo_t* handle, |
|
@ -817,6 +815,8 @@ struct uv_getaddrinfo_s { |
|
|
const char* service, |
|
|
const char* service, |
|
|
const struct addrinfo* hints); |
|
|
const struct addrinfo* hints); |
|
|
|
|
|
|
|
|
|
|
|
void uv_freeaddrinfo(struct addrinfo* ai); |
|
|
|
|
|
|
|
|
/* uv_spawn() options */ |
|
|
/* uv_spawn() options */ |
|
|
typedef struct uv_process_options_s { |
|
|
typedef struct uv_process_options_s { |
|
|
uv_exit_cb exit_cb; /* Called after the process exits. */ |
|
|
uv_exit_cb exit_cb; /* Called after the process exits. */ |
|
|