home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / umask.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  996 b   |  67 lines

  1.  
  2.  
  3.  
  4. UMASK(3)            MINTLIB LIBRARY FUNCTIONS            UMASK(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        umask - set file creation mode mask
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.        #include <sys/stat.h>
  13.  
  14.        int umask(int mask);
  15.  
  16. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  17.        umask  sets  the  process's file creation mask to mask and
  18.        returns the previous value of the mask.  The  low-order  9
  19.        bits of mask are used whenever a file is created, clearing
  20.        corresponding bits in the  file  access  permissions  (see
  21.        stat).  This  clearing  restricts  the default access to a
  22.        file.
  23.  
  24.        The mask is inherited by child processes.
  25.  
  26. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  27.        umask returns the previous  value  of  the  file  creation
  28.        mask.
  29.  
  30. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  31.        c✓ch✓hm✓mo✓od✓d(✓(3✓3)✓),✓, o✓op✓pe✓en✓n(✓(3✓3)✓),✓, P✓Pu✓um✓ma✓as✓sk✓k(✓(2✓2)✓)
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.