diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2016-03-15 05:49:51 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-04 09:48:43 +0200 |
commit | 007eeb3e109d833a52603c3a19436907126b33a8 (patch) | |
tree | 50ccb541cc81ffa5fe866d4c807828d5b152ee8b | |
parent | 0715d1b22a6f0008b70fe4b1881045f65521ac19 (diff) |
Use posix types for mig definitions.
* hurd/hurd_types.defs: Use posix types.
* libfshelp/start-translator-long.c: Use uint32_t instead of
unsigned32_t.
-rw-r--r-- | hurd/hurd_types.defs | 20 | ||||
-rw-r--r-- | libfshelp/start-translator-long.c | 3 |
2 files changed, 12 insertions, 11 deletions
diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs index 18375001..4d7013c8 100644 --- a/hurd/hurd_types.defs +++ b/hurd/hurd_types.defs @@ -349,16 +349,16 @@ serverprefix SERVERPREFIX; type data_t = array[] of char; type string_t = c_string[1024]; /* XXX */ type io_statbuf_t = struct[32] of int; -type uid_t = unsigned32; -type gid_t = unsigned32; -type mode_t = unsigned32; -type retry_type = unsigned32; -type pid_t = int32; -type wait_status_t = int32; -type loff_t = int64; -type ino64_t = int64; -type file_changed_type_t = unsigned32; -type dir_changed_type_t = unsigned32; +type uid_t = uint32_t; +type gid_t = uint32_t; +type mode_t = uint32_t; +type retry_type = uint32_t; +type pid_t = int32_t; +type wait_status_t = int32_t; +type loff_t = int64_t; +type ino64_t = int64_t; +type file_changed_type_t = uint32_t; +type dir_changed_type_t = uint32_t; type portarray_t = array[] of mach_port_send_t; type intarray_t = array[] of int; diff --git a/libfshelp/start-translator-long.c b/libfshelp/start-translator-long.c index 8b00e088..da6f52e3 100644 --- a/libfshelp/start-translator-long.c +++ b/libfshelp/start-translator-long.c @@ -24,6 +24,7 @@ #include <errno.h> #include <unistd.h> #include <fcntl.h> +#include <stdint.h> #include <string.h> #include <assert.h> #include "fshelp.h" @@ -107,7 +108,7 @@ service_fsys_startup (fshelp_open_fn_t underlying_open_fn, void *cookie, { union { - unsigned32_t word; + uint32_t word; mach_msg_type_t type; } t, c; t.type = *type; |