-

Changes

Jump to: navigation, search

Functions HI-TECH C CHMOD

716 bytes added, 18:34, 31 July 2017
Created page with "<strong>CHMOD</strong> ==SYNOPSIS== #include <stat.h> int chmod(char * name, int ) char * name; int mode; ==DESCRIPTION== This function changes the file attribute..."
<strong>CHMOD</strong>
==SYNOPSIS==

#include <stat.h>

int chmod(char * name, int )
char * name;
int mode;


==DESCRIPTION==
This function changes the file attributes (or modes) of
the named file. The argument name may be any valid
file name. The mode argument may include all bits
defined in <strong>stat.h</strong> except those relating to the type of
the file, e.g. S_IFDIR. Note however that not all bits
may be changed under all operating systems, e.g. neither DOS nor CP/M permit a file to be made unreadable,
thus even if mode does not include S_IREAD the file
will still be readable (and <strong>stat</strong>() will still return
S_IREAD in flags).

==SEE ALSO==

stat, creat

Navigation menu