Skip to content

Commit 30f70ba

Browse files
committedJan 31, 2016
Merge pull request rust-lang#165 from japaric/musl-nlink_t
musl: define nlink_t as u32/u64
2 parents 53d11fc + ec9db4d commit 30f70ba

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
 

‎src/unix/notbsd/linux/musl/b32/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub type c_long = i32;
22
pub type c_ulong = u32;
3+
pub type nlink_t = u32;
34

45
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
56
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;

‎src/unix/notbsd/linux/musl/b64/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pub type c_char = i8;
22
pub type wchar_t = i32;
33
pub type c_long = i64;
44
pub type c_ulong = u64;
5+
pub type nlink_t = u64;
56

67
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
78
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;

‎src/unix/notbsd/linux/musl/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub type ino_t = u64;
55
pub type off_t = i64;
66
pub type blkcnt_t = i64;
77

8-
pub type nlink_t = usize;
98
pub type blksize_t = c_long;
109
pub type fsblkcnt_t = ::c_ulonglong;
1110
pub type fsfilcnt_t = ::c_ulonglong;

0 commit comments

Comments
 (0)
Please sign in to comment.