EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions

StdLib/Include/signal.h File Reference

#include <sys/EfiCdefs.h>
#include <sys/signal.h>

Go to the source code of this file.

Defines

#define SIG_IGN   ((__sighandler_t *) 0)
#define SIG_DFL   ((__sighandler_t *) 1)
#define SIG_ERR   ((__sighandler_t *) 3)
#define SIGINT   __SigInt
 receipt of an interactive attention signal
#define SIGILL   __SigIll
 detection of an invalid function image, such as an invalid instruction
#define SIGABRT   __SigAbrt
 abnormal termination, such as is initiated by the abort function
#define SIGFPE   __SigFpe
 an erroneous arithmetic operation, such as zero divide or an operation resulting in overflow
#define SIGSEGV   __SigSegv
 an invalid access to storage
#define SIGTERM   __SigTerm
 a termination request sent to the program
#define SIGBREAK   __SigBreak
 added for Python
#define SIGALRM   __SigAlrm
 Added for Posix timer functions.
#define SIGVTALRM   __SigVtAlrm
 Added for Posix timer functions.
#define SIGPROF   __SigProf
 Added for Posix timer functions.
#define SIGUSR1   __SigUsr1
 Added for Posix timer functions.
#define SIGUSR2   __SigUsr2
 Added for Posix timer functions.
#define SIGWINCH   __SigWinch
 Added for Posix timer functions.
#define SIGPIPE   __SigPipe
 Added for Posix timer functions.
#define SIGQUIT   __SigQuit
 Added for Posix timer functions.
#define SIG_LAST   __Sig_Last
 One more than the largest signal number.

Functions

__BEGIN_DECLS int raise (int sig)

Detailed Description

This file declares a type and two functions and defines several macros, for handling various signals (conditions that may be reported during program execution).

For historical reasons; programs expect signal to be declared in <sys/signal.h>. The signal function is documented in <sys/signal.h>.

The signal function is declared in the C Standard as:
void (*signal(int sig, void (*func)(int)))(int);

The EDK II implementation of the library or base firmware does not generate any of these signals, except as a result of explicit calls to the raise function.

Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file signal.h.


Define Documentation

#define SIG_DFL   ((__sighandler_t *) 1)

Definition at line 43 of file signal.h.

#define SIG_ERR   ((__sighandler_t *) 3)

Definition at line 44 of file signal.h.

#define SIG_IGN   ((__sighandler_t *) 0)

The following three macros expand to constant expressions with distinct values that have type compatible with the second argument to, and the return value of, the signal function, and whose values compare unequal to the address of any declarable function.

Definition at line 42 of file signal.h.

#define SIG_LAST   __Sig_Last

One more than the largest signal number.

Definition at line 68 of file signal.h.

#define SIGABRT   __SigAbrt

abnormal termination, such as is initiated by the abort function

Definition at line 55 of file signal.h.

#define SIGALRM   __SigAlrm

Added for Posix timer functions.

Definition at line 60 of file signal.h.

#define SIGBREAK   __SigBreak

added for Python

Definition at line 59 of file signal.h.

#define SIGFPE   __SigFpe

an erroneous arithmetic operation, such as zero divide or an operation resulting in overflow

Definition at line 56 of file signal.h.

#define SIGILL   __SigIll

detection of an invalid function image, such as an invalid instruction

Definition at line 54 of file signal.h.

#define SIGINT   __SigInt

receipt of an interactive attention signal

The following macros expand to positive integer constant expressions with type int and distinct values that are the signal numbers, each corresponding to the specified condition. The C95 specification requires these to be macros.

Definition at line 53 of file signal.h.

#define SIGPIPE   __SigPipe

Added for Posix timer functions.

Definition at line 66 of file signal.h.

#define SIGPROF   __SigProf

Added for Posix timer functions.

Definition at line 62 of file signal.h.

#define SIGQUIT   __SigQuit

Added for Posix timer functions.

Definition at line 67 of file signal.h.

#define SIGSEGV   __SigSegv

an invalid access to storage

Definition at line 57 of file signal.h.

#define SIGTERM   __SigTerm

a termination request sent to the program

Definition at line 58 of file signal.h.

#define SIGUSR1   __SigUsr1

Added for Posix timer functions.

Definition at line 63 of file signal.h.

#define SIGUSR2   __SigUsr2

Added for Posix timer functions.

Definition at line 64 of file signal.h.

#define SIGVTALRM   __SigVtAlrm

Added for Posix timer functions.

Definition at line 61 of file signal.h.

#define SIGWINCH   __SigWinch

Added for Posix timer functions.

Definition at line 65 of file signal.h.


Function Documentation

__BEGIN_DECLS int raise ( int  sig)

Send a signal.

The raise function carries out the actions described for signal, in <sys/signal.h>, for the signal sig. If a signal handler is called, the raise function does not return until after the signal handler does.

Returns:
The raise function returns zero if successful, or nonzero if unsuccessful.

Send a signal.

The raise function carries out the actions described for signal, above, for the signal sig.

If a signal handler is called, the raise function shall not return until after the signal handler does.

Returns:
The raise function returns zero if successful, nonzero if unsuccessful.

Definition at line 77 of file Signal.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines