Basic Solution File System - BSFS
Loading...
Searching...
No Matches
umask.c File Reference

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).

Detailed Description

Implements umask command to show/set umask in octal.

Function Documentation

◆ umask_cmd()

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.

Parameters
diskOpen filesystem image (unused).
sbLoaded superblock (unused).
argsargv-like vector; optional octal value in args[1].
Returns
1 to continue the browser loop.