Skip to content

Commit 7a64fe9

Browse files
committed
uclibc/mips: remove duplicated constants and add SYS_clone3
1 parent 6a12326 commit 7a64fe9

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ pub const SYS_pwritev2: ::c_long = 4000 + 362;
625625
pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
626626
pub const SYS_pkey_alloc: ::c_long = 4000 + 364;
627627
pub const SYS_pkey_free: ::c_long = 4000 + 365;
628+
pub const SYS_clone3: ::c_long = 4000 + 435;
628629

629630
#[link(name = "util")]
630631
extern "C" {

src/unix/linux_like/linux/uclibc/mips/mod.rs

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,13 @@ pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
3232

3333
pub const EFD_CLOEXEC: ::c_int = 0x80000;
3434

35-
pub const BUFSIZ: ::c_uint = 4096;
3635
pub const TMP_MAX: ::c_uint = 238328;
37-
pub const FOPEN_MAX: ::c_uint = 16;
38-
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
3936
pub const _SC_2_C_VERSION: ::c_int = 96;
4037
pub const O_ACCMODE: ::c_int = 3;
4138
pub const O_DIRECT: ::c_int = 0x8000;
4239
pub const O_DIRECTORY: ::c_int = 0x10000;
4340
pub const O_NOFOLLOW: ::c_int = 0x20000;
4441

45-
pub const RLIMIT_NOFILE: ::c_int = 5;
46-
pub const RLIMIT_AS: ::c_int = 6;
47-
pub const RLIMIT_RSS: ::c_int = 7;
48-
pub const RLIMIT_NPROC: ::c_int = 8;
49-
pub const RLIMIT_MEMLOCK: ::c_int = 9;
5042
pub const RLIMIT_NLIMITS: ::c_int = 15;
5143
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
5244

@@ -86,7 +78,6 @@ pub const EXFULL: ::c_int = 52;
8678
pub const ENOANO: ::c_int = 53;
8779
pub const EBADRQC: ::c_int = 54;
8880
pub const EBADSLT: ::c_int = 55;
89-
pub const EDEADLOCK: ::c_int = 56;
9081
pub const EMULTIHOP: ::c_int = 74;
9182
pub const EOVERFLOW: ::c_int = 79;
9283
pub const ENOTUNIQ: ::c_int = 80;
@@ -188,7 +179,6 @@ pub const SIGTSTP: ::c_int = 24;
188179
pub const SIGURG: ::c_int = 21;
189180
pub const SIGIO: ::c_int = 22;
190181
pub const SIGSYS: ::c_int = 12;
191-
pub const SIGPOLL: ::c_int = 22;
192182
pub const SIGPWR: ::c_int = 19;
193183
pub const SIG_SETMASK: ::c_int = 3;
194184
pub const SIG_BLOCK: ::c_int = 0x1;
@@ -215,47 +205,15 @@ pub const CPU_SETSIZE: ::c_int = 0x400;
215205
pub const EFD_NONBLOCK: ::c_int = 0x80;
216206

217207
pub const F_GETLK: ::c_int = 14;
218-
pub const F_GETOWN: ::c_int = 23;
219-
pub const F_SETOWN: ::c_int = 24;
220208
pub const F_SETLK: ::c_int = 6;
221209
pub const F_SETLKW: ::c_int = 7;
222210

223211
pub const SFD_NONBLOCK: ::c_int = 0x80;
224212

225-
pub const TCGETS: ::c_ulong = 0x540d;
226-
pub const TCSETS: ::c_ulong = 0x540e;
227-
pub const TCSETSW: ::c_ulong = 0x540f;
228-
pub const TCSETSF: ::c_ulong = 0x5410;
229-
pub const TCGETA: ::c_ulong = 0x5401;
230-
pub const TCSETA: ::c_ulong = 0x5402;
231-
pub const TCSETAW: ::c_ulong = 0x5403;
232-
pub const TCSETAF: ::c_ulong = 0x5404;
233-
pub const TCSBRK: ::c_ulong = 0x5405;
234-
pub const TCXONC: ::c_ulong = 0x5406;
235-
pub const TCFLSH: ::c_ulong = 0x5407;
236-
pub const TIOCGSOFTCAR: ::c_ulong = 0x5481;
237-
pub const TIOCSSOFTCAR: ::c_ulong = 0x5482;
238-
pub const TIOCINQ: ::c_ulong = 0x467f;
239-
pub const TIOCLINUX: ::c_ulong = 0x5483;
240-
pub const TIOCGSERIAL: ::c_ulong = 0x5484;
241-
pub const TIOCEXCL: ::c_ulong = 0x740d;
242-
pub const TIOCNXCL: ::c_ulong = 0x740e;
243-
pub const TIOCSCTTY: ::c_ulong = 0x5480;
244-
pub const TIOCGPGRP: ::c_ulong = 0x40047477;
245-
pub const TIOCSPGRP: ::c_ulong = 0x80047476;
246-
pub const TIOCOUTQ: ::c_ulong = 0x7472;
247-
pub const TIOCSTI: ::c_ulong = 0x5472;
248213
pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
249214
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
250-
pub const TIOCMGET: ::c_ulong = 0x741d;
251-
pub const TIOCMBIS: ::c_ulong = 0x741b;
252-
pub const TIOCMBIC: ::c_ulong = 0x741c;
253-
pub const TIOCMSET: ::c_ulong = 0x741a;
254-
pub const FIONREAD: ::c_ulong = 0x467f;
255-
pub const TIOCCONS: ::c_ulong = 0x80047478;
256215

257216
pub const RTLD_GLOBAL: ::c_int = 0x4;
258-
pub const RTLD_NOLOAD: ::c_int = 0x8;
259217

260218
pub const SIGSTKSZ: ::size_t = 8192;
261219
pub const CBAUD: ::tcflag_t = 0o0010017;
@@ -315,8 +273,6 @@ pub const B4800: ::speed_t = 0o000014;
315273
pub const B9600: ::speed_t = 0o000015;
316274
pub const B19200: ::speed_t = 0o000016;
317275
pub const B38400: ::speed_t = 0o000017;
318-
pub const EXTA: ::speed_t = B19200;
319-
pub const EXTB: ::speed_t = B38400;
320276
pub const B57600: ::speed_t = 0o010001;
321277
pub const B115200: ::speed_t = 0o010002;
322278
pub const B230400: ::speed_t = 0o010003;

0 commit comments

Comments
 (0)