RTEMS Logo

RTEMS 4.6.2 On-Line Library


Configuration Space Manager cfg_umask - Sets a file creation mask.

PREV UP NEXT Bookshelf New Chapters

3.4.14: cfg_umask - Sets a file creation mask.

CALLING SEQUENCE:

#include <sys/types.h>
#include <sys/stat.h>

mode_t cfg_umask(
  mode_t cmask
);

STATUS CODES:

DESCRIPTION:

The cfg_umask() function sets the process node creation mask to cmask. The file creation mask is used during open(), creat(), mkdir(), mkfifo() calls to turn off permission bits in the mode argument. Bit positions that are set in cmask are cleared in the mode of the created file.

The file creation mask is inherited across fork() and exec() calls. This makes it possible to alter the default permission bits of created files.

NOTES: None

The cmask argument should have only permission bits set. All other bits should be zero.


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2004 OAR Corporation