体能是什么|
上火了吃什么药好|
暖寿是什么意思|
dob是什么意思|
马齿苋对什么病最有效|
四月份是什么星座|
贫血会引起什么症状|
吃维生素b族有什么好处|
一什么牌子|
芒果有什么营养|
明天什么节|
辰五行属性是什么|
龟龄集适合什么人吃|
教师节给老师送什么礼物|
九九年属什么|
张菲和费玉清什么关系|
表彰是什么意思|
床上什么虫子夜间咬人|
猥亵是什么意思|
公安局属于什么机关|
生产批号是什么意思|
肝阴虚吃什么中成药|
炉甘石洗剂有什么作用|
肾虚对男生意味着什么|
熬夜流鼻血是什么原因|
福州立冬吃什么|
b超什么时候做|
荷叶有什么功效|
来事吃什么水果好|
凯旋归来是什么意思|
什么是面首|
墨龟为什么只能养一只|
功课是什么意思|
防水逆什么意思|
儿童补钙吃什么|
清热燥湿是什么意思|
交会是什么意思|
乳突炎是什么病|
acca是什么专业|
嘴唇暗红色是什么原因|
咖啡对心脏有什么影响|
溶媒是什么|
风花雪月是什么意思|
安吉白茶属于什么茶类|
脾门区结节是什么意思|
阴茎硬不起吃什么药|
胸一大一小什么原因|
23数字代表什么意思|
经验是什么意思|
什么的大圆盘|
羊肉炖什么|
肾积水吃什么药最好|
什么是正颌手术|
什么是蝴蝶效应|
木林森是什么品牌|
重逢是什么意思|
缺钾吃什么好|
金光是什么生肖|
放下执念是什么意思|
白龙马叫什么名字|
办身份证穿什么颜色衣服|
什么是气胸有什么症状|
kipling是什么牌子|
抽筋缺什么维生素|
男人割了皮包什么样子|
左眼皮肿是什么原因引起的|
头皮痒用什么洗发水效果好|
骨质增生吃什么药|
三天不打上房揭瓦的下一句是什么|
喉咙卡鱼刺挂什么科|
金樱子配什么才壮阳|
痔疮的初期症状是什么|
莆田荔枝什么时候成熟|
抛光是什么意思|
为什么夏天容易拉肚子|
框框是什么意思|
r一谷氨酰转移酶高说明什么|
尼泊尔人是什么人种|
sy什么意思|
六月十五是什么星座|
阴阳八卦是什么生肖|
血尿是什么原因引起的|
沙蟹吃什么|
肩胛骨痛是什么原因|
椎间盘膨出是什么意思|
pp材质是什么材质|
6月11号是什么星座|
旅长是什么军衔|
长期喝奶粉有什么好处|
五指毛桃根有什么功效|
刘亦菲为什么不结婚|
智能电视什么品牌好|
放化疗后吃什么恢复快|
右眼皮跳是什么原因|
宁的五行属性是什么|
螨虫用什么药膏|
中央委员什么级别|
bcr是什么意思|
point是什么意思|
带银饰有什么好处|
眼睛感染用什么眼药水|
butter是什么意思|
七月11日是什么星座|
山东济南有什么好玩的地方|
望尘莫及什么意思|
为什么会得痛风|
三七粉什么人不适合吃|
结婚纪念日送什么花|
紫癜是什么病 严重吗|
高血压是什么病|
什么样的充电宝能带上飞机|
什么的小船|
山竹为什么叫山竹|
天葬是什么|
女人烂桃花多说明什么|
检查梅毒挂什么科|
为什么叫香港脚|
腰酸胀是什么原因男性|
风疹是什么症状|
工商联是什么单位|
猕猴桃不能和什么一起吃|
托付是什么意思|
精华液是什么|
脑梗的前兆是什么|
什么排球好|
什么是翘舌音|
年轻人为什么会低血压|
福建岩茶属于什么茶|
护理专业出来能干什么|
参加白事回来注意什么|
三十八岁属什么生肖|
乳腺增生吃什么食物好|
土克水是什么意思|
眼睛不舒服是什么原因引起的|
胃溃疡吃什么食物好|
挂面是什么面|
十二月八号是什么星座|
evisu是什么牌子|
什么把什么造句子|
饭后散步有什么好处|
熬中药用什么锅|
炸毛是什么意思|
心脾两虚吃什么药|
吃什么降胆固醇|
什么叫石女|
人流需要准备什么东西|
腹泻呕吐是什么原因|
粉尘作业时必须佩戴什么口罩|
吃西洋参有什么好处|
吐完后胃不舒服应该吃什么呢|
鸡是什么动物|
丙类药一般是什么药|
梦见很多小孩是什么意思|
和田玉对身体有什么好处|
水煎服是什么意思|
落地生根是什么生肖|
地贫是什么意思|
grader是什么意思|
死后是什么感觉|
害羞的反义词是什么|
石男是什么意思|
花生不能和什么食物一起吃|
景泰蓝是什么|
香灰不落预示着什么|
什么是2B铅笔|
坐月子什么意思|
尿肌酐高说明什么|
梦见蛇咬我是什么意思|
上眼皮突然肿了是什么原因|
岁月如歌下一句是什么|
精神内科一般检查什么|
为什么印度人叫阿三|
谝是什么意思|
执业药师什么时候报名|
渡船是什么意思|
锁精环是什么|
东北有什么好玩的景点|
导管子是什么意思|
脑供血不足吃什么药效果最好|
态生两靥之愁中靥指什么|
萱五行属什么|
三七粉适合什么人群喝|
牙槽骨吸收是什么意思|
妇科检查白细胞酯酶阳性是什么意思|
梦到车坏了是什么意思|
血常规crp是什么意思|
验孕棒什么时候测|
1971年是什么命|
结婚登记需要什么材料|
解绑是什么意思|
珠胎暗结是什么意思|
什么解酒|
器皿是什么意思|
倾国倾城是什么生肖|
月经来了腰疼是什么原因|
女方什么人不能送亲|
珊瑚红是什么颜色|
老虎属于什么科|
螳螂吃什么食物|
1月22号什么星座|
天哭星是什么意思|
盲目是什么意思|
副乳有什么危害吗|
男命正官代表什么|
qq2g在线是什么意思|
无机磷偏低有什么影响|
肋骨外翻是什么原因|
风疹吃什么药|
青葱岁月是什么意思|
黑猫警长是什么猫|
什么生肖名扬四海|
头孢什么样子图片|
豆种翡翠属于什么档次|
牙齿发黑是什么原因|
检查胆囊挂什么科|
父亲节送什么礼物比较好|
野鸡吃什么食物|
炖鸡块放什么调料|
吃完避孕药不能吃什么东西|
大料是什么调料|
三点水加个及念什么|
八字缺什么怎么算|
吃什么壮阳补肾|
没壳的蜗牛叫什么|
bea是什么意思|
心慌是什么病|
裂隙灯能查出什么眼病|
小孩肚脐周围疼是什么原因|
什么叫脑卒中|
亿后面是什么单位|
挂面是什么面|
白手套什么意思|
苦瓜有什么功效和作用|
质问是什么意思啊|
什么是混合痔|
肾怕什么|
mm是什么意思|
精力旺盛是什么意思|
一人一口是什么字|
下午18点是什么时辰|
阴道清洁度三度什么意思|
肿瘤是什么|
月经有点黑是什么原因|
窦性心动过缓是什么意思|
见人说人话见鬼说鬼话是什么意思|
憩室什么意思|
营养过剩是什么意思|
缠腰蛇是什么症状图片|
脂蛋白a高吃什么能降下来|
abr是什么检查|
尺寸是什么意思|
营长是什么军衔|
眼仁发黄是什么原因|
梦见打架是什么意思|
明胶是什么|
梦见上香是什么意思|
养囊是什么意思|
父亲节做什么礼物好|
舅舅的儿子叫什么|
提篮子是什么意思|
小便失禁是什么原因|
太阳穴痛什么原因|
pg是什么意思|
尿结石是什么引起的|
百度
赴美上市互金企业年报季:2017年营收及用户“高涨”
百度 中国国际商会敦促美方承担大国责任,以实际行动尊重多边规则和国际法治。
SIGACTION(2) NetBSD System Calls Manual SIGACTION(2)
NAME
sigaction - software signal facilities
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigaction(int sig, const struct sigaction *act, struct sigaction *oact);
DESCRIPTION
The system defines a set of signals that may be delivered to a process.
Signal delivery resembles the occurrence of a hardware interrupt: the
signal is blocked from further occurrence, the current process context is
saved, and a new one is built. A process may specify a handler to which
a signal is delivered, or specify that a signal is to be ignored. A
process may also specify that a default action is to be taken by the sys-
tem when a signal occurs. A signal may also be blocked, in which case
its delivery is postponed until it is unblocked. The action to be taken
on delivery is determined at the time of delivery. Normally, signal han-
dlers execute on the current stack of the process. This may be changed,
on a per-handler basis, so that signals are taken on a special signal
stack.
Signal routines execute with the signal that caused their invocation
blocked, but other signals may yet occur. A global signal mask defines
the set of signals currently blocked from delivery to a process. The
signal mask for a process is initialized from that of its parent (nor-
mally empty). It may be changed with a sigprocmask(2) call, or when a
signal is delivered to the process. Signal masks are represented using
the sigset_t type; the sigsetops(3) interface is used to modify such
data.
When a signal condition arises for a process, the signal is added to a
set of signals pending for the process. If the signal is not currently
blocked by the process then it is delivered to the process. Signals may
be delivered any time a process enters the operating system (e.g., during
a system call, page fault or trap, or clock interrupt). If multiple sig-
nals are ready to be delivered at the same time, any signals that could
be caused by traps are delivered first. Additional signals may be pro-
cessed at the same time, with each appearing to interrupt the handlers
for the previous signals before their first instructions. The set of
pending signals is returned by the sigpending(2) function. When a caught
signal is delivered, the current state of the process is saved, a new
signal mask is calculated (as described below), and the signal handler is
invoked. The call to the handler is arranged so that if the signal han-
dling routine returns normally the process will resume execution in the
context from before the signal's delivery. If the process wishes to
resume in a different context, then it must arrange to restore the previ-
ous context itself.
struct sigaction includes the following members:
void (*sa_sigaction)(int sig, siginfo_t *info, void *ctx);
void (*sa_handler)(int sig);
sigset_t sa_mask;
int sa_flags;
When a signal is delivered to a process a new signal mask is installed
for the duration of the process' signal handler (or until a
sigprocmask(2) call is made). This mask is formed by taking the union of
the current signal mask, the signal to be delivered, and the signal mask
associated with the handler to be invoked, sa_mask.
sigaction() assigns an action for a specific signal. If act is non-zero,
it specifies an action (SIG_DFL, SIG_IGN, or a handler routine) and mask
to be used when delivering the specified signal. If oact is non-zero,
the previous handling information for the signal is returned to the user.
Once a signal handler is installed, it remains installed until another
sigaction() call is made, or an execve(2) is performed. A signal-spe-
cific default action may be reset by setting sa_handler to SIG_DFL. The
defaults are process termination, possibly with core dump; no action;
stopping the process; or continuing the process. See the signal list
below for each signal's default action. If sa_handler is set to SIG_DFL,
the default action for the signal is to discard the signal, and if a sig-
nal is pending, the pending signal is discarded even if the signal is
masked. If sa_handler is set to SIG_IGN, current and pending instances
of the signal are ignored and discarded.
Options may be specified by setting sa_flags.
SA_NODEFER If set, then the signal that caused the handler to be exe-
cuted is not added to the list of block signals. Please
note that sa_mask takes precedence over SA_NODEFER, so that
if the specified signal is blocked in sa_mask, then
SA_NODEFER will have no effect.
SA_NOCLDSTOP If set when installing a catching function for the SIGCHLD
signal, the SIGCHLD signal will be generated only when a
child process exits, not when a child process stops.
SA_NOCLDWAIT If set, the system will not create a zombie when the child
exits, but the child process will be automatically waited
for.
SA_ONSTACK If set, the system will deliver the signal to the process
on a signal stack, specified with sigaltstack(2).
SA_RESETHAND If set, the default action will be reinstated when the sig-
nal is first posted.
SA_RESTART Normally, if a signal is caught during the system calls
listed below, the call may be forced to terminate with the
error EINTR, the call may return with a data transfer
shorter than requested, or the call may be restarted.
Restarting of pending calls is requested by setting the
SA_RESTART bit in sa_flags. The affected system calls
include open(2), read(2), write(2), sendto(2), recvfrom(2),
sendmsg(2) and recvmsg(2) on a communications channel or a
slow device (such as a terminal, but not a regular file)
and during a wait(2) or ioctl(2). However, calls that have
already committed are not restarted, but instead return a
partial success (for example, a short read count).
After a fork(2) or vfork(2) all signals, the signal mask,
the signal stack, and the restart/interrupt flags are
inherited by the child.
The execve(2) system call reinstates the default action for
all signals which were caught and resets all signals to be
caught on the user stack. Ignored signals remain ignored;
the signal mask remains the same; signals that restart
pending system calls continue to do so.
See signal(7) for comprehensive list of supported signals.
SA_SIGINFO If set, the signal handler function will receive additional
information about the caught signal. An alternative han-
dler that gets passed additional arguments will be called
which is named sa_sigaction. The sig argument of this han-
dler contains the signal number that was caught. The info
argument contains additional signal specific information
which is listed in siginfo(2). The ctx argument is a
pointer to the ucontext(2) context where the signal handler
will return to.
NOTES
The mask specified in act is not allowed to block SIGKILL or SIGSTOP.
This is enforced silently by the system.
RETURN VALUES
A 0 value indicates that the call succeeded. A -1 return value indicates
an error occurred and errno is set to indicate the reason.
ERRORS
sigaction() will fail and no new signal handler will be installed if one
of the following occurs:
[EFAULT] Either act or oact points to memory that is not a
valid part of the process address space.
[EINVAL] sig is not a valid signal number.
[EINVAL] An attempt is made to ignore or supply a handler for
SIGKILL or SIGSTOP.
[EINVAL] The sa_flags word contains bits other than
SA_NOCLDSTOP, SA_NOCLDWAIT, SA_NODEFER, SA_ONSTACK,
SA_RESETHAND, SA_RESTART, and SA_SIGINFO.
SEE ALSO
kill(1), kill(2), ptrace(2), sigaltstack(2), siginfo(2), sigprocmask(2),
sigsuspend(2), setjmp(3), sigsetops(3), tty(4), signal(7)
STANDARDS
The sigaction() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1'').
The SA_ONSTACK and SA_RESTART flags are Berkeley extensions, available on
most BSD-derived systems.
NetBSD 2.0 November 25, 2003 NetBSD 2.0
Powered by man-cgi (2025-08-06).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
匆匆那年是什么意思hcv9jop1ns9r.cn |
hr是什么意思travellingsim.com |
少一个睾丸有什么影响hcv9jop2ns2r.cn |
高就什么意思hcv7jop5ns4r.cn |
什么精什么神hcv9jop3ns3r.cn |
什么洗面奶好hcv9jop3ns2r.cn |
手腕扭伤挂什么科hcv8jop6ns7r.cn |
肾衰竭吃什么水果好hcv7jop9ns1r.cn |
肚子疼吃什么食物好wzqsfys.com |
tct检查是什么检查hcv8jop3ns3r.cn |
腿肿脚肿是什么原因引起的hcv8jop2ns1r.cn |
地中海贫血有什么症状zhiyanzhang.com |
梦到吃肉是什么意思周公解梦hcv9jop2ns6r.cn |
香干是什么qingzhougame.com |
慢性浅表性胃炎吃什么药hcv9jop4ns4r.cn |
转氨酶高是什么意思hcv8jop5ns2r.cn |
春天有什么花开hcv8jop6ns3r.cn |
泌尿外科看什么病hcv9jop1ns7r.cn |
男人脚底有痣代表什么hcv9jop3ns6r.cn |
化疗后吃什么排毒最快hcv9jop1ns3r.cn |
百度