SIGRETURNSIGRETURN



SIGRETURNSIGRETURN

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
FILES
CONFORMING TO
NOTES
SEE ALSO
COLOPHON
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
FILES
CONFORMING TO
NOTES
SEE ALSO
COLOPHON

NAME

sigreturn − return from signal handler and cleanup stack frame

SYNOPSIS

int sigreturn(unsigned long __unused);

DESCRIPTION

When the Linux kernel creates the stack frame for a signal handler, a call to sigreturn() is inserted into the stack frame so that upon return from the signal handler, sigreturn() will be called.

This sigreturn() call undoes everything that was done—changing the process’s signal mask, switching stacks (see sigaltstack(2))—in order to invoke the signal handler: it restores the process’s signal mask, switches stacks, and restores the process’s context (registers, processor flags), so that the process directly resumes execution at the point where it was interrupted by the signal.

RETURN VALUE

sigreturn() never returns.

FILES

/usr/src/linux/arch/i386/kernel/signal.c
/usr/src/linux/arch/alpha/kernel/entry.S

CONFORMING TO

sigreturn() is specific to Linux and should not be used in programs intended to be portable.

NOTES

The sigreturn() call is used by the kernel to implement signal handlers. It should never be called directly. Better yet, the specific use of the __unused argument varies depending on the architecture.

SEE ALSO

kill(2), sigaltstack(2), signal(2), signal(7)

COLOPHON

This page is part of release 3.35 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://man7.org/linux/man-pages/.

NAME

sigreturn − return from signal handler and cleanup stack frame

SYNOPSIS

int sigreturn(unsigned long __unused);

DESCRIPTION

When the Linux kernel creates the stack frame for a signal handler, a call to sigreturn() is inserted into the stack frame so that upon return from the signal handler, sigreturn() will be called.

This sigreturn() call undoes everything that was done—changing the process’s signal mask, switching stacks (see sigaltstack(2))—in order to invoke the signal handler: it restores the process’s signal mask, switches stacks, and restores the process’s context (registers, processor flags), so that the process directly resumes execution at the point where it was interrupted by the signal.

RETURN VALUE

sigreturn() never returns.

FILES

/usr/src/linux/arch/i386/kernel/signal.c
/usr/src/linux/arch/alpha/kernel/entry.S

CONFORMING TO

sigreturn() is specific to Linux and should not be used in programs intended to be portable.

NOTES

The sigreturn() call is used by the kernel to implement signal handlers. It should never be called directly. Better yet, the specific use of the __unused argument varies depending on the architecture.

SEE ALSO

kill(2), sigaltstack(2), signal(2), signal(7)

COLOPHON

This page is part of release 3.35 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://man7.org/linux/man-pages/.






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.