Skip to content

Commit 60571f9

Browse files
committed
Remove duplicated constants from x86_64
1 parent d36963a commit 60571f9

File tree

2 files changed

+0
-76
lines changed

2 files changed

+0
-76
lines changed

src/unix/linux_like/linux/gnu/b64/not_x32.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ pub type c_long = i64;
44
pub type c_ulong = u64;
55

66
s! {
7-
pub struct sigaction {
8-
pub sa_sigaction: ::sighandler_t,
9-
pub sa_mask: ::sigset_t,
10-
#[cfg(target_arch = "sparc64")]
11-
__reserved0: ::c_int,
12-
pub sa_flags: ::c_int,
13-
pub sa_restorer: ::Option<extern fn()>,
14-
}
15-
167
pub struct statvfs {
178
pub f_bsize: ::c_ulong,
189
pub f_frsize: ::c_ulong,
@@ -27,35 +18,6 @@ s! {
2718
pub f_namemax: ::c_ulong,
2819
__f_spare: [::c_int; 6],
2920
}
30-
31-
pub struct siginfo_t {
32-
pub si_signo: ::c_int,
33-
pub si_errno: ::c_int,
34-
pub si_code: ::c_int,
35-
#[doc(hidden)]
36-
#[deprecated(
37-
since="0.2.54",
38-
note="Please leave a comment on \
39-
https://github.com/rust-lang/libc/pull/1316 if you're using \
40-
this field"
41-
)]
42-
pub _pad: [::c_int; 29],
43-
_align: [usize; 0],
44-
}
45-
46-
pub struct stack_t {
47-
pub ss_sp: *mut ::c_void,
48-
pub ss_flags: ::c_int,
49-
pub ss_size: ::size_t
50-
}
51-
52-
pub struct flock {
53-
pub l_type: ::c_short,
54-
pub l_whence: ::c_short,
55-
pub l_start: ::off_t,
56-
pub l_len: ::off_t,
57-
pub l_pid: ::pid_t,
58-
}
5921
}
6022

6123
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;

src/unix/linux_like/linux/gnu/b64/x32.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@ pub type c_long = i32;
44
pub type c_ulong = u32;
55

66
s! {
7-
pub struct sigaction {
8-
pub sa_sigaction: ::sighandler_t,
9-
pub sa_mask: ::sigset_t,
10-
#[cfg(target_arch = "sparc64")]
11-
__reserved0: ::c_int,
12-
pub sa_flags: ::c_int,
13-
pub sa_restorer: ::Option<extern fn()>,
14-
}
15-
16-
pub struct flock {
17-
pub l_type: ::c_short,
18-
pub l_whence: ::c_short,
19-
pub l_start: ::off_t,
20-
pub l_len: ::off_t,
21-
pub l_pid: ::pid_t,
22-
}
23-
247
pub struct statvfs {
258
pub f_bsize: ::c_ulong,
269
pub f_frsize: ::c_ulong,
@@ -35,27 +18,6 @@ s! {
3518
pub f_namemax: ::c_ulong,
3619
__f_spare: [::c_int; 6],
3720
}
38-
39-
pub struct siginfo_t {
40-
pub si_signo: ::c_int,
41-
pub si_errno: ::c_int,
42-
pub si_code: ::c_int,
43-
#[doc(hidden)]
44-
#[deprecated(
45-
since="0.2.54",
46-
note="Please leave a comment on \
47-
https://github.com/rust-lang/libc/pull/1316 if you're using \
48-
this field"
49-
)]
50-
pub _pad: [::c_int; 29],
51-
_align: [usize; 0],
52-
}
53-
54-
pub struct stack_t {
55-
pub ss_sp: *mut ::c_void,
56-
pub ss_flags: ::c_int,
57-
pub ss_size: ::size_t
58-
}
5921
}
6022

6123
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 32;

0 commit comments

Comments
 (0)