1td_thr_setsigpending(3CT_hDrBe)ads Debugging Library Functtdi_otnhsr_setsigpending(3C_DB)
2
3
4
6 td_thr_setsigpending, td_thr_sigsetmask - manage thread signals for
7 libc_db
8
10 cc [ flag... ] file... -lc_db [ library... ]
11 #include <proc_service.h>
12 #include <thread_db.h>
13
14 td_err_e td_thr_setsigpending(const td_thrhandle_t * th_p, const uchar_ t ti_sigpending_flag,
15 const sigset_t ti_sigmask;);
16
17
18 td_err_e td_thr_sigsetmask(const td_thrhandle_t *th_p, const sigset_t ti_sigmask);
19
20
22 The td_thr_setsigpending() and td_thr_setsigmask() functions affect the
23 signal state of the thread identified by th_p.
24
25
26 The td_thr_setsigpending() function sets the set of pending signals for
27 thread th_p to ti_sigpending. The value of the libc-internal field that
28 indicates whether a thread has any signal pending is set to ti_sigpend‐
29 ing_flag. To be consistent, ti_sigpending_flag should be 0 if and only
30 if all of the bits in ti_sigpending are 0.
31
32
33 The td_thr_sigsetmask() function sets the signal mask of the thread
34 th_p as if the thread had set its own signal mask with thr_sigset‐
35 mask(3C). The new signal mask is the value of ti_sigmask.
36
37
38 There is no equivalent to the SIG_BLOCK or SIG_UNBLOCK operations of
39 thr_sigsetmask(3C), which mask or unmask specific signals without
40 affecting the mask state of other signals. To block or unblock specific
41 signals,
42
43 1. stop either the entire process or the thread with
44 td_thr_dbsuspend(),
45
46 2. determine the thread's existing signal mask by calling
47 td_thr_get_info(3C_DB),
48
49 3. modify the ti_sigmask member of the td_thrinfo_t structure
50 as desired, and
51
52 4. set the new signal mask withtd_thr_sigsetmask().
53
55 TD_OK The call completed successfully.
56
57
58 TD_BADTH An invalid thread handle was passed in.
59
60
61 TD_DBERR A call to one of the imported interface routines failed.
62
63
64 TD_ERR A libc_db internal error occurred.
65
66
68 See attributes(5) for description of the following attributes:
69
70
71
72
73 ┌─────────────────────────────┬─────────────────────────────┐
74 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
75 ├─────────────────────────────┼─────────────────────────────┤
76 │MT-Level │Safe │
77 └─────────────────────────────┴─────────────────────────────┘
78
80 libc_db(3LIB), td_thr_dbsuspend(3C_DB), td_thr_get_info(3C_DB),
81 attributes(5)
82
83
84
85SunOS 5.11 20 Oct 1998 td_thr_setsigpending(3C_DB)