OSDN Git Service

Update MS_ mount flags, define unshare() syscall.
authorJeff Sharkey <jsharkey@android.com>
Sat, 11 Aug 2012 21:12:26 +0000 (14:12 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 14 Aug 2012 18:45:12 +0000 (11:45 -0700)
Bug: 6925012
Change-Id: I4ad79b4bccb7737d4dc704476cdb5795d124f53e

libc/include/sched.h
libc/include/sys/mount.h

index ca72da7..4d7d8c6 100644 (file)
@@ -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 */
index ba88447..207527e 100644 (file)
@@ -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)