Tizen RT Libs&Environment  v1.0 D5
signal.h File Reference

Signal APIs. More...

#include <tinyara/config.h>
#include <tinyara/compiler.h>
#include <stdint.h>
#include <time.h>
Include dependency graph for signal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  sigval
 Union for defining the types of the siginfo si_value field. More...
 
struct  sigevent
 Structure for elements that define a queue signal. The following is used to attach a signal to a message queue to notify a task when a message is available on a queue. More...
 
struct  siginfo
 Structure for using to pass parameters to/from signal handlers. More...
 
struct  sigaction
 Structure for defining the action to take for given signal. More...
 

Macros

#define NULL_SIGNAL_SET   ((sigset_t)0x00000000)
 
#define ALL_SIGNAL_SET   ((sigset_t)0xffffffff)
 
#define MIN_SIGNO   0
 
#define MAX_SIGNO   31
 
#define GOOD_SIGNO(s)   ((((unsigned)(s)) <= MAX_SIGNO))
 
#define SIGNO2SET(s)   ((sigset_t)1 << (s))
 
#define SIGRTMIN   MIN_SIGNO /* First real time signal */
 
#define SIGRTMAX   MAX_SIGNO /* Last real time signal */
 
#define SIGUSR1   1 /* User signal 1 */
 
#define SIGUSR2   2 /* User signal 2 */
 
#define SIGALRM   3 /* Default signal used with POSIX timers (used only */
 
#define SIGCHLD   4 /* Used by child threads to signal parent thread */
 
#define SIGKILL   9 /* Sent to cause process to terminate */
 
#define SIGCONDTIMEDOUT   16 /* Used in the implementation of pthread_cond_timedwait */
 
#define SIG_BLOCK   1 /* Block the given signals */
 
#define SIG_UNBLOCK   2 /* Unblock the given signals */
 
#define SIG_SETMASK   3 /* Set the signal mask to the current set */
 
#define SA_NOCLDSTOP
 
#define SA_SIGINFO
 
#define SA_NOCLDWAIT
 
#define SI_USER   0 /* Signal sent from kill, raise, or abort */
 
#define SI_QUEUE   1 /* Signal sent from sigqueue */
 
#define SI_TIMER   2 /* Signal is result of timer expiration */
 
#define SI_ASYNCIO   3 /* Signal is the result of asynch IO completion */
 
#define SI_MESGQ   4 /* Signal generated by arrival of a message on an */
 
#define CLD_EXITED   5 /* Child has exited (SIGCHLD only) */
 
#define CLD_KILLED   6 /* Child was killed (SIGCHLD only) */
 
#define CLD_DUMPED   7 /* Child terminated abnormally (SIGCHLD only) */
 
#define CLD_TRAPPED   8 /* Traced child has trapped (SIGCHLD only) */
 
#define CLD_STOPPED   9 /* Child has stopped (SIGCHLD only) */
 
#define CLD_CONTINUED   10 /* Stopped child had continued (SIGCHLD only) */
 
#define SIGEV_NONE   0 /* No notification desired */
 
#define SIGEV_SIGNAL   1 /* Notify via signal */
 
#define SIG_ERR   ((CODE void*)-1)
 
#define SIG_DFL   ((CODE void*)0)
 
#define SIG_IGN   ((CODE void*)0)
 
#define sa_handler   sa_u._sa_handler
 
#define sa_sigaction   sa_u._sa_sigaction
 
#define EXTERN   extern
 

Typedefs

typedef uint32_t sigset_t
 
typedef struct siginfo siginfo_t
 
typedef CODE void(* _sa_handler_t) (int)
 
typedef CODE void(* _sa_sigaction_t) (int, FAR siginfo_t *, FAR void *)
 

Functions

int kill (pid_t, int)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigemptyset (FAR sigset_t *set)
 POSIX APIs (refer to : http://pubs.pengroup.org/onlinepubs/9699919799/) More...
 
int sigfillset (FAR sigset_t *set)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigaddset (FAR sigset_t *set, int signo)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigdelset (FAR sigset_t *set, int signo)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigismember (FAR const sigset_t *set, int signo)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sighold (int signo)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigrelse (int signo)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigaction (int sig, FAR const struct sigaction *act, FAR struct sigaction *oact)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigprocmask (int how, FAR const sigset_t *set, FAR sigset_t *oset)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigpending (FAR sigset_t *set)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigsuspend (FAR const sigset_t *sigmask)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigwaitinfo (FAR const sigset_t *set, FAR struct siginfo *value)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigtimedwait (FAR const sigset_t *set, FAR struct siginfo *value, FAR const struct timespec *timeout)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sigqueue (int pid, int signo, FAR void *sival_ptr)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 

Detailed Description

Signal APIs.

Definition in file signal.h.

Macro Definition Documentation

#define EXTERN   extern

Definition at line 291 of file signal.h.