[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
umask

Sets a UNIX style file creation mask.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <fcntl.h> /* Macintosh */
#include <io.h> /* Windows */
mode_t umask(mode_t cmask);
Parameters:
Parameters for this facility are:
Remarks:
The function umask is used for calls to open(), creat() and mkdir() to turn off permission bits in the mode argument.
NOTE
The permission bits are not used on either the Mac nor Windows. The function is provided merely to allow compilation and compatibility.
Return:
The previous mask. Zero is returned for Mac and Windows operating systems.
See Also:
"creat"
"open"
"mkdir"
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000