sighold(2freebsd)


NAME

     sighold, sigignore, sigpause, sigrelse, sigset --- legacy interface for
     signal management

LIBRARY

     Standard C Library (libc, -lc)

SYNOPSIS

     #include <signal.h>

     int
     sighold(int sig);

     int
     sigignore(int sig);

     int
     xsi_sigpause(int sigmask);

     int
     sigrelse(int sig);

     void (*)(int)
     sigset(int, void (*disp)(int));

     int
     sigpause(int sigmask);

DESCRIPTION

     This interface is made obsolete by sigsuspend(2) and sigaction(2).

     The sigset() function modifies signal dispositions.  The sig argument
     specifies the signal, which may be any signal except SIGKILL and SIGSTOP.
     The disp argument specifies the signal's disposition, which may be
     SIG_DFL, SIG_IGN, or the address of a signal handler.  If sigset() is
     used, and disp is the address of a signal handler, the system adds sig to
     the signal mask of the calling process before executing the signal
     handler; when the signal handler returns, the system restores the signal
     mask of the calling process to its state prior to the delivery of the
     signal.  In addition, if sigset() is used, and disp is equal to SIG_HOLD,
     sig is added to the signal mask of the calling process and sig 's
     disposition remains unchanged.  If sigset() is used, and disp is not
     equal to SIG_HOLD, sig is removed from the signal mask of the calling
     process.

     The sighold() function adds sig to the signal mask of the calling
     process.

     The sigrelse() function removes sig from the signal mask of the calling
     process.

     The sigignore() function sets the disposition of sig to SIG_IGN.

     The xsi_sigpause() function removes sig from the signal mask of the
     calling process and suspend the calling process until a signal is
     received.  The xsi_sigpause() function restores the signal mask of the
     process to its original state before returning.

     The sigpause() function assigns sigmask to the set of masked signals and
     then waits for a signal to arrive; on return the set of masked signals is
     restored.  The sigmask argument is usually 0 to indicate that no signals
     are to be blocked.

RETURN VALUES

     The sigpause() and xsi_sigpause() functions always terminate by being
     interrupted, returning -1 with errno set to EINTR.

     Upon successful completion, sigset() returns SIG_HOLD if the signal had
     been blocked and the signal's previous disposition if it had not been
     blocked.  Otherwise, SIG_ERR is returned and errno set to indicate the
     error.

     For all other functions, upon successful completion, 0 is returned.
     Otherwise, -1 is returned and errno is set to indicate the error:

     [EINVAL]           The sig argument is not a valid signal number.

     [EINVAL]           For sigset() and sigignore() functions, an attempt was
                    made to catch or ignore SIGKILL or SIGSTOP.

SEE ALSO

     kill(2), sigaction(2), sigblock(2), sigprocmask(2), sigsuspend(2),
     sigvec(2)

STANDARDS

     The sigpause() function is implemented for compatibility with historic
     4.3BSD applications.  An incompatible interface by the same name, which
     used a single signal number rather than a mask, was present in AT&T
     System V UNIX, and was copied from there into the X/Open System
     Interfaces (XSI) option of IEEE Std 1003.1-2001 ("POSIX.1").  FreeBSD
     implements it under the name xsi_sigpause().  The sighold(), sigignore(),
     sigrelse() and sigset() functions are implemented for compatibility with
     System V and XSI interfaces.

HISTORY

     The sigpause() function appeared in 4.2BSD and has been deprecated.  All
     other functions appeared in FreeBSD 8.1 and were deprecated before being
     implemented.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.