From 83636f6731ba4af4a9e2c9264988d15b656c84a2 Mon Sep 17 00:00:00 2001 From: Joe Dollard Date: Mon, 14 Mar 2016 20:42:16 -0400 Subject: [PATCH] rename gids_sz to num_gids --- docs/src/process.rst | 2 +- include/uv.h | 2 +- test/test-spawn.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/process.rst b/docs/src/process.rst index a3d160b69..0ef96b998 100644 --- a/docs/src/process.rst +++ b/docs/src/process.rst @@ -100,7 +100,7 @@ Data types /* * Set the child process' supplementary group ids. The group ids are supplied * in the 'gids' field in the options struct, and the number of groups is - * specified in the 'gids_sz' field. This does not work on windows; + * specified in the 'num_gids' field. This does not work on windows; * setting this flag will cause uv_spawn() to fail. */ UV_PROCESS_SETGROUPS = (1 << 8) diff --git a/include/uv.h b/include/uv.h index 3e5a25a74..1c36f69e2 100644 --- a/include/uv.h +++ b/include/uv.h @@ -1219,7 +1219,7 @@ enum uv_process_flags { /* * Set the child process' supplementary group ids. The group ids are supplied * in the 'gids' field in the options struct, and the number of groups is - * specified in the 'gids_sz' field. This does not work on windows; + * specified in the 'num_gids' field. This does not work on windows; * setting this flag will cause uv_spawn() to fail on windows. */ UV_PROCESS_SETGROUPS = (1 << 9) diff --git a/test/test-spawn.c b/test/test-spawn.c index 89df8d57f..46c8f6591 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1517,7 +1517,7 @@ TEST_IMPL(spawn_setgids) { ASSERT(pw != NULL); gids[0] = pw->pw_gid; options.gids = gids; - options.gids_sz = 1; + options.num_gids = 1; options.flags = UV_PROCESS_SETGROUPS; @@ -1654,7 +1654,7 @@ TEST_IMPL(spawn_setgids_fails) { options.flags |= UV_PROCESS_SETGROUPS; options.gids = gids; - options.gids_sz = 1; + options.num_gids = 1; r = uv_spawn(uv_default_loop(), &process, &options); ASSERT(r == UV_EPERM);