home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UMASK(3) MINTLIB LIBRARY FUNCTIONS UMASK(3)
-
-
- N✓NA✓AM✓ME✓E
- umask - set file creation mode mask
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
- #include <sys/stat.h>
-
- int umask(int mask);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- umask sets the process's file creation mask to mask and
- returns the previous value of the mask. The low-order 9
- bits of mask are used whenever a file is created, clearing
- corresponding bits in the file access permissions (see
- stat). This clearing restricts the default access to a
- file.
-
- The mask is inherited by child processes.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- umask returns the previous value of the file creation
- mask.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- c✓ch✓hm✓mo✓od✓d(✓(3✓3)✓),✓, o✓op✓pe✓en✓n(✓(3✓3)✓),✓, P✓Pu✓um✓ma✓as✓sk✓k(✓(2✓2)✓)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-