Skip to content

Commit 4d9ab7e

Browse files
committed
Merge pull request #127 from jimblandy/no-linux-fs
libc-test's C program should not #include <linux/fs.h> on Linux
2 parents 0ba8571 + e91606d commit 4d9ab7e

File tree

6 files changed

+1
-17
lines changed

6 files changed

+1
-17
lines changed

libc-test/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ fn main() {
149149
if !musl {
150150
cfg.header("linux/netlink.h");
151151
cfg.header("linux/magic.h");
152-
cfg.header("linux/fs.h");
153152

154153
if !mips {
155154
cfg.header("linux/quota.h");

src/unix/notbsd/android/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,6 @@ pub const IEXTEN: ::tcflag_t = 0x00008000;
410410
pub const TOSTOP: ::tcflag_t = 0x00000100;
411411
pub const FLUSHO: ::tcflag_t = 0x00001000;
412412

413-
pub const MS_RMT_MASK: ::c_ulong = 0x800051;
414-
pub const MS_VERBOSE: ::c_ulong = 0x8000;
415-
416413
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
417414
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
418415
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;

src/unix/notbsd/linux/mips.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,6 @@ pub const SIG_UNBLOCK: ::c_int = 0x2;
356356

357357
pub const PTHREAD_STACK_MIN: ::size_t = 131072;
358358

359-
pub const MS_VERBOSE: ::c_ulong = 0x8000;
360-
pub const MS_RMT_MASK: ::c_ulong = 0x2800051;
361-
362359
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
363360
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
364361
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;

src/unix/notbsd/linux/musl.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,6 @@ pub const MADV_DONTDUMP: ::c_int = 16;
392392

393393
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
394394

395-
pub const MS_NOSEC: ::c_ulong = 0x10000000;
396-
pub const MS_BORN: ::c_ulong = 0x20000000;
397-
pub const MS_RMT_MASK: ::c_ulong = 0x800051;
398-
399395
pub const MADV_HUGEPAGE: ::c_int = 14;
400396
pub const MADV_NOHUGEPAGE: ::c_int = 15;
401397
pub const MAP_HUGETLB: ::c_int = 0x040000;

src/unix/notbsd/linux/other/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,6 @@ pub const RUSAGE_CHILDREN: ::c_int = -1;
283283
pub const ST_RELATIME: ::c_ulong = 4096;
284284
pub const NI_MAXHOST: ::socklen_t = 1025;
285285

286-
pub const MS_VERBOSE: ::c_ulong = 0x8000;
287-
pub const MS_RMT_MASK: ::c_ulong = 0x800051;
288-
289286
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
290287
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
291288
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
@@ -357,9 +354,6 @@ pub const MADV_DONTDUMP: ::c_int = 16;
357354

358355
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
359356

360-
pub const MS_NOSEC: ::c_ulong = 0x10000000;
361-
pub const MS_BORN: ::c_ulong = 0x20000000;
362-
363357
pub const MADV_HUGEPAGE: ::c_int = 14;
364358
pub const MADV_NOHUGEPAGE: ::c_int = 15;
365359
pub const MAP_HUGETLB: ::c_int = 0x040000;

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ pub const MS_ACTIVE: ::c_ulong = 0x40000000;
254254
pub const MS_NOUSER: ::c_ulong = 0x80000000;
255255
pub const MS_MGC_VAL: ::c_ulong = 0xc0ed0000;
256256
pub const MS_MGC_MSK: ::c_ulong = 0xffff0000;
257+
pub const MS_RMT_MASK: ::c_ulong = 0x800051;
257258

258259
pub const EPERM: ::c_int = 1;
259260
pub const ENOENT: ::c_int = 2;

0 commit comments

Comments
 (0)