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

NAME

6       vhangup - virtually hangup the current terminal
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():
16           Since glibc 2.21:
17               _DEFAULT_SOURCE
18           In glibc 2.19 and 2.20:
19               _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
20           Up to and including glibc 2.19:
21               _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
22

DESCRIPTION

24       vhangup()  simulates  a  hangup  on  the  current  terminal.  This call
25       arranges for other users to have a “clean” terminal at login time.
26

RETURN VALUE

28       On success, zero is returned.  On error, -1 is returned, and  errno  is
29       set appropriately.
30

ERRORS

32       EPERM  The   calling   process   has  insufficient  privilege  to  call
33              vhangup(); the CAP_SYS_TTY_CONFIG capability is required.
34

CONFORMING TO

36       This call is  Linux-specific,  and  should  not  be  used  in  programs
37       intended to be portable.
38

SEE ALSO

40       init(1), capabilities(7)
41

COLOPHON

43       This  page  is  part of release 5.07 of the Linux man-pages project.  A
44       description of the project, information about reporting bugs,  and  the
45       latest     version     of     this    page,    can    be    found    at
46       https://www.kernel.org/doc/man-pages/.
47
48
49
50Linux                             2016-03-15                        VHANGUP(2)
Impressum