*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: revoke | Section: 2 | Source: Digital UNIX | File: revoke.2.gz
revoke(2) System Calls Manual revoke(2) NAME revoke - Voids all references to a file SYNOPSIS revoke( char *path); PARAMETERS Points to a null-terminated string containing the appropriate pathname. DESCRIPTION The revoke() system call invalidates all file descriptors associated with the pathname specified in path, which must be a block or character special file. Any open file system object on the device on which the revoked file system object resides subsequently holds an invalid file descriptor, and will receive errors if it attempts to access the file with any read, write, ioctl, or select system call. The only call that will succeed under these conditions is close(). A subsequent call to open() will result in a valid file descriptor and thereby reenable ac- cess to the file. The effective user ID of the process must be the same as the owner of the file, or must have superuser privilege in order to use the call in this manner. RETURN VALUES Upon successful completion, a value of 0 (zero) is returned. If the re- voke() function fails, it returns a value of -1, and errno is set to indicate the error. ERRORS If the revoke() function fails, errno may be set to one of the follow- ing values: The file represented by the pathname is of the incorrect type. The size of the pathname exceeds PATH_MAX or a pathname compo- nent is longer than NAME_MAX. A component of the specified pathname does not exist, or the path parameter points to an empty string. A component of the path prefix is not a directory. delim off revoke(2)

Navigation Options