1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sigaction.md 6.44 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

sigaction

Overview

Related Modules:

IPC

Description:

Defines the signal processing actions and related attributes. You can use the structures to change the processing actions or attributes.

Describes the signal processing actions and related attributes.

Summary

Data Fields

Variable Name

Description

  

union {

  

   __sighandler_t   _sa_handler

  

   void(*   _sa_sigaction )(int, struct siginfo *, void *)

_u

sa_mask

sigset_t 

sa_flags

unsigned long 

sa_flags

int 

sa_handler )(int)

void(* 

sa_sigaction )(int, siginfo_t *, void *)

void(* 

Details

Field Documentation

_sa_handler

__sighandler_t sigaction::_sa_handler

Description:

Callback for the processing action

_sa_sigaction

void(* sigaction::_sa_sigaction) (int, struct siginfo *, void *)

Description:

Callback with signal information for processing actions

_u

union { ... } sigaction::_u

Description:

Defines the callbacks for signal processing. You can use either of them based on the specific scenario.

sa_flags [1/2]

unsigned long sigaction::sa_flags

Description:

Signal flag. Only SA_SIGINFO is supported.

sa_flags [2/2]

int sigaction::sa_flags

Description:

Signal flag, which is not supported

sa_handler

void(* sigaction::sa_handler) (int)

Description:

Signal callback function type and callback for the processing action

sa_mask

sigset_t sigaction::sa_mask

Description:

Signal to be masked

sa_sigaction

void(* sigaction::sa_sigaction) (int, siginfo_t *, void *)

Description:

Signal callback function type, which is not supported

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助