Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/sigaction.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" From: @(#)sigaction.2 8.2 (Berkeley) 4/3/94 | .\" From: @(#)sigaction.2 8.2 (Berkeley) 4/3/94 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd September 30, 2016 | .Dd August 12, 2017 | ||||
.Dt SIGACTION 2 | .Dt SIGACTION 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm sigaction | .Nm sigaction | ||||
.Nd software signal facilities | .Nd software signal facilities | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In signal.h | .In signal.h | ||||
.Bd -literal | .Bd -literal | ||||
struct sigaction { | struct sigaction { | ||||
void (*sa_handler)(int); | union { | ||||
void (*sa_sigaction)(int, siginfo_t *, void *); | void (*__sa_handler)(int); | ||||
void (*__sa_sigaction)(int, struct __siginfo *, void *); | |||||
} __sigaction_u; /* signal handler */ | |||||
int sa_flags; /* see signal options below */ | int sa_flags; /* see signal options below */ | ||||
sigset_t sa_mask; /* signal mask to apply */ | sigset_t sa_mask; /* signal mask to apply */ | ||||
}; | }; | ||||
#define sa_handler __sigaction_u.__sa_handler | |||||
#define sa_sigaction __sigaction_u.__sa_sigaction | |||||
.Ed | .Ed | ||||
.Ft int | .Ft int | ||||
.Fo sigaction | .Fo sigaction | ||||
.Fa "int sig" | .Fa "int sig" | ||||
.Fa "const struct sigaction * restrict act" | .Fa "const struct sigaction * restrict act" | ||||
.Fa "struct sigaction * restrict oact" | .Fa "struct sigaction * restrict oact" | ||||
.Fc | .Fc | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
▲ Show 20 Lines • Show All 736 Lines • Show Last 20 Lines |