Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3proc/Pclearsig.3proc.man.txt
+++ new/usr/src/man/man3proc/Pclearsig.3proc.man.txt
1 1 PCLEARSIG(3PROC) Process Control Library Functions PCLEARSIG(3PROC)
2 2
3 3 NAME
4 4 Pclearsig, Lclearsig - clear process signals
5 5
6 -SYNOPSIS
6 +LIBRARY
7 7 Process Control Library (libproc, -lproc)
8 +
9 +SYNOPSIS
8 10 #include <libproc.h>
9 11
10 12 int
11 13 Pclearsig(struct ps_prochandle *P);
12 14
13 15 int
14 16 Lclearsig(struct ps_lwphandle *L);
15 17
16 18 DESCRIPTION
17 19 During normal operation a process may receive a signal. Signals may
18 20 indicate an error, for example referencing unmapped memory, an alarm
19 21 firing, requests for information, and users requesting an interruption.
20 22 For more information on the generation and usage of signals, see
21 23 signal.h(3HEAD).
22 24
23 25 The Pclearsig() function instructs the system to clear any signal pending
24 26 delivery to a thread in the process represented by the process handle P.
25 27 The pending signal will never be delivered to process represented by P.
26 28
27 29 The Lclearsig() function is identical to the Pclearsig() function, except
28 30 rather than operating on the process and its representive thread, it
29 31 instead operates on the thread handle L.
30 32
31 33 The Pclearsig() function only has meaning for active processes. It will
32 34 fail on process handles corresponding to core files, zombie processes and
33 35 ELF objects.
34 36
35 37 RETURN VALUES
36 38 Upon successful completion, the Pclearsig() function clears pending
37 39 faults and returns 0. Otherwise, -1 is returned, errno is set to
38 40 indicate the error, and no faults are cleared.
39 41
40 42 ERRORS
41 43 For a full list of possible errors see the DIAGNOSTICS section in
42 44 proc(4).
43 45
44 46 INTERFACE STABILITY
45 47 Uncommitted
46 48
47 49 MT-LEVEL
48 50 See LOCKING in libproc(3LIB).
49 51
50 52 SEE ALSO
51 53 signal.h(3HEAD), libproc(3LIB), proc(4)
52 54
53 55 illumos May 11, 2016 illumos
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX