Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sigsetmask(2) [bsd man page]

SIGSETMASK(2)							System Calls Manual						     SIGSETMASK(2)

NAME
sigsetmask - set current signal mask SYNOPSIS
#include <signal.h> omask = sigsetmask(mask); long omask, mask; mask = sigmask(signum) long mask; int signum; DESCRIPTION
Sigsetmask sets the current signal mask (those signals that are blocked from delivery). Signals are blocked 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, SIGSTOP, or SIGCONT to be blocked. RETURN VALUE
The previous set of masked signals is returned. SEE ALSO
kill(2), sigvec(2), sigblock(2), sigpause(2) 4.2 Berkeley Distribution May 14, 1986 SIGSETMASK(2)

Check Out this Related Man Page

SIGSETMASK(2)						      BSD System Calls Manual						     SIGSETMASK(2)

NAME
sigsetmask, sigblock -- manipulate current signal mask LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <signal.h> int sigsetmask(int mask); int sigblock(int mask); int sigmask(int signum); DESCRIPTION
This interface is made obsolete by: sigprocmask(2). The sigsetmask() function sets the current signal mask to the specified mask. Signals are blocked from delivery if the corresponding bit in mask is a 1. The sigblock() function adds the signals in the specified mask to the current signal mask, rather than overwriting it as sigsetmask() does. 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 sigblock() and sigsetmask() functions return the previous set of masked signals. SEE ALSO
kill(2), sigaction(2), sigprocmask(2), sigsuspend(2), sigvec(2), sigsetops(3) HISTORY
The sigsetmask() and sigblock() functions first appeared in 4.2BSD and have been deprecated. BSD
June 2, 1993 BSD
Man Page

9 More Discussions You Might Find Interesting

1. Programming

signals - SIGTERM

Hi all, I need some urgent help. we are using Dynix/ptx V4.5 on i386, have several processes and instances are running on the box round the clock.we increased the processes recently. We have coded to handle the signals in our programs. Recently, we noticed most of our processes are... (2 Replies)
Discussion started by: reddyb
2 Replies

2. UNIX for Advanced & Expert Users

Round Robin Scheduling

Hi, first post. Well, here goes: Ok, so I need to build a round robin scheduling algorithm. I understand HOW the algorithm works and I can write it down/show you on paper if you were to ask me "how does the RR scheduling algorithm work?" Only problem is that I'm having a hell of a time... (0 Replies)
Discussion started by: ramoneguru
0 Replies

3. IP Networking

select vs poll

Hi, Off late I had been looking at the differences b/w select() & poll() system calls. The requirement is to reduce the overhead, processor power in waiting for the data. In the kind of connections under consideration there would be very frequent data arriving on the sockets, so poll() fares... (12 Replies)
Discussion started by: smanu
12 Replies

4. Solaris

Need help in building gcc on solaris.

We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is sailfish@st-kvar02 -> uname -a SunOS st-kvar02 5.10... (7 Replies)
Discussion started by: nalina.hv
7 Replies

5. Solaris

gcc -3.4.6 installation help

Hi, I want to install the gcc-3.4.6 on solaris 9.5 , in order to compile perl 5.8.8 . I have the following packages . gcc-3.4.6.tar ibiconv-1.11-sol9-sparc-local.gz gcc-3.4.6-sol9-sparc-local libiconv-1.11.tar.gz Where can I find the necessary documents or... (4 Replies)
Discussion started by: sonu2die4
4 Replies

6. Solaris

gcc -3.4.6 solaris installation error

Hi , I am installing gcc 3.4.6 on SunOS labcvs001sm 5.9 Generic_117171-07 sun4u sparc SUNW,Ultra-5_10 . The isa info is 'sparcv'. I have the following with me a)gcc-3.4.6.tar b)gcc-3.4.6-sol9-sparc-local c)libiconv-1.11-sol9-sparc-local d) binutils-2.18.tar.gz e)... (8 Replies)
Discussion started by: sonu2die4
8 Replies

7. UNIX for Dummies Questions & Answers

Trying to block signal

I have this code that doesnt do what it is suppose to do. It should block signal that I send while process is running. I press control+z while this process is running and it should be blocked but it isnt. When i press control+z it gives me this.... + Stopped When I change SIGTSP into SIGINT then... (5 Replies)
Discussion started by: joker40
5 Replies

8. Programming

Pro*C not running in oracle11g R2 on AIX 6.1....

Hi All, When I am running a pro*c executable on an AIX 6.1.0.0 and Oracle 11gR2 environment which is complied in AIX 6.1.0.0 and Oracle 11gR2 environment only , I am getting segment fault error . When the same code is getting compiled in AIX5.3 Oracle 10gR2 env and run in AIX5.3 Oracle 10gR2 ,... (0 Replies)
Discussion started by: amaniitd
0 Replies

9. Programming

[C/Linux]Help in replacing obsolete function

Hi guys, I need help on some function replacement cause I get obsolete function warning(and I must remove it): -gethostbyaddr(arg1,arg2,arg3) -gethostbyname(arg1) -getservbyname(arg1,arg2) can be replaced with getaddrinfo(arg1,arg2,arg3,arg4) but I'm not able to undestand how(libraries... (0 Replies)
Discussion started by: fracche
0 Replies