This function receives the signal number as its first argument, a pointer to a siginfo_t as its second argument and a pointer to a ucontext_t (cast to void *) as its third argument.
本萌新实在不太懂第三个参数是做什么用的,还有它是什么,求大佬们指点
This function receives the signal number as its first argument, a pointer to a siginfo_t as its second argument and a pointer to a ucontext_t (cast to void *) as its third argument.
本萌新实在不太懂第三个参数是做什么用的,还有它是什么,求大佬们指点
1 回答3.3k 阅读
1.1k 阅读
857 阅读
555 阅读
第三个参数是
ucontext_t*
,是接收到信号时程序执行的上下文,也就是一堆寄存器。有什么用得看场景发挥