]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/linux/fs/fs.factor
Create basis vocab root
[factor.git] / basis / unix / linux / fs / fs.factor
1
2 USING: alien.syntax ;
3
4 IN: unix.linux.fs
5
6 : MS_RDONLY             1    ; ! Mount read-only.
7 : MS_NOSUID             2    ; ! Ignore suid and sgid bits.
8 : MS_NODEV              4    ; ! Disallow access to device special files.
9 : MS_NOEXEC             8    ; ! Disallow program execution.
10 : MS_SYNCHRONOUS        16   ; ! Writes are synced at once.
11 : MS_REMOUNT            32   ; ! Alter flags of a mounted FS.
12 : MS_MANDLOCK           64   ; ! Allow mandatory locks on an FS.
13 : S_WRITE               128  ; ! Write on file/directory/symlink.
14 : S_APPEND              256  ; ! Append-only file.
15 : S_IMMUTABLE           512  ; ! Immutable file.
16 : MS_NOATIME            1024 ; ! Do not update access times.
17 : MS_NODIRATIME         2048 ; ! Do not update directory access times.
18 : MS_BIND               4096 ; ! Bind directory at different place.
19
20 FUNCTION: int mount
21 ( char* special_file, char* dir, char* fstype, ulong options, void* data ) ;
22
23 ! FUNCTION: int umount2 ( char* file, int flags ) ;
24
25 FUNCTION: int umount ( char* file ) ;