Skip to content

Commit fdd6631

Browse files
committed
[breaking change] remove constants that are unavailable in emscripten
1 parent 0bc18a5 commit fdd6631

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,8 @@ pub const EFD_CLOEXEC: ::c_int = 0x80000;
613613

614614
pub const USER_PROCESS: ::c_short = 7;
615615

616+
pub const FALLOC_FL_COLLAPSE_RANGE: ::c_int = 0x08;
617+
616618
pub const BUFSIZ: ::c_uint = 1024;
617619
pub const FILENAME_MAX: ::c_uint = 4096;
618620
pub const FOPEN_MAX: ::c_uint = 20;

src/unix/notbsd/emscripten/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,6 @@ pub const MSG_INFO: ::c_int = 12;
946946

947947
pub const MSG_NOERROR: ::c_int = 0o10000;
948948
pub const MSG_EXCEPT: ::c_int = 0o20000;
949-
pub const MSG_COPY: ::c_int = 0o40000;
950949

951950
pub const SHM_R: ::c_int = 0o400;
952951
pub const SHM_W: ::c_int = 0o200;
@@ -1157,10 +1156,6 @@ pub const _POSIX_VDISABLE: ::cc_t = 0;
11571156

11581157
pub const FALLOC_FL_KEEP_SIZE: ::c_int = 0x01;
11591158
pub const FALLOC_FL_PUNCH_HOLE: ::c_int = 0x02;
1160-
pub const FALLOC_FL_COLLAPSE_RANGE: ::c_int = 0x08;
1161-
pub const FALLOC_FL_ZERO_RANGE: ::c_int = 0x10;
1162-
pub const FALLOC_FL_INSERT_RANGE: ::c_int = 0x20;
1163-
pub const FALLOC_FL_UNSHARE_RANGE: ::c_int = 0x40;
11641159

11651160
// On Linux, libc doesn't define this constant, libattr does instead.
11661161
// We still define it for Linux as it's defined by libc on other platforms,
@@ -1213,12 +1208,10 @@ pub const POSIX_FADV_NOREUSE: ::c_int = 5;
12131208
pub const POSIX_MADV_DONTNEED: ::c_int = 0;
12141209

12151210
pub const RLIM_INFINITY: ::rlim_t = !0;
1216-
pub const RLIMIT_RTTIME: ::c_int = 15;
12171211
pub const RLIMIT_NLIMITS: ::c_int = 16;
12181212

12191213
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
12201214

1221-
pub const TCP_COOKIE_TRANSACTIONS: ::c_int = 15;
12221215
pub const TCP_THIN_LINEAR_TIMEOUTS: ::c_int = 16;
12231216
pub const TCP_THIN_DUPACK: ::c_int = 17;
12241217
pub const TCP_USER_TIMEOUT: ::c_int = 18;

0 commit comments

Comments
 (0)