|
| 1 | +use crate::{c_int, c_long, c_uint, c_ulong, c_ulonglong, c_ushort, off_t, size_t}; |
| 2 | + |
1 | 3 | pub type c_char = u8; |
2 | | -pub type __u64 = ::c_ulonglong; |
| 4 | +pub type __u64 = c_ulonglong; |
3 | 5 | pub type wchar_t = u32; |
4 | | -pub type nlink_t = ::c_ulong; |
5 | | -pub type blksize_t = ::c_long; |
| 6 | +pub type nlink_t = c_ulong; |
| 7 | +pub type blksize_t = c_long; |
6 | 8 |
|
7 | 9 | s! { |
8 | 10 | pub struct stat { |
9 | | - pub st_dev: ::dev_t, |
10 | | - pub st_ino: ::ino_t, |
11 | | - pub st_mode: ::mode_t, |
12 | | - pub st_nlink: ::nlink_t, |
13 | | - pub st_uid: ::uid_t, |
14 | | - pub st_gid: ::gid_t, |
15 | | - pub st_rdev: ::dev_t, |
16 | | - __pad0: ::c_ulong, |
17 | | - pub st_size: ::off_t, |
18 | | - pub st_blksize: ::blksize_t, |
19 | | - __pad1: ::c_int, |
20 | | - pub st_blocks: ::blkcnt_t, |
21 | | - pub st_atime: ::time_t, |
22 | | - pub st_atime_nsec: ::c_long, |
23 | | - pub st_mtime: ::time_t, |
24 | | - pub st_mtime_nsec: ::c_long, |
25 | | - pub st_ctime: ::time_t, |
26 | | - pub st_ctime_nsec: ::c_long, |
27 | | - __unused: [::c_uint; 2], |
| 11 | + pub st_dev: crate::dev_t, |
| 12 | + pub st_ino: crate::ino_t, |
| 13 | + pub st_mode: crate::mode_t, |
| 14 | + pub st_nlink: crate::nlink_t, |
| 15 | + pub st_uid: crate::uid_t, |
| 16 | + pub st_gid: crate::gid_t, |
| 17 | + pub st_rdev: crate::dev_t, |
| 18 | + __pad0: c_ulong, |
| 19 | + pub st_size: off_t, |
| 20 | + pub st_blksize: crate::blksize_t, |
| 21 | + __pad1: c_int, |
| 22 | + pub st_blocks: crate::blkcnt_t, |
| 23 | + pub st_atime: crate::time_t, |
| 24 | + pub st_atime_nsec: c_long, |
| 25 | + pub st_mtime: crate::time_t, |
| 26 | + pub st_mtime_nsec: c_long, |
| 27 | + pub st_ctime: crate::time_t, |
| 28 | + pub st_ctime_nsec: c_long, |
| 29 | + __unused: [c_uint; 2], |
28 | 30 | } |
29 | 31 |
|
30 | 32 | pub struct stat64 { |
31 | | - pub st_dev: ::dev_t, |
32 | | - pub st_ino: ::ino_t, |
33 | | - pub st_mode: ::mode_t, |
34 | | - pub st_nlink: ::nlink_t, |
35 | | - pub st_uid: ::uid_t, |
36 | | - pub st_gid: ::gid_t, |
37 | | - pub st_rdev: ::dev_t, |
38 | | - __pad0: ::c_ulong, |
39 | | - pub st_size: ::off_t, |
40 | | - pub st_blksize: ::blksize_t, |
41 | | - __pad1: ::c_int, |
42 | | - pub st_blocks: ::blkcnt_t, |
43 | | - pub st_atime: ::time_t, |
44 | | - pub st_atime_nsec: ::c_long, |
45 | | - pub st_mtime: ::time_t, |
46 | | - pub st_mtime_nsec: ::c_long, |
47 | | - pub st_ctime: ::time_t, |
48 | | - pub st_ctime_nsec: ::c_long, |
49 | | - __unused: [::c_uint; 2], |
| 33 | + pub st_dev: crate::dev_t, |
| 34 | + pub st_ino: crate::ino_t, |
| 35 | + pub st_mode: crate::mode_t, |
| 36 | + pub st_nlink: crate::nlink_t, |
| 37 | + pub st_uid: crate::uid_t, |
| 38 | + pub st_gid: crate::gid_t, |
| 39 | + pub st_rdev: crate::dev_t, |
| 40 | + __pad0: c_ulong, |
| 41 | + pub st_size: off_t, |
| 42 | + pub st_blksize: crate::blksize_t, |
| 43 | + __pad1: c_int, |
| 44 | + pub st_blocks: crate::blkcnt_t, |
| 45 | + pub st_atime: crate::time_t, |
| 46 | + pub st_atime_nsec: c_long, |
| 47 | + pub st_mtime: crate::time_t, |
| 48 | + pub st_mtime_nsec: c_long, |
| 49 | + pub st_ctime: crate::time_t, |
| 50 | + pub st_ctime_nsec: c_long, |
| 51 | + __unused: [c_uint; 2], |
50 | 52 | } |
51 | 53 |
|
52 | 54 | pub struct ipc_perm { |
53 | | - pub __ipc_perm_key: ::key_t, |
54 | | - pub uid: ::uid_t, |
55 | | - pub gid: ::gid_t, |
56 | | - pub cuid: ::uid_t, |
57 | | - pub cgid: ::gid_t, |
58 | | - pub mode: ::mode_t, |
59 | | - pub __seq: ::c_ushort, |
60 | | - __unused1: ::c_ulong, |
61 | | - __unused2: ::c_ulong, |
| 55 | + pub __ipc_perm_key: crate::key_t, |
| 56 | + pub uid: crate::uid_t, |
| 57 | + pub gid: crate::gid_t, |
| 58 | + pub cuid: crate::uid_t, |
| 59 | + pub cgid: crate::gid_t, |
| 60 | + pub mode: crate::mode_t, |
| 61 | + pub __seq: c_ushort, |
| 62 | + __unused1: c_ulong, |
| 63 | + __unused2: c_ulong, |
62 | 64 | } |
63 | 65 | } |
64 | 66 |
|
65 | 67 | // From https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/third_party/ulib/musl/include/bits/signal.h;l=20-21;drc=0827b18ab9540c46f8037f407d17ea15a79e9ba7 |
66 | | -pub const MINSIGSTKSZ: ::size_t = 6144; |
67 | | -pub const SIGSTKSZ: ::size_t = 12288; |
| 68 | +pub const MINSIGSTKSZ: size_t = 6144; |
| 69 | +pub const SIGSTKSZ: size_t = 12288; |
0 commit comments