Annotated edit history of
siginterrupt(3) version 1 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SIGINTERRUPT |
|
|
2 |
!!!SIGINTERRUPT |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
ERRORS |
|
|
8 |
CONFORMING TO |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
siginterrupt - allow signals to interrupt system calls |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__#include |
|
|
19 |
__ ''sig''__, int__ ''flag''__); |
|
|
20 |
__ |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
The __siginterrupt()__ function changes the restart |
|
|
25 |
behaviour when a system call is interrupted by the signal |
|
|
26 |
''sig''. If the ''flag'' argument is false (0), then |
|
|
27 |
system calls will be restarted if interrupted by the |
|
|
28 |
specified signal ''sig''. This is the default behaviour |
|
|
29 |
in Linux. However, when a new signal handler is specified |
|
|
30 |
with the signal(2) function, the system call is |
|
|
31 |
interrupted by default. |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
If the ''flags'' argument is true (1) and no data has |
|
|
35 |
been transferred, then a system call interrupted by the |
|
|
36 |
signal ''sig'' will return -1 and the global variable |
|
|
37 |
''errno'' will be set to __EINTR__. |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
If the ''flags'' argument is true (1) and data transfer |
|
|
41 |
has started, then the system call will be interrupted and |
|
|
42 |
will return the actual amount of data |
|
|
43 |
transferred. |
|
|
44 |
!!RETURN VALUE |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
The __siginterrupt()__ function returns 0 on success, or |
|
|
48 |
-1 if the signal number ''sig'' is invalid. |
|
|
49 |
!!ERRORS |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__EINVAL__ |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
The specified signal number is invalid. |
|
|
56 |
!!CONFORMING TO |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
BSD 4.3 |
|
|
60 |
!!SEE ALSO |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
signal(2) |
|
|
64 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.