icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Others

SIGRETURN(2)              OpenBSD Programmer's Manual             SIGRETURN(2)

     sigreturn - return from signal

     #include <signal.h>

     sigreturn(struct sigcontext *scp);

     sigreturn() allows users to atomically unmask, switch stacks, and return
     from a signal context.  The processes signal mask and stack status are
     restored from the context.  The system call does not return; the users
     stack pointer, frame pointer, argument pointer, and processor status
     longword are restored from the context.  Execution resumes at the speci-
     fied pc.  This system call is used by the trampoline code and longjmp(3)
     when returning from a signal to the previously executing program.

     Note that sigcontext contains machine dependent information.

     This system call is not available in 4.2 BSD hence it should not be used
     if backward compatibility is needed.

     If successful, the system call does not return.  Otherwise, a value of -1
     is returned and errno is set to indicate the error.

     sigreturn() will fail and the process context will remain unchanged if
     one of the following occurs.

     [EFAULT]      scp points to memory that is not a valid part of the pro-
                   cess address space.

     [EINVAL]      The process status longword is invalid or would improperly
                   raise the privilege level of the process.

     sigaction(2),  setjmp(3)

     The sigreturn() function call appeared in 4.3BSD.

OpenBSD 2.6                      June 4, 1993                                1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]

[Overview Topics]

Up to: Process Signals and Events - Sending and handling signals and events.

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Others

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > sigreturn.2/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments