Skip to content

Commit 4c3bc0d

Browse files
committed
Fix duplicated constants in x32 and not_x32 modules
1 parent bf92b76 commit 4c3bc0d

File tree

2 files changed

+0
-80
lines changed

2 files changed

+0
-80
lines changed

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -58,48 +58,8 @@ s! {
5858
}
5959
}
6060

61-
pub const VEOF: usize = 4;
62-
pub const RTLD_DEEPBIND: ::c_int = 0x8;
63-
pub const RTLD_GLOBAL: ::c_int = 0x100;
64-
pub const RTLD_NOLOAD: ::c_int = 0x4;
6561
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
6662
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
67-
pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
68-
pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
69-
pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
70-
pub const TIOCM_ST: ::c_int = 0x008;
71-
pub const TIOCM_SR: ::c_int = 0x010;
72-
pub const TIOCM_CTS: ::c_int = 0x020;
73-
pub const TIOCM_CAR: ::c_int = 0x040;
74-
pub const TIOCM_RNG: ::c_int = 0x080;
75-
pub const TIOCM_DSR: ::c_int = 0x100;
76-
pub const EUCLEAN: ::c_int = 117;
77-
pub const ENOTNAM: ::c_int = 118;
78-
pub const ENAVAIL: ::c_int = 119;
79-
pub const EISNAM: ::c_int = 120;
80-
pub const EREMOTEIO: ::c_int = 121;
81-
pub const MAP_ANON: ::c_int = 0x0020;
82-
pub const MAP_ANONYMOUS: ::c_int = 0x0020;
83-
pub const MAP_DENYWRITE: ::c_int = 0x0800;
84-
pub const MAP_EXECUTABLE: ::c_int = 0x01000;
85-
pub const MAP_POPULATE: ::c_int = 0x08000;
86-
pub const MAP_NONBLOCK: ::c_int = 0x010000;
87-
pub const MAP_STACK: ::c_int = 0x020000;
88-
pub const MAP_HUGETLB: ::c_int = 0x040000;
89-
pub const SOCK_STREAM: ::c_int = 1;
90-
pub const SOCK_DGRAM: ::c_int = 2;
91-
pub const SIGTTIN: ::c_int = 21;
92-
pub const SIGTTOU: ::c_int = 22;
93-
pub const SIGXCPU: ::c_int = 24;
94-
pub const SIGXFSZ: ::c_int = 25;
95-
pub const SIGVTALRM: ::c_int = 26;
96-
pub const SIGPROF: ::c_int = 27;
97-
pub const SIGWINCH: ::c_int = 28;
98-
pub const TCSANOW: ::c_int = 0;
99-
pub const TCSADRAIN: ::c_int = 1;
100-
pub const TCSAFLUSH: ::c_int = 2;
101-
pub const TIOCLINUX: ::c_ulong = 0x541C;
102-
pub const TIOCGSERIAL: ::c_ulong = 0x541E;
10363

10464
align_const! {
10565
#[cfg(target_endian = "little")]

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -58,48 +58,8 @@ s! {
5858
}
5959
}
6060

61-
pub const VEOF: usize = 4;
62-
pub const RTLD_DEEPBIND: ::c_int = 0x8;
63-
pub const RTLD_GLOBAL: ::c_int = 0x100;
64-
pub const RTLD_NOLOAD: ::c_int = 0x4;
6561
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 32;
6662
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 44;
67-
pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
68-
pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
69-
pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
70-
pub const TIOCM_ST: ::c_int = 0x008;
71-
pub const TIOCM_SR: ::c_int = 0x010;
72-
pub const TIOCM_CTS: ::c_int = 0x020;
73-
pub const TIOCM_CAR: ::c_int = 0x040;
74-
pub const TIOCM_RNG: ::c_int = 0x080;
75-
pub const TIOCM_DSR: ::c_int = 0x100;
76-
pub const EUCLEAN: ::c_int = 117;
77-
pub const ENOTNAM: ::c_int = 118;
78-
pub const ENAVAIL: ::c_int = 119;
79-
pub const EISNAM: ::c_int = 120;
80-
pub const EREMOTEIO: ::c_int = 121;
81-
pub const MAP_ANON: ::c_int = 0x0020;
82-
pub const MAP_ANONYMOUS: ::c_int = 0x0020;
83-
pub const MAP_DENYWRITE: ::c_int = 0x0800;
84-
pub const MAP_EXECUTABLE: ::c_int = 0x01000;
85-
pub const MAP_POPULATE: ::c_int = 0x08000;
86-
pub const MAP_NONBLOCK: ::c_int = 0x010000;
87-
pub const MAP_STACK: ::c_int = 0x020000;
88-
pub const MAP_HUGETLB: ::c_int = 0x040000;
89-
pub const SOCK_STREAM: ::c_int = 1;
90-
pub const SOCK_DGRAM: ::c_int = 2;
91-
pub const SIGTTIN: ::c_int = 21;
92-
pub const SIGTTOU: ::c_int = 22;
93-
pub const SIGXCPU: ::c_int = 24;
94-
pub const SIGXFSZ: ::c_int = 25;
95-
pub const SIGVTALRM: ::c_int = 26;
96-
pub const SIGPROF: ::c_int = 27;
97-
pub const SIGWINCH: ::c_int = 28;
98-
pub const TCSANOW: ::c_int = 0;
99-
pub const TCSADRAIN: ::c_int = 1;
100-
pub const TCSAFLUSH: ::c_int = 2;
101-
pub const TIOCLINUX: ::c_ulong = 0x541C;
102-
pub const TIOCGSERIAL: ::c_ulong = 0x541E;
10363

10464
align_const! {
10565
pub const PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP: ::pthread_mutex_t =

0 commit comments

Comments
 (0)