OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / siginterrupt.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sun Jul 25 10:40:51 1993 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified Sun Apr 14 16:20:34 1996 by Andries Brouwer (aeb@cwi.nl)
31 .\"*******************************************************************
32 .\"
33 .\" This file was generated with po4a. Translate the source file.
34 .\"
35 .\"*******************************************************************
36 .TH SIGINTERRUPT 3 2011\-09\-09 "" "Linux Programmer's Manual"
37 .SH 名前
38 siginterrupt \- シグナルでシステム・コールに割り込むことを許す
39 .SH 書式
40 .nf
41 \fB#include <signal.h>\fP
42 .sp
43 \fBint siginterrupt(int \fP\fIsig\fP\fB, int \fP\fIflag\fP\fB);\fP
44 .fi
45 .sp
46 .in -4n
47 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
48 .in
49 .sp
50 \fBsiginterrupt\fP():
51 .ad l
52 .RS 4
53 _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
54 .br
55 || /* glibc 2.12 以降: */ _POSIX_C_SOURCE\ >=\ 200809L
56 .RE
57 .ad
58 .SH 説明
59 \fBsiginterrupt\fP()  関数は、システム・コールがシグナル \fIsig\fP によって割り込まれた後、再実行の際の振る舞いを変更する。
60 \fIflag\fP 引き数が偽 (0) ならば、システム・コールが指定した シグナル \fIsig\fP によって割り込まれた後に、そのシステム・コールは
61 再実行される。これは Linux においてデフォルトの動作である。
62 .PP
63 \fIflag\fP 引き数が真 (1) でデータの転送が全く行なわれていないならば、 シグナル \fIsig\fP でシステム・コールは中断されて、\-1
64 が返され、 \fIerrno\fP に \fBEINTR\fP が設定される。
65 .PP
66 \fIflag\fP 引き数が真 (1) でデータの転送が開始されていれば、 システム・コールは中断され、それまでに実際に転送されたデータ の量が返される。
67 .SH 返り値
68 \fBsiginterrupt\fP()  関数は成功した場合 0 を返す。 シグナル番号 \fIsig\fP が不正な場合は \-1 を返す。
69 .SH エラー
70 .TP 
71 \fBEINVAL\fP
72 指定したシグナル番号が不正である。
73 .SH 準拠
74 4.3BSD, POSIX.1\-2001.  POSIX.1\-2008 は、 \fBsiginterrupt\fP()  を廃止予定としている。 代わりに、
75 \fBsigaction\fP(2)  に \fBSA_RESTART\fP フラグを指定して使うことを推奨している。
76 .SH 関連項目
77 \fBsignal\fP(2)
78 .SH この文書について
79 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
80 である。プロジェクトの説明とバグ報告に関する情報は
81 http://www.kernel.org/doc/man\-pages/ に書かれている。