chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / include / sys / mount.h
1 /*
2  * sys/mount.h
3  */
4
5 #ifndef _SYS_MOUNT_H
6 #define _SYS_MOUNT_H
7
8 #include <klibc/extern.h>
9
10 /*
11  * These are the fs-independent mount-flags: up to 32 flags are supported
12  */
13 #define MS_RDONLY        1      /* Mount read-only */
14 #define MS_NOSUID        2      /* Ignore suid and sgid bits */
15 #define MS_NODEV         4      /* Disallow access to device special files */
16 #define MS_NOEXEC        8      /* Disallow program execution */
17 #define MS_SYNCHRONOUS  16      /* Writes are synced at once */
18 #define MS_REMOUNT      32      /* Alter flags of a mounted FS */
19 #define MS_MANDLOCK     64      /* Allow mandatory locks on an FS */
20 #define MS_DIRSYNC      128     /* Directory modifications are synchronous */
21 #define MS_NOATIME      1024    /* Do not update access times. */
22 #define MS_NODIRATIME   2048    /* Do not update directory access times */
23 #define MS_BIND         4096
24 #define MS_MOVE         8192
25 #define MS_REC          16384
26 #define MS_VERBOSE      32768
27 #define MS_NOUSER       (1<<31)
28
29 /*
30  * Superblock flags that can be altered by MS_REMOUNT
31  */
32 #define MS_RMT_MASK     (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_NOATIME|MS_NODIRATIME)
33
34 /*
35  * Old magic mount flag and mask
36  */
37 #define MS_MGC_VAL 0xC0ED0000
38 #define MS_MGC_MSK 0xffff0000
39
40 /*
41  * umount2() flags
42  */
43 #define MNT_FORCE       1
44
45 /*
46  * Prototypes
47  */
48 __extern int mount(const char *, const char *,
49                    const char *, unsigned long,
50                    const void *);
51 __extern int umount(const char *);
52 __extern int umount2(const char *, int);
53 __extern int pivot_root(const char *, const char *);
54
55 #endif /* _SYS_MOUNT_H */