From 193432df7d9fd4aef80a3e993f6c00824d5fc50e Mon Sep 17 00:00:00 2001 From: Andrius Bentkus Date: Sat, 6 Oct 2012 01:43:54 +0300 Subject: [PATCH] uv.h: move gid and uid to the end of the uv_process_t struct uv_gid_t and uv_uid_t have different sizes on different platforms. Moving them to the end of the struct is easier for bindings that use FFI. --- include/uv.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/uv.h b/include/uv.h index f040f50d..46eee26e 100644 --- a/include/uv.h +++ b/include/uv.h @@ -1262,14 +1262,6 @@ typedef struct uv_process_options_s { * `enum uv_process_flags` below. */ unsigned int flags; - /* - * Libuv can change the child process' user/group id. This happens only when - * the appropriate bits are set in the flags fields. This is not supported on - * windows; uv_spawn() will fail and set the error to UV_ENOTSUP. - */ - uv_uid_t uid; - uv_gid_t gid; - /* * The `stdio` field points to an array of uv_stdio_container_t structs that * describe the file descriptors that will be made available to the child @@ -1281,6 +1273,13 @@ typedef struct uv_process_options_s { */ int stdio_count; uv_stdio_container_t* stdio; + /* + * Libuv can change the child process' user/group id. This happens only when + * the appropriate bits are set in the flags fields. This is not supported on + * windows; uv_spawn() will fail and set the error to UV_ENOTSUP. + */ + uv_uid_t uid; + uv_gid_t gid; } uv_process_options_t; /*