OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / vhangup.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\"
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.
8 .\"
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.
13 .\"
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
20 .\" professionally.
21 .\"
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
26 .\"
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>
33 .\"
34 .\"WORD:        virtualy                ²¾ÁÛŪ¤Ë
35 .\"WORD:        hangup                  ¥Ï¥ó¥°¥¢¥Ã¥×
36 .\"WORD:        terminal                Ã¼Ëö
37 .\"
38 .TH VHANGUP 2 2007-07-26 "Linux" "Linux Programmer's Manual"
39 .\"O .SH NAME
40 .SH Ì¾Á°
41 .\"O vhangup \- virtually hangup the current tty
42 vhangup \- ¸½ºß¤Î tty ¤ò²¾ÁÛŪ¤Ë (virtualy) ¥Ï¥ó¥°¥¢¥Ã¥× (hangup) ¤µ¤»¤ë
43 .\"O .SH SYNOPSIS
44 .SH ½ñ¼°
45 .B #include <unistd.h>
46 .sp
47 .B int vhangup(void);
48 .sp
49 .in -4n
50 .\"O Feature Test Macro Requirements for glibc (see
51 .\"O .BR feature_test_macros (7)):
52 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
53 .RB ( feature_test_macros (7)
54 »²¾È):
55 .in
56 .sp
57 .ad l
58 .BR vhangup ():
59 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
60 .ad b
61 .\"O .SH DESCRIPTION
62 .SH ÀâÌÀ
63 .\"O .BR vhangup ()
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.
67 .BR vhangup ()
68 ¤Ï¸½ºß¤ÎüËö (terminal) ¤Ç¥Ï¥ó¥°¥¢¥Ã¥×¤ò¥·¥ß¥å¥ì¡¼¥È¤¹¤ë¡£
69 ¤³¤Î¥³¡¼¥ë¤Ï¾¤Î¥æ¡¼¥¶¡¼¤¬¥í¥°¥¤¥ó¤·¤¿»þ¤ËåºÎï (clean) ¤Ê tty ¤ò
70 ÆÀ¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¼êÇÛ¤¹¤ë¡£
71 .\"O .SH "RETURN VALUE"
72 .SH ÊÖ¤êÃÍ
73 .\"O On success, zero is returned.
74 .\"O On error, \-1 is returned, and
75 .\"O .I errno
76 .\"O is set appropriately.
77 À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
78 .I errno
79 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
80 .\"O .SH ERRORS
81 .SH ¥¨¥é¡¼
82 .TP
83 .B EPERM
84 .\"O The calling process has insufficient privilege to call
85 .\"O .BR vhangup ();
86 ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Ë
87 .BR vhangup ()
88 ¤ò¸Æ¤Ó½Ð¤¹¤¿¤á¤Î½½Ê¬¤ÊÆø¢¤¬¤Ê¤¤¡£
89 .\"O the
90 .\"O .B CAP_SYS_TTY_CONFIG
91 .\"O capability is required.
92 .B CAP_SYS_TTY_CONFIG
93 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£ (capability) ¤¬É¬ÍפǤ¢¤ë¡£
94 .\"O .SH "CONFORMING TO"
95 .SH ½àµò
96 .\"O This call is Linux-specific, and should not be used in programs
97 .\"O intended to be portable.
98 ¤³¤Î¥³¡¼¥ë¤Ï Linux ÆÃÍ­¤Ç¤¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç
99 »ÈÍѤ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£
100 .\"O .SH "SEE ALSO"
101 .SH ´ØÏ¢¹àÌÜ
102 .BR capabilities (7),
103 .BR init (8)