1 //! Emscripten-specific raw type definitions
2 //! This is basically exactly the same as the linux definitions,
3 //! except using the musl-specific stat64 structure in liblibc.
5 #![stable(feature = "raw_ext", since = "1.1.0")]
8 note
= "these type aliases are no longer supported by \
9 the standard library, the `libc` crate on \
10 crates.io should be used instead for the correct \
15 use crate::os
::raw
::{c_long, c_short, c_uint, c_ulong}
;
17 #[stable(feature = "raw_ext", since = "1.1.0")]
19 #[stable(feature = "raw_ext", since = "1.1.0")]
20 pub type mode_t
= u32;
22 #[stable(feature = "pthread_t", since = "1.8.0")]
23 pub type pthread_t
= c_ulong
;
25 #[stable(feature = "raw_ext", since = "1.1.0")]
26 pub type blkcnt_t
= u64;
27 #[stable(feature = "raw_ext", since = "1.1.0")]
28 pub type blksize_t
= u64;
29 #[stable(feature = "raw_ext", since = "1.1.0")]
31 #[stable(feature = "raw_ext", since = "1.1.0")]
32 pub type nlink_t
= u64;
33 #[stable(feature = "raw_ext", since = "1.1.0")]
35 #[stable(feature = "raw_ext", since = "1.1.0")]
36 pub type time_t
= c_long
;
40 #[stable(feature = "raw_ext", since = "1.1.0")]
42 #[stable(feature = "raw_ext", since = "1.1.0")]
44 #[stable(feature = "raw_ext", since = "1.1.0")]
46 #[stable(feature = "raw_ext", since = "1.1.0")]
48 #[stable(feature = "raw_ext", since = "1.1.0")]
50 #[stable(feature = "raw_ext", since = "1.1.0")]
52 #[stable(feature = "raw_ext", since = "1.1.0")]
54 #[stable(feature = "raw_ext", since = "1.1.0")]
56 #[stable(feature = "raw_ext", since = "1.1.0")]
58 #[stable(feature = "raw_ext", since = "1.1.0")]
60 #[stable(feature = "raw_ext", since = "1.1.0")]
62 #[stable(feature = "raw_ext", since = "1.1.0")]
64 #[stable(feature = "raw_ext", since = "1.1.0")]
66 #[stable(feature = "raw_ext", since = "1.1.0")]
68 #[stable(feature = "raw_ext", since = "1.1.0")]
69 pub st_atime_nsec
: c_long
,
70 #[stable(feature = "raw_ext", since = "1.1.0")]
72 #[stable(feature = "raw_ext", since = "1.1.0")]
73 pub st_mtime_nsec
: c_long
,
74 #[stable(feature = "raw_ext", since = "1.1.0")]
76 #[stable(feature = "raw_ext", since = "1.1.0")]
77 pub st_ctime_nsec
: c_long
,
78 #[stable(feature = "raw_ext", since = "1.1.0")]