OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man2 / vhangup.2
1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
26 .\"     Added notes on capability requirements
27 .\"
28 .\"*******************************************************************
29 .\"
30 .\" This file was generated with po4a. Translate the source file.
31 .\"
32 .\"*******************************************************************
33 .\"
34 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
35 .\"         all rights reserved.
36 .\" Translated Tue Mar  4 00:12:32 JST 1997
37 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
38 .\" Updated & Modified Tue Feb 15 03:38:03 JST 2005
39 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
40 .\"
41 .TH VHANGUP 2 2007\-07\-26 Linux "Linux Programmer's Manual"
42 .SH 名前
43 vhangup \- 現在の端末を仮想的に (virtualy) ハングアップ (hangup) させる
44 .SH 書式
45 \fB#include <unistd.h>\fP
46 .sp
47 \fBint vhangup(void);\fP
48 .sp
49 .in -4n
50 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
51 .in
52 .sp
53 .ad l
54 \fBvhangup\fP(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
55 .ad b
56 .SH 説明
57 \fBvhangup\fP()  は現在の端末 (terminal) でハングアップをシミュレートする。このコールは他のユーザーがログインした時に綺麗
58 (clean) な端末を得ることができるよう手配する。
59 .SH 返り値
60 成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
61 .SH エラー
62 .TP 
63 \fBEPERM\fP
64 呼び出し元プロセスに \fBvhangup\fP()  を呼び出すための十分な特権がない。 \fBCAP_SYS_TTY_CONFIG\fP ケーパビリティ
65 (capability) が必要である。
66 .SH 準拠
67 このコールは Linux 特有であり、移植を意図したプログラムで 使用してはいけない。
68 .SH 関連項目
69 \fBcapabilities\fP(7), \fBinit\fP(1)
70 .SH この文書について
71 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
72 である。プロジェクトの説明とバグ報告に関する情報は
73 http://www.kernel.org/doc/man\-pages/ に書かれている。