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

  1.  
  2.  
  3.  
  4. CHMOD(3)            MINTLIB LIBRARY FUNCTIONS            CHMOD(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        chmod - change mode of file
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        int chmod(const char *path, int mode);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        path  points  to a path name naming a file. chmod sets the
  17.        access permission portion of the named file's mode accord-
  18.        ing to the bit pattern contained in the mode parameter.
  19.  
  20.        The  possible  access  permission  bits are defined in the
  21.        include file <sys/stat.h>, see the stat call.
  22.  
  23.        The effective user ID of the process must match the  owner
  24.        of the file or be super-user to change the mode of a file.
  25.  
  26. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  27.         0 on success -1 on failure; errno is set to indicate  the
  28.        error.
  29.  
  30. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  31.        c✓ch✓ho✓ow✓wn✓n(✓(3✓3)✓),✓,  c✓cr✓re✓ea✓at✓t(✓(3✓3)✓),✓, f✓fc✓cn✓nt✓tl✓l(✓(3✓3)✓),✓, o✓op✓pe✓en✓n(✓(3✓3)✓),✓, s✓st✓ta✓at✓t(✓(3✓3)✓),✓, u✓um✓ma✓as✓sk✓k(✓(3✓3)✓),✓,
  32.        F✓Fc✓ch✓hm✓mo✓od✓d(✓(2✓2)✓),✓, F✓Fa✓at✓tt✓tr✓ri✓ib✓b(✓(2✓2)✓)
  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.