]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/vhangup.2
mknod.2: tfix
[thirdparty/man-pages.git] / man2 / vhangup.2
CommitLineData
fea681da
MK
1.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
a781c7d0 24.\"
c11b1abf 25.\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
fea681da
MK
26.\" Added notes on capability requirements
27.\"
97986708 28.TH VHANGUP 2 2016-03-15 "Linux" "Linux Programmer's Manual"
fea681da 29.SH NAME
1285ff3d 30vhangup \- virtually hangup the current terminal
fea681da
MK
31.SH SYNOPSIS
32.B #include <unistd.h>
68e4db0a 33.PP
fea681da 34.B int vhangup(void);
68e4db0a 35.PP
cc4615cc
MK
36.in -4n
37Feature Test Macro Requirements for glibc (see
38.BR feature_test_macros (7)):
39.in
68e4db0a 40.PP
cc4615cc
MK
41.ad l
42.BR vhangup ():
d0544534
MK
43.nf
44 Since glibc 2.21:
45.\" commit 266865c0e7b79d4196e2cc393693463f03c90bd8
46 _DEFAULT_SOURCE
47 In glibc 2.19 and 2.20:
48 _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
49 Up to and including glibc 2.19:
50 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
51.fi
cc4615cc 52.ad b
fea681da 53.SH DESCRIPTION
e511ffb6 54.BR vhangup ()
c13182ef
MK
55simulates a hangup on the current terminal.
56This call arranges for other
1285ff3d 57users to have a \*(lqclean\*(rq terminal at login time.
47297adb 58.SH RETURN VALUE
c13182ef
MK
59On success, zero is returned.
60On error, \-1 is returned, and
fea681da
MK
61.I errno
62is set appropriately.
63.SH ERRORS
64.TP
65.B EPERM
c13182ef 66The calling process has insufficient privilege to call
e511ffb6 67.BR vhangup ();
fea681da
MK
68the
69.B CAP_SYS_TTY_CONFIG
70capability is required.
47297adb 71.SH CONFORMING TO
8382f16d 72This call is Linux-specific, and should not be used in programs
fea681da 73intended to be portable.
47297adb 74.SH SEE ALSO
fe0960af
MK
75.BR init (1),
76.BR capabilities (7)