|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
#include <sys/stat.h> int chmod(const char *path, mode_t mode);
This function changes the mode (writable or write-only) of the specified file. The value of mode can be a combination of one or more of the following:
Make the file readable for the owner.
Make the file writable for the owner.
Make the file readable for the group.
Make the file writeable for the group.
Make the file readable for the world.
Make the file writeable for the world.
S_I* constants are ignored for regular files:
S_I*OTHare ignored, because DOS/Windows has no concept of ownership, so all files are considered to belong to the user;
S_IR*are ignored, because files are always readable on DOS/Windows.
This function can be hooked by File System Extensions (see section File System Extensions).
Zero if the file exists and the mode was changed, else nonzero.
|webmaster||delorie software privacy|
|Copyright © 2004 by DJ Delorie||Updated Apr 2004|