SIGSETOPS(3) BSD Library Functions Manual SIGSETOPS(3)NAME
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember -- manipulate signal sets
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigemptyset(sigset_t *set);
int
sigfillset(sigset_t *set);
int
sigaddset(sigset_t *set, int signo);
int
sigdelset(sigset_t *set, int signo);
int
sigismember(const sigset_t *set, int signo);
DESCRIPTION
These functions manipulate signal sets stored in a sigset_t. Either sigemptyset() or sigfillset() must be called for every object of type
sigset_t before any other use of the object.
The sigemptyset() function initializes a signal set to be empty.
The sigfillset() function initializes a signal set to contain all signals.
The sigaddset() function adds the specified signal signo to the signal set.
The sigdelset() function deletes the specified signal signo from the signal set.
The sigismember() function returns whether a specified signal signo is contained in the signal set.
RETURN VALUES
The sigismember() function returns 1 if the signal is a member of the set, 0 otherwise. The other functions return 0 upon success. A -1
return value indicates an error occurred and the global variable errno is set to indicate the reason.
ERRORS
These functions could fail if one of the following occurs:
[EINVAL] signo has an invalid value.
SEE ALSO kill(2), sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)STANDARDS
These functions are defined by IEEE Std 1003.1-1988 (``POSIX.1'').
BSD December 16, 2004 BSD
Check Out this Related Man Page
SIGSETOPS(3) BSD Library Functions Manual SIGSETOPS(3)NAME
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember -- manipulate signal sets
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigemptyset(sigset_t *set);
int
sigfillset(sigset_t *set);
int
sigaddset(sigset_t *set, int signo);
int
sigdelset(sigset_t *set, int signo);
int
sigismember(const sigset_t *set, int signo);
DESCRIPTION
These functions manipulate signal sets stored in a sigset_t. Either sigemptyset() or sigfillset() must be called for every object of type
sigset_t before any other use of the object.
The sigemptyset() function initializes a signal set to be empty.
The sigfillset() function initializes a signal set to contain all signals.
The sigaddset() function adds the specified signal signo to the signal set.
The sigdelset() function deletes the specified signal signo from the signal set.
The sigismember() function returns whether a specified signal signo is contained in the signal set.
RETURN VALUES
The sigismember() function returns 1 if the signal is a member of the set, 0 otherwise. The other functions return 0 upon success. A -1
return value indicates an error occurred and the global variable errno is set to indicate the reason.
ERRORS
These functions could fail if one of the following occurs:
[EINVAL] signo has an invalid value.
SEE ALSO kill(2), sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)STANDARDS
These functions are defined by IEEE Std 1003.1-1988 (``POSIX.1'').
BSD December 16, 2004 BSD
Hi,
I have a problem with signal handler algorithm in linux. My code is hanging ( It is continuously looping inside the signal handler) . I am pasting my code here...
Please provide me some help regarding this. I googled many places and wrote this code.. but doesnt seem to be working without... (6 Replies)
Hello,
I have solaris 10 systems from which I can not ssh/scp outside. These systems are nis+/nfs clients for user authentication and home directories. When a nis+ user logs in, authentication works fine, home directory is mounted from nfs server. But, from these machines, when a user tries to... (0 Replies)
Hi. This is code snipped I have. I am trying to play with signals...
int main(int argc, char *argv) {
int i;
sigset_t s; //declare set of signals
sigfillset(&s); //initializes the signal set to include all of the defined signals
int j;
for ( i = 0 ; i < 70 ; i++){
j... (6 Replies)
I try to initial a UDP client from threading, but it doesn't work? why?
These codes from the textbook
#define ECHOMAX 255 /* Longest string to echo */
#define TIMEOUT_SECS 2 /* Seconds between retransmits */
#define MAXTRIES 5 /* Tries before giving up */... (3 Replies)
Hi,
I have a UDP server and client program, and they must run within a program, so I decided two threads, one for UDP server and another for UDP client.
The simple architecture is shown in attachment.
However, I can't send the packets out on the UDP client, no any time message and... (2 Replies)
HI
Can anyone provide me with codes for file transfer server to client or vice versa?
Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming.
Thanks (1 Reply)
I'm newbie in UNIX programming, I have a problem with signals. I'm writing multithread program, where threads can die at any moment. When thread dies it generates signal SIGUSR1 to main thread and then thread dies. Main thread gets a signal and waits for thread dead.
I wrote program like this:
... (5 Replies)
Hello all,
I have read just about every rpcbind not starting thread and article on the internet it seems, but I have not found a solution to my problem as of yet. I have a solaris 10 server that has been running with no problems for a while. The other day it crashed and would not boot to the gui... (2 Replies)
I keep getting a Illegal instruction error when running my MCP file below is the dump error message followed by truss log, dose anyone have any ideas?
/opt/builds/bin/core: ELF 32-bit MSB core file SPARC Version 1, from 'mcp'
*** Select Close or Exit from the window menu to close this window... (12 Replies)
Hi @ll :)
I have a problem with my code but first a short description:
1. I have one signal call SIGUSR1
2. In the signal I try to use nanosleep and now:
When I put kill -SIGUSR1 pid --> sometimes works fine, sometimes returns me an error with ,,Interrupt system call", sometimes I got... (5 Replies)
Hello,
I got into a wired state on one of solaris 10 server. When I noticed that server is having some issue, I found that there were dumpadm.conf entries in /etc/shadow and real entries were wiped of. Probably somebody fat fingers.
I was able to boot into failsafe, break SVM mirror, copied... (25 Replies)