#include <sys/types.h>#include <sys/stat.h>#include <dirent.h>#include <errno.h>#include <limits.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <minix/minlib.h>#include <stdio.h>Include dependency graph for chmod.c:

Go to the source code of this file.
Defines | |
| #define | S_ISLNK(mode) 0 |
| #define | lstat stat |
| #define | USR_MODES (S_ISUID|S_IRWXU) |
| #define | GRP_MODES (S_ISGID|S_IRWXG) |
| #define | EXE_MODES (S_IXUSR|S_IXGRP|S_IXOTH) |
| #define | ALL_MODES (USR_MODES|GRP_MODES|S_IRWXO) |
Functions | |
| _PROTOTYPE (int main,(int argc, char **argv)) | |
| _PROTOTYPE (mode_t parsemode,(char *symbolic, mode_t oldmode)) | |
| _PROTOTYPE (int do_change,(char *name)) | |
| _PROTOTYPE (void usage,(void)) | |
| mode_t | parsemode (char *symbolic, mode_t oldmode) |
| int | main (int argc, argv) |
| int | do_change (char *name) |
| void | usage () |
Variables | |
| char * | symbolic |
| mode_t | new_mode |
| mode_t | u_mask |
| int | rflag |
| int | errors |
| stat | st |
| char | path [PATH_MAX+1] |
|
|
Definition at line 31 of file chmod.c. Referenced by clone_opcl(), common_open(), do_chmod(), do_mknod(), dump_file(), main(), parsemode(), restore(), and show_info(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 25 of file chmod.c. Referenced by parsemode(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 204 of file chmod.c. References chmod, closedir, dirent::d_name, errors, lstat, m, new_mode, opendir, parsemode(), path, perror(), readdir, rflag, S_ISDIR, S_ISLNK, st, stat::st_mode, strcpy(), and strlen(). Referenced by main(). |
|
||||||||||||
|
Definition at line 163 of file chmod.c. References ALL_MODES, do_change(), ex_code, new_mode, rflag, strcmp, u_mask, umask, and usage. |
|
||||||||||||
|
Definition at line 48 of file chmod.c. References ALL_MODES, USR_MODES, and who. Referenced by do_change(), and makedir(). |
|
|
|
|
|
Definition at line 38 of file chmod.c. Referenced by _catch(), atapi_transfer(), catch(), do_change(), f_transfer(), main(), output(), sendzsinit(), w_transfer(), zperr(), and zsendcmd(). |
|
|
Definition at line 37 of file chmod.c. Referenced by do_change(), and main(). |
|
|
|
|
|
|
|
|
|
Definition at line 36 of file chmod.c. Referenced by backtrace(), c_status(), command(), and display(). |
|
|
Definition at line 37 of file chmod.c. Referenced by do_chown(), main(), and makepath(). |
1.4.6