The sigmask function is used to construct the mask for a given signum. This mask can be used with the sigblock function.