1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
25 .\" Added notes on capability requirements
27 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
28 .\" all rights reserved.
29 .\" Translated Tue Mar 4 00:12:32 JST 1997
30 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
31 .\" Updated & Modified Tue Feb 15 03:38:03 JST 2005
32 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\"WORD: virtualy ²¾ÁÛŪ¤Ë
35 .\"WORD: hangup ¥Ï¥ó¥°¥¢¥Ã¥×
36 .\"WORD: terminal üËö
38 .TH VHANGUP 2 2007-07-26 "Linux" "Linux Programmer's Manual"
41 .\"O vhangup \- virtually hangup the current tty
42 vhangup \- ¸½ºß¤Î tty ¤ò²¾ÁÛŪ¤Ë (virtualy) ¥Ï¥ó¥°¥¢¥Ã¥× (hangup) ¤µ¤»¤ë
45 .B #include <unistd.h>
50 .\"O Feature Test Macro Requirements for glibc (see
51 .\"O .BR feature_test_macros (7)):
52 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
53 .RB ( feature_test_macros (7)
59 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
64 .\"O simulates a hangup on the current terminal.
65 .\"O This call arranges for other
66 .\"O users to have a \*(lqclean\*(rq tty at login time.
68 ¤Ï¸½ºß¤ÎüËö (terminal) ¤Ç¥Ï¥ó¥°¥¢¥Ã¥×¤ò¥·¥ß¥å¥ì¡¼¥È¤¹¤ë¡£
69 ¤³¤Î¥³¡¼¥ë¤Ï¾¤Î¥æ¡¼¥¶¡¼¤¬¥í¥°¥¤¥ó¤·¤¿»þ¤ËåºÎï (clean) ¤Ê tty ¤ò
70 ÆÀ¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦¼êÇÛ¤¹¤ë¡£
71 .\"O .SH "RETURN VALUE"
73 .\"O On success, zero is returned.
74 .\"O On error, \-1 is returned, and
76 .\"O is set appropriately.
77 À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
84 .\"O The calling process has insufficient privilege to call
88 ¤ò¸Æ¤Ó½Ð¤¹¤¿¤á¤Î½½Ê¬¤ÊÆø¢¤¬¤Ê¤¤¡£
90 .\"O .B CAP_SYS_TTY_CONFIG
91 .\"O capability is required.
93 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£ (capability) ¤¬É¬ÍפǤ¢¤ë¡£
94 .\"O .SH "CONFORMING TO"
96 .\"O This call is Linux-specific, and should not be used in programs
97 .\"O intended to be portable.
98 ¤³¤Î¥³¡¼¥ë¤Ï Linux ÆÃͤǤ¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç
102 .BR capabilities (7),