src: refine comments

This commit is contained in:
reito 2024-12-08 23:22:45 +08:00
parent 281cf049fb
commit a74298d8b6
2 changed files with 6 additions and 6 deletions

View File

@ -851,8 +851,8 @@ enum {
* uv_pipe_t is a subclass of uv_stream_t.
*
* Representing a pipe stream or pipe server. On Windows this is a Named
* Pipe or a Unix domain socket depends on the path name.
* On Unix this is a Unix domain socket.
* Pipe or a Unix domain socket depends on the path name. On Unix this is
* a Unix domain socket.
*/
struct uv_pipe_s {
UV_HANDLE_FIELDS

View File

@ -239,7 +239,7 @@ static void close_pipe(uv_pipe_t* pipe) {
pipe->handle = INVALID_HANDLE_VALUE;
}
/* Not yet support unix domain socket */
/* Pipe pair doesn't use unix domain socket */
static int uv__pipe_server(
HANDLE* pipeHandle_ptr, DWORD access,
char* name, size_t nameSize, unsigned long long random) {
@ -280,7 +280,7 @@ static int uv__pipe_server(
}
/* Not yet support unix domain socket */
/* Pipe pair doesn't use unix domain socket */
static int uv__create_pipe_pair(
HANDLE* server_pipe_ptr, HANDLE* client_pipe_ptr,
unsigned int server_flags, unsigned int client_flags,
@ -381,7 +381,7 @@ static int uv__create_pipe_pair(
}
/* Not yet support unix domain socket */
/* Pipe pair doesn't use unix domain socket */
int uv_pipe(uv_file fds[2], int read_flags, int write_flags) {
uv_file temp[2];
int err;
@ -427,7 +427,7 @@ int uv_pipe(uv_file fds[2], int read_flags, int write_flags) {
}
/* Not yet support unix domain socket */
/* Pipe pair doesn't use unix domain socket */
int uv__create_stdio_pipe_pair(uv_loop_t* loop,
uv_pipe_t* parent_pipe, HANDLE* child_pipe_ptr, unsigned int flags) {
/* The parent_pipe is always the server_pipe and kept by libuv.