-
Difference between revisions of "Functions HI-TECH C CHMOD"
From HI-TECH C for CP/M Fan WIKI(EN)
(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...") |
(No difference)
|
Latest revision as of 18:34, 31 July 2017
CHMOD
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 stat.h 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 stat() will still return S_IREAD in flags).
SEE ALSO
stat, creat