|
Basic Solution File System - BSFS
|
Implements umask command to show/set umask in octal. More...
Functions | |
| int | umask_cmd (FILE *disk, superblock_t *sb, char **args) |
| Show or set the session umask (octal). | |
Implements umask command to show/set umask in octal.
| int umask_cmd | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
Show or set the session umask (octal).
With no argument, prints the current umask. With a single octal argument, sets the session umask for subsequent creates. Values must be 000..777.
| disk | Open filesystem image (unused). |
| sb | Loaded superblock (unused). |
| args | argv-like vector; optional octal value in args[1]. |