chmod (SunOS) chmod (SunOS)
NAME
chmod, fchmod - Changes file access permissions
SUN OS SYNOPSIS
#include <sys/stat.h>
int chmod (
char *path,
mode_t mode );
int fchmod (
int filedes,
int mode );
DIGITAL UNIX SYNOPSIS
#include <sys/mode.h>
#include <sys/types.h>
#include <sys/stat.h>
int chmod (
const char *path,
mode_t mode );
int fchmod (
int filedes,
mode_t mode );
PARAMETERS
Specifies the full pathname of the file. If the path parameter refers
to a symbolic link, the chmod() function changes access permissions on
the file specified by the symbolic link. Specifies the file descriptor
of an open file. Specifies the bit pattern which determines the access
permissions.
DIFFERENCES
Requires the sys/mode.h, sys/types.h, and sys/stat.h header files.
Octal constants have been changed to symbolic values for mode. Decla‐
ration of mode has been changed to mode_t. The chmod and fchmod calls
set errno to ESTALE if the process' root or current directory is
located on a virtual file system that has been unmounted. Adds support
for symbolic links - it can set errno to ELOOP.
RELATED INFORMATION
Digital UNIX Functions:
chmod(2) delim off
chmod (SunOS)