The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

revoke (2)
  • >> revoke (2) ( FreeBSD man: Системные вызовы )
  • revoke (7) ( Linux man: Макропакеты и соглашения )

  • BSD mandoc
     

    NAME

    
    
    revoke
    
     - revoke file access
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <unistd.h>
    int revoke (const char *path);
     

    DESCRIPTION

    The revoke ();
    system call invalidates all current open file descriptors in the system for the file named by Fa path . Subsequent operations on any such descriptors fail, with the exceptions that a read ();
    from a character device file which has been revoked returns a count of zero (end of file), and a close ();
    system call will succeed. If the file is a special file for a device which is open, the device close function is called as if all open references to the file had been closed.

    Access to a file may be revoked only by its owner or the super user. The revoke ();
    system call is currently supported only for block and character special device files. It is normally used to prepare a terminal device for a new login session, preventing any access by a previous user of the terminal.  

    RETURN VALUES

    Rv -std revoke  

    ERRORS

    Access to the named file is revoked unless one of the following:

    Bq Er ENOTDIR
    A component of the path prefix is not a directory.
    Bq Er ENAMETOOLONG
    A component of a pathname exceeded 255 characters, or an entire path name exceeded 1024 characters.
    Bq Er ENOENT
    The named file or a component of the path name does not exist.
    Bq Er EACCES
    Search permission is denied for a component of the path prefix.
    Bq Er ELOOP
    Too many symbolic links were encountered in translating the pathname.
    Bq Er EFAULT
    The Fa path argument points outside the process's allocated address space.
    Bq Er EINVAL
    The implementation does not support the revoke ();
    operation on the named file.
    Bq Er EPERM
    The caller is neither the owner of the file nor the super user.

     

    SEE ALSO

    close(2)  

    HISTORY

    The revoke ();
    system call first appeared in BSD 4.3 Reno


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    HISTORY


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру