1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 //! Android-specific raw type definitions
13 #![stable(feature = "raw_ext", since = "1.1.0")]
15 use os
::raw
::{c_uint, c_uchar, c_ulonglong, c_longlong, c_ulong}
;
16 use os
::unix
::raw
::{uid_t, gid_t}
;
18 #[stable(feature = "raw_ext", since = "1.1.0")]
19 pub type blkcnt_t
= u32;
20 #[stable(feature = "raw_ext", since = "1.1.0")]
21 pub type blksize_t
= u32;
22 #[stable(feature = "raw_ext", since = "1.1.0")]
24 #[stable(feature = "raw_ext", since = "1.1.0")]
26 #[stable(feature = "raw_ext", since = "1.1.0")]
27 pub type mode_t
= u16;
28 #[stable(feature = "raw_ext", since = "1.1.0")]
29 pub type nlink_t
= u16;
30 #[stable(feature = "raw_ext", since = "1.1.0")]
32 #[stable(feature = "raw_ext", since = "1.1.0")]
33 pub type time_t
= i32;
36 #[stable(feature = "raw_ext", since = "1.1.0")]
38 #[stable(feature = "raw_ext", since = "1.1.0")]
39 pub st_dev
: c_ulonglong
,
40 #[stable(feature = "raw_ext", since = "1.1.0")]
41 pub __pad0
: [c_uchar
; 4],
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")]
53 pub st_rdev
: c_ulonglong
,
54 #[stable(feature = "raw_ext", since = "1.1.0")]
55 pub __pad3
: [c_uchar
; 4],
56 #[stable(feature = "raw_ext", since = "1.1.0")]
57 pub st_size
: c_longlong
,
58 #[stable(feature = "raw_ext", since = "1.1.0")]
59 pub st_blksize
: blksize_t
,
60 #[stable(feature = "raw_ext", since = "1.1.0")]
61 pub st_blocks
: c_ulonglong
,
62 #[stable(feature = "raw_ext", since = "1.1.0")]
64 #[stable(feature = "raw_ext", since = "1.1.0")]
65 pub st_atime_nsec
: c_ulong
,
66 #[stable(feature = "raw_ext", since = "1.1.0")]
68 #[stable(feature = "raw_ext", since = "1.1.0")]
69 pub st_mtime_nsec
: c_ulong
,
70 #[stable(feature = "raw_ext", since = "1.1.0")]
72 #[stable(feature = "raw_ext", since = "1.1.0")]
73 pub st_ctime_nsec
: c_ulong
,
74 #[stable(feature = "raw_ext", since = "1.1.0")]
75 pub st_ino
: c_ulonglong
,