From 74c046400677505aebe9686f111f147c2855cde0 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Sat, 11 Aug 2012 14:12:26 -0700 Subject: [PATCH] Update MS_ mount flags, define unshare() syscall. (cherry-pick of 82393decdfc6b0383054fb5d2f54725bbee88b8c.) Bug: 6925012 Change-Id: I4f962d8975ad62ff4b9983150f9e481796092b9d --- libc/include/sched.h | 1 + libc/include/sys/mount.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libc/include/sched.h b/libc/include/sched.h index ca72da7a7..4d7d8c6b1 100644 --- a/libc/include/sched.h +++ b/libc/include/sched.h @@ -71,6 +71,7 @@ extern int sched_rr_get_interval(pid_t pid, struct timespec *tp); #ifdef _GNU_SOURCE extern int clone(int (*fn)(void *), void *child_stack, int flags, void* arg, ...); +extern int unshare(int); #endif /* Support for cpu thread affinity */ diff --git a/libc/include/sys/mount.h b/libc/include/sys/mount.h index ba8844752..207527eb6 100644 --- a/libc/include/sys/mount.h +++ b/libc/include/sys/mount.h @@ -51,7 +51,10 @@ __BEGIN_DECLS #define MS_REC 16384 #define MS_VERBOSE 32768 #define MS_POSIXACL (1<<16) /* VFS does not apply the umask */ -#define MS_ONE_SECOND (1<<17) /* fs has 1 sec a/m/ctime resolution */ +#define MS_UNBINDABLE (1<<17) /* change to unbindable */ +#define MS_PRIVATE (1<<18) /* change to private */ +#define MS_SLAVE (1<<19) /* change to slave */ +#define MS_SHARED (1<<20) /* change to shared */ #define MS_ACTIVE (1<<30) #define MS_NOUSER (1<<31)