home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CHMOD(3) MINTLIB LIBRARY FUNCTIONS CHMOD(3)
-
-
- N✓NA✓AM✓ME✓E
- chmod - change mode of file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- int chmod(const char *path, int mode);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- path points to a path name naming a file. chmod sets the
- access permission portion of the named file's mode accord-
- ing to the bit pattern contained in the mode parameter.
-
- The possible access permission bits are defined in the
- include file <sys/stat.h>, see the stat call.
-
- The effective user ID of the process must match the owner
- of the file or be super-user to change the mode of a file.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- 0 on success -1 on failure; errno is set to indicate the
- error.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- 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)✓),✓,
- F✓Fc✓ch✓hm✓mo✓od✓d(✓(2✓2)✓),✓, F✓Fa✓at✓tt✓tr✓ri✓ib✓b(✓(2✓2)✓)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-