From a74298d8b63c7d2ef2584373a30a634920291e2a Mon Sep 17 00:00:00 2001 From: reito Date: Sun, 8 Dec 2024 23:22:45 +0800 Subject: [PATCH] src: refine comments --- include/uv.h | 4 ++-- src/win/pipe.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/uv.h b/include/uv.h index 9c24c789..9202311f 100644 --- a/include/uv.h +++ b/include/uv.h @@ -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 diff --git a/src/win/pipe.c b/src/win/pipe.c index 7ffbefe3..943ddbeb 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -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.