1VHANGUP(2)                 Linux Programmer's Manual                VHANGUP(2)
2
3
4

NAME

6       vhangup - virtually hangup the current tty
7

SYNOPSIS

9       #include <unistd.h>
10
11       int vhangup(void);
12
13   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15       vhangup(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
16

DESCRIPTION

18       vhangup()  simulates  a  hangup  on  the  current  terminal.  This call
19       arranges for other users to have a “clean” tty at login time.
20

RETURN VALUE

22       On success, zero is returned.  On error, -1 is returned, and  errno  is
23       set appropriately.
24

ERRORS

26       EPERM  The   calling   process   has  insufficient  privilege  to  call
27              vhangup(); the CAP_SYS_TTY_CONFIG capability is required.
28

CONFORMING TO

30       This call is  Linux-specific,  and  should  not  be  used  in  programs
31       intended to be portable.
32

SEE ALSO

34       capabilities(7), init(8)
35

COLOPHON

37       This  page  is  part of release 3.25 of the Linux man-pages project.  A
38       description of the project, and information about reporting  bugs,  can
39       be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43Linux                             2007-07-26                        VHANGUP(2)
Impressum