RTEMS Logo

RTEMS 4.9.4 On-Line Library


File and Directory Commands umask - set file mode creation mask

PREV UP NEXT Bookshelf RTEMS Shell User's Guide

3.2.1: umask - set file mode creation mask

SYNOPSYS:

umask [new_umask]

DESCRIPTION:

This command sets the user file creation mask to new_umask. The argument new_umask may be octal, hexadecimal, or decimal.

EXIT STATUS:

This command returns 0 on success and non-zero if an error is encountered.

NOTES:

This command does not currently support symbolic mode masks.

EXAMPLES:

The following is an example of how to use umask:

SHLL [/] $ umask
022
SHLL [/] $ umask 0666
0666
SHLL [/] $ umask
0666

CONFIGURATION:

This command is included in the default shell command set. When building a custom command set, define CONFIGURE_SHELL_COMMAND_UMASK to have this command included.

This command can be excluded from the shell command set by defining CONFIGURE_SHELL_NO_COMMAND_UMASK when all shell commands have been configured.

PROGRAMMING INFORMATION:

The umask is implemented by a C language function which has the following prototype:

int rtems_shell_rtems_main_umask(
  int    argc,
  char **argv
);

The configuration structure for the umask has the following prototype:

extern rtems_shell_cmd_t rtems_shell_UMASK_Command;


PREV UP NEXT Bookshelf RTEMS Shell User's Guide

Copyright © 1988-2008 OAR Corporation