File tree Expand file tree Collapse file tree 15 files changed +232
-299
lines changed Expand file tree Collapse file tree 15 files changed +232
-299
lines changed Original file line number Diff line number Diff line change 10
10
11
11
//! Crate docs
12
12
13
- #![ allow( bad_style, raw_pointer_derive) ]
13
+ #![ allow( bad_style, raw_pointer_derive, improper_ctypes ) ]
14
14
#![ cfg_attr( dox, feature( no_core, lang_items) ) ]
15
15
#![ cfg_attr( dox, no_core) ]
16
16
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
@@ -77,6 +77,25 @@ pub type uint16_t = u16;
77
77
pub type uint32_t = u32 ;
78
78
pub type uint64_t = u64 ;
79
79
80
+ pub type c_schar = i8 ;
81
+ pub type c_uchar = u8 ;
82
+ pub type c_short = i16 ;
83
+ pub type c_ushort = u16 ;
84
+ pub type c_int = i32 ;
85
+ pub type c_uint = u32 ;
86
+ pub type c_float = f32 ;
87
+ pub type c_double = f64 ;
88
+ pub type c_longlong = i64 ;
89
+ pub type c_ulonglong = u64 ;
90
+ pub type intmax_t = i64 ;
91
+ pub type uintmax_t = u64 ;
92
+
93
+ pub type size_t = usize ;
94
+ pub type ptrdiff_t = isize ;
95
+ pub type intptr_t = isize ;
96
+ pub type uintptr_t = usize ;
97
+ pub type ssize_t = isize ;
98
+
80
99
pub enum FILE { }
81
100
pub enum fpos_t { }
82
101
pub enum DIR { }
Original file line number Diff line number Diff line change 2
2
3
3
pub type c_long = i32 ;
4
4
pub type c_ulong = u32 ;
5
- pub type size_t = u32 ;
6
- pub type ptrdiff_t = i32 ;
7
- pub type intptr_t = i32 ;
8
- pub type uintptr_t = u32 ;
9
5
10
6
pub const __PTHREAD_MUTEX_SIZE__: usize = 40 ;
11
7
pub const __PTHREAD_COND_SIZE__: usize = 24 ;
Original file line number Diff line number Diff line change 2
2
3
3
pub type c_long = i64 ;
4
4
pub type c_ulong = u64 ;
5
- pub type size_t = u64 ;
6
- pub type ptrdiff_t = i64 ;
7
- pub type intptr_t = i64 ;
8
- pub type uintptr_t = u64 ;
9
5
10
6
pub const __PTHREAD_MUTEX_SIZE__: usize = 56 ;
11
7
pub const __PTHREAD_COND_SIZE__: usize = 40 ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ pub type suseconds_t = i32;
8
8
pub type dev_t = i32 ;
9
9
pub type ino_t = u64 ;
10
10
pub type mode_t = u16 ;
11
- pub type ssize_t = c_long ;
12
11
pub type nlink_t = u16 ;
13
12
pub type blksize_t = i32 ;
14
13
pub type rlim_t = u64 ;
@@ -20,9 +19,9 @@ pub enum timezone {}
20
19
21
20
s ! {
22
21
pub struct glob_t {
23
- pub gl_pathc: size_t,
22
+ pub gl_pathc: :: size_t,
24
23
__unused1: :: c_int,
25
- pub gl_offs: size_t,
24
+ pub gl_offs: :: size_t,
26
25
__unused2: :: c_int,
27
26
pub gl_pathv: * mut * mut :: c_char,
28
27
@@ -390,7 +389,7 @@ pub const _SC_XOPEN_XCU_VERSION: ::c_int = 121;
390
389
391
390
pub const PTHREAD_CREATE_JOINABLE : :: c_int = 1 ;
392
391
pub const PTHREAD_CREATE_DETACHED : :: c_int = 2 ;
393
- pub const PTHREAD_STACK_MIN : size_t = 8192 ;
392
+ pub const PTHREAD_STACK_MIN : :: size_t = 8192 ;
394
393
395
394
pub const RLIMIT_CPU : :: c_int = 0 ;
396
395
pub const RLIMIT_FSIZE : :: c_int = 1 ;
Original file line number Diff line number Diff line change 1
1
pub type c_long = i32 ;
2
2
pub type c_ulong = u32 ;
3
- pub type size_t = u32 ;
4
- pub type ptrdiff_t = i32 ;
5
3
pub type time_t = i32 ;
6
4
pub type suseconds_t = i32 ;
7
- pub type intptr_t = i32 ;
8
- pub type uintptr_t = u32 ;
9
- pub type ssize_t = i32 ;
10
5
11
6
s ! {
12
7
pub struct stat {
Original file line number Diff line number Diff line change 1
1
pub type c_long = i64 ;
2
2
pub type c_ulong = u64 ;
3
- pub type size_t = u64 ;
4
- pub type ptrdiff_t = i64 ;
5
3
pub type time_t = i64 ;
6
4
pub type suseconds_t = i64 ;
7
- pub type intptr_t = i64 ;
8
- pub type uintptr_t = u64 ;
9
- pub type ssize_t = i64 ;
10
5
11
6
s ! {
12
7
pub struct stat {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub type useconds_t = u32;
5
5
pub type blkcnt_t = i64 ;
6
6
pub type socklen_t = u32 ;
7
7
pub type sa_family_t = u8 ;
8
- pub type pthread_t = uintptr_t ;
8
+ pub type pthread_t = :: uintptr_t ;
9
9
10
10
s ! {
11
11
pub struct sockaddr {
@@ -76,11 +76,11 @@ pub const IPV6_MULTICAST_LOOP: ::c_int = 11;
76
76
pub const IPV6_V6ONLY : :: c_int = 27 ;
77
77
78
78
extern {
79
- pub fn mincore ( addr : * const :: c_void , len : size_t ,
79
+ pub fn mincore ( addr : * const :: c_void , len : :: size_t ,
80
80
vec : * mut c_char ) -> :: c_int ;
81
81
pub fn sysctlnametomib ( name : * const c_char ,
82
82
mibp : * mut :: c_int ,
83
- sizep : * mut size_t )
83
+ sizep : * mut :: size_t )
84
84
-> :: c_int ;
85
85
pub fn setgroups ( ngroups : :: c_int ,
86
86
ptr : * const :: gid_t ) -> :: c_int ;
Original file line number Diff line number Diff line change 1
1
pub type c_long = i64 ;
2
2
pub type c_ulong = u64 ;
3
- pub type size_t = u64 ;
4
- pub type ptrdiff_t = i64 ;
5
3
pub type clock_t = i64 ;
6
4
pub type time_t = i64 ;
7
5
pub type suseconds_t = i64 ;
8
- pub type intptr_t = i64 ;
9
- pub type uintptr_t = u64 ;
10
6
pub type dev_t = i32 ;
11
7
pub type mode_t = u32 ;
12
- pub type ssize_t = c_long ;
13
8
pub type nlink_t = uint32_t ;
14
9
pub type blksize_t = uint32_t ;
15
10
pub type ino_t = uint64_t ;
You can’t perform that action at this time.
0 commit comments