sigsetmask(2)

sigsetmask2

Set current signal mask

Usage

#include <signal.h>

int

sigsetmask(int mask);

sigmask(signum);

Library

Standard C Library (libc, -lc)

Overview

This interface is made obsolete by: sigprocmask(2).

Sigsetmask() sets the current signal mask. Signals are blocked from delivery if the corresponding bit in mask is a 1; the macro sigmask() is provided to construct the mask for a given signum.

The system quietly disallows SIGKILL or SIGSTOP to be blocked.

Return values

The previous set of masked signals is returned.

Releases

Unchanged in 155 releases since Mac OS X 10.2.

  1. 10.2–26.5

History

The sigsetmask() function call appeared in 4.2BSD and has been deprecated.

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.