OSDN Git Service

1bd11e19acfea117da9dc7da82ffde18dfe04b2c
[linuxjm/LDP_man-pages.git] / draft / man2 / pause.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
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 .\"
25 .\" Modified by Michael Haardt (michael@moria.de)
26 .\" Modified Sat Jul 24 14:48:00 1993 by Rik Faith (faith@cs.unc.edu)
27 .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au)
28 .\" Modified 2000 by aeb, following Michael Kerrisk
29 .\"
30 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
31 .\"         all rights reserved.
32 .\" Translated Thu Jun 26 21:08:30 JST 1997
33 .\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
34 .\"
35 .TH PAUSE 2 2008-10-06 "Linux" "Linux Programmer's Manual"
36 .\"O .SH NAME
37 .SH 名前
38 .\"O pause \- wait for signal
39 pause \- シグナルを待つ
40 .\"O .SH SYNOPSIS
41 .SH 記述
42 .B #include <unistd.h>
43 .sp
44 .B int pause(void);
45 .\"O .SH DESCRIPTION
46 .SH 説明
47 .\"O .BR pause ()
48 .\"O causes the calling process (or thread) to sleep
49 .\"O until a signal is delivered that either terminates the process or causes
50 .\"O the invocation of a signal-catching function.
51 .BR pause ()
52 は、呼び出したプロセス (またはスレッド) を、
53 そのプロセスを終了させたり、シグナル捕捉関数が起動されるような
54 シグナルが配送されるまで、スリープさせる。
55 .\"O .SH "RETURN VALUE"
56 .SH 返り値
57 .\"O .BR pause ()
58 .\"O only returns when a signal was caught and the
59 .\"O signal-catching function returned.
60 .\"O In this case
61 .\"O .BR pause ()
62 .\"O returns \-1, and
63 .\"O .I errno
64 .\"O is set to
65 .\"O .\" .BR ERESTARTNOHAND .
66 .\"O .BR EINTR .
67 .BR pause ()
68 が返るのは、シグナルを受け取りシグナル捕獲関数から返った場合だけである。
69 この場合は
70 .BR pause ()
71 は \-1 を返し、
72 .I errno
73
74 .\" .B ERESTARTNOHAND
75 .B EINTR
76 が設定される。
77 .\"O .SH ERRORS
78 .SH エラー
79 .TP
80 .B EINTR
81 .\"O a signal was caught and the signal-catching function returned.
82 シグナルを受け取り、シグナル捕獲関数から帰ってきた。
83 .\"O .SH "CONFORMING TO"
84 .SH 準拠
85 SVr4, 4.3BSD, POSIX.1-2001.
86 .\"O .SH "SEE ALSO"
87 .SH 関連項目
88 .BR kill (2),
89 .BR select (2),
90 .BR signal (2),
91 .BR sigsuspend (2)