VMS Help
CRTL, fchmod
*Conan The Librarian
|
Changes file access permissions.
Format
#include <stat.h>
int fchmod (int fildes, mode_t mode);
fildes
An open file descriptor.
mode
The bit pattern that determines the access permissions.
The fchmod function is equivalent to the chmod function, except
that the file whose permissions are changed is specified by a
file descriptor (fildes) rather than a filename.
0 Indicates that the mode is successfully
changed.
-1 Indicates that the change attempt has failed.