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.
This commit is contained in:
Andrius Bentkus 2012-10-06 01:43:54 +03:00 committed by Bert Belder
parent b2caee7cfb
commit 193432df7d

View File

@ -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;
/*