sgi_revoke(2)

sgi_revoke - revoke access to a file

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     sgi_revoke - revoke access to a file

C SYNOPSIS
     #include <sys/mac_label.h>
     int sgi_revoke(char *fname);

DESCRIPTION
     The sgi_revoke system call invalidates all currently open file
     descriptors referencing the file named by fname.

     sgi_revoke requires that the calling process have appropriate privilege.
     If _POSIX_CAP is in effect, the appropriate capability is CAP_DEVICE_MGT.

ERRORS
     sgi_revoke will fail if one or more of the following are true:

     [EPERM]        The calling process lack appropriate privilege.

     [EINVAL]       The named file is not a character-special file.

SEE ALSO
     sleep(3), alarm(2), pause(2), schedctl(2), setitimer(2).