01-26-2013
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in
this forum under
special homework rules.
Please review the
rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
If you did post homework in the main forums, please review the
guidelines for posting homework and repost.
Thank You.
The UNIX and Linux Forums.
10 More Discussions You Might Find Interesting
1. Programming
Hi,
i cannot find in which file and function the signals are handled by
default.Can anyone help me?
How can i create a 33th signal?
Thanks (3 Replies)
Discussion started by: Panos
3 Replies
2. UNIX for Dummies Questions & Answers
What does the system call "dup" do?
What is the difference between dup and dup2
I have a fair idea of what it does but I am confused when its coming down to the exact details...
Please help me!:confused: (2 Replies)
Discussion started by: clickonline1
2 Replies
3. UNIX for Dummies Questions & Answers
Which system calls are made for operations cp and mv (2 Replies)
Discussion started by: gaurava99
2 Replies
4. Programming
why user is not able to switch from user to kernel mode by writing the function whose code is identical to system call. (1 Reply)
Discussion started by: joshighanshyam
1 Replies
5. Shell Programming and Scripting
General Question: If a script calls multiple external programs (external to the script, but still on unix), where do the return codes go? Let's say one of external programs fails, does the entire script fail and send a non-zero return code to the job scheduling software, or is the return code sent... (1 Reply)
Discussion started by: jnanasakti
1 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I am new here .
I want to know about system call in detail.
As system calls are also function .How system identifies it.:) (2 Replies)
Discussion started by: vishwasrao
2 Replies
7. UNIX for Advanced & Expert Users
If I explicity ignore a signal (for example, SIGALRM), and this signal is generated during a blocking system call (for example, a recvfrom() ), what happens to the system call?
Does it abort, or does it remain blocked until its end? (2 Replies)
Discussion started by: hurricane
2 Replies
8. UNIX for Dummies Questions & Answers
Greetings,
I am writing a small program in C on UNIX, in which I am using (POSIX reliable) signals.
1. Suppose I have a signal : SIGX, and the corresponding signal handler : sigx_handler.
It is possible to receive SIGX in my process, and, while executing sigx_handler, to receive
again... (0 Replies)
Discussion started by: aigoia
0 Replies
9. AIX
I am in process of writing a library which can make any application of my product capable of creating core in the application's log folder with a product friendly core file name programatically. In my library I am registering for certain signals e.g. SIGILL, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGABRT... (1 Reply)
Discussion started by: rajeev_ks
1 Replies
10. Solaris
I am in process of writing a library which can make any application of my product capable of creating core in the application's log folder with a product friendly core file name programatically. In my library I am registering for certain signals e.g. SIGILL, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGABRT... (5 Replies)
Discussion started by: rajeev_ks
5 Replies
LEARN ABOUT OPENDARWIN
sigprocmask
SIGPROCMASK(2) BSD System Calls Manual SIGPROCMASK(2)
NAME
sigprocmask -- manipulate current signal mask
SYNOPSIS
#include <signal.h>
int
sigprocmask(int how, const sigset_t *set, sigset_t *oset);
DESCRIPTION
The sigprocmask() function examines and/or changes the current signal mask (those signals that are blocked from delivery). Signals are
blocked if they are members of the current signal mask set.
If set is not null, the action of sigprocmask() depends on the value of the parameter how. The signal mask is changed as a function of the
specified set and the current mask. The function is specified by how using one of the following values from <signal.h>:
SIG_BLOCK The new mask is the union of the current mask and the specified set.
SIG_UNBLOCK The new mask is the intersection of the current mask and the complement of the specified set.
SIG_SETMASK The current mask is replaced by the specified set.
If oset is not null, it is set to the previous value of the signal mask. When set is null, the value of how is insignificant and the mask
remains unset providing a way to examine the signal mask without modification.
The system quietly disallows SIGKILL or SIGSTOP to be blocked.
RETURN VALUES
A 0 value indicated that the call succeeded. A -1 return value indicates an error occurred and errno is set to indicated the reason.
ERRORS
The sigprocmask() call will fail and the signal mask will be unchanged if one of the following occurs:
[EINVAL] how has a value other than those listed here.
SEE ALSO
kill(2), sigaction(2), sigsetops(3), sigsuspend(2)
STANDARDS
The sigprocmask() function call is expected to conform to IEEE Std 1003.1-1988 (``POSIX.1'').
BSD
June 4, 1993 BSD