Page 747 #include <asm/cachectl.h> int cacheflush(char *addr,intnbytes,intcache); DESCRIPTION cacheflush flushes contents of indicated cache(s) for user addresses in the range addr to (addr+nbytes-1). The cache may be one of the following:
RETURN VALUE cacheflush returns 0 on success or -1 on error. If errors are detected, errno will indicate the error. ERRORS
BUGS The current implementation ignores the addr and nbytes parameters. Therefore, the whole cache is always flushed. NOTE This system call is only available on MIPS-based systems. SEE ALSO cachectl(2) Linux, 27 June 95 chdir, fchdirchdir, fchdirChanges the working directory SYNOPSIS #include <unistd.h> int chdir(const char *path); int fchdir(int fd); DESCRIPTION chdir changes the current directory to that specified in path. fchdir is identical to chdir, only the directory is given as an open file descriptor. RETURN VALUE On success, 0 is returned. On error, _1 is returned, and errno is set appropriately. ERRORS Depending on the file system, other errors can be returned. The more general errors are listed here:
Page 748
SEE ALSO getcwd(3), chroot(2) Linux 1.2.4, 15 April 1995 chmod, fchmodchmod, fchmodChanges permissions of a file SYNOPSIS #include <sys/types.h> #include <sys/stat.h> int chmod(const char *path,modetmode); int fchmod(int fildes,modetmode); DESCRIPTION The mode of the file given by path or referenced by filedes is changed. Modes are specified by oring the following:
RETURN VALUE On success, 0 is returned. On error, _1 is returned and errno is set appropriately. Page 749 ERRORS Depending on the file system, other errors can be returned. The more general errors for chmod are listed here:
The general errors for fchmod are listed here:
SEE ALSO open(2), chown(2), stat(2) Linux 0.99.11, 21 July 1993 chown, fchownchown, fchownChanges ownership of a file SYNOPSIS #include <sys/types.h> #include <unistd.h> int chown(const char *path, uid t owner, gid_t group); int fchown(int fd, uid t owner, gid_t group); DESCRIPTION The owner of the file specified by path or by fd is changed. Only the superuser may change the owner of a file. The owner of a file may change the group of the file to any group of which that owner is a member. The superuser may change the group arbitrarily. If the owner or group is specified as _1, that ID is not changed. RETURN VALUE On success, 0 is returned. On error, _1 is returned and errno is set appropriately. ERRORS Depending on the file system, other errors can be returned. The more general errors for chown are listed here:
Page 750
The general errors for fchown are listed here:
NOTES chown does not follow symbolic links. The prototype for fchown is only available if USE BSD is defined. SEE ALSO chmod(2), flock(2) Linux 0.99.11, 21 July 1993 chrootchrootChanges root directory SYNOPSIS #include <unistd.h> int chroot(const char *path); DESCRIPTION chroot changes the root directory to that specified in path. This directory will be used for pathnames beginning with /. The root directory is inherited by all children of the current process. Only the superuser may change the root directory. Note that this call does not change the current working directory, so that . can be outside the tree rooted at /. RETURN VALUE On success, 0 is returned. On error, _1 is returned and errno is set appropriately. ERRORS Depending on the file system, other errors can be returned. The more general errors are listed here:
|