|
NAMEgetmode , setmode —
modify mode bits
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
mode_t
void *
DESCRIPTIONThegetmode () function returns a copy of the file
permission bits mode as altered by the values pointed to
by set. While only the mode bits are altered, other
parts of the file mode may be examined.
The If the mode passed to The value returned from ERRORSThesetmode () function may fail and set errno for any of
the errors specified for the library routine
malloc(3)
or
strtol(3).
In addition, setmode () will fail and set
errno to:
SEE ALSOchmod(1), stat(2), umask(2), malloc(3)HISTORYThegetmode () and setmode ()
functions first appeared in 4.4BSD.
BUGSThesetmode () function is not thread safe. Files created
in other threads while setmode () is being called may
be created with a umask of 0.
Visit the GSP FreeBSD Man Page Interface. |