The OpenNET Project / Index page

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

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

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

snp (4)
  • >> snp (4) ( FreeBSD man: Специальные файлы /dev/* )

  • BSD mandoc
     

    NAME

    
    
    snp
    
     - tty snoop interface
    
     
    

    SYNOPSIS

       #include <sys/snoop.h>
    int ioctl (fd SNPSTTY &dev);
    int ioctl (fd SNPGTTY &dev);
    int ioctl (fd FIONREAD &result);
     

    DESCRIPTION

    /dev/snp? are snoop devices which allow users to attach to any tty and watch activities on it. The kernel must be compiled with device snp or the module must be loaded, for these devices to be available.

    To associate a given device with a tty to be observed, open the device and a tty device, and then issue the SNPSTTY ioctl on device. The argument passed to the ioctl(2) is the address of a variable of type Vt int , holding the file descriptor of a tty device. To detach the device from a tty use a pointer to a value of -1.

    The SNPGTTY ioctl returns information about the current tty attached to the open device.

    The FIONREAD ioctl returns a positive value equal to the number of characters in a read buffer. Special values defined are:

    SNP_OFLOW
    device overflow occurred, device detached.
    SNP_TTYCLOSE
    tty not attached.
    SNP_DETACH
    device has been detached by user or tty device has been closed and detached.

     

    SEE ALSO

    pty(4), sio(4), kldload(8), watch(8)  

    HISTORY

    The device first appeared in Fx 2.1 .  

    AUTHORS

    An Ugen J.S. Antsilevich Aq [email protected]  

    BUGS

    Caveat emptor! This manual page is horribly stale and wildly inaccurate in some places.

    While in line mode, user input cannot be seen. No signals may be sent to the observed tty.


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    SEE ALSO
    HISTORY
    AUTHORS
    BUGS


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




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

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