Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Data Structures | |
struct | timespec |
struct | sigset_t |
struct | pthread_attr_t |
struct | sigevent_t |
union | sigval |
struct | sigaction |
struct | mcontext_t |
struct | ucontext_t |
struct | stack_t |
struct | siginfo_t |
Macros | |
#define | SIG_HOLD ((void *)-2) |
#define | SIGRTMIN 32 |
#define | SIGRTMAX (SIGRTMIN + CONFIG_POSIX_RTSIG_MAX) |
#define | SIGEV_NONE 1 |
#define | SIGEV_SIGNAL 2 |
#define | SIGEV_THREAD 3 |
#define | SIG_BLOCK 1 |
#define | SIG_UNBLOCK 2 |
#define | SIG_SETMASK 0 |
#define | SA_NOCLDSTOP 0x00000001 |
#define | SA_ONSTACK 0x00000002 |
#define | SA_RESETHAND 0x00000004 |
#define | SA_RESTART 0x00000008 |
#define | SA_SIGINFO 0x00000010 |
#define | SA_NOCLDWAIT 0x00000020 |
#define | SA_NODEFER 0x00000040 |
#define | SS_ONSTACK 0x00000001 |
#define | SS_DISABLE 0x00000002 |
#define | MINSIGSTKSZ 4096 |
#define | SIGSTKSZ 4096 |
#define | SIGHUP 1 |
Hangup. | |
#define | SIGINT 2 |
Interrupt. | |
#define | SIGQUIT 3 |
Quit. | |
#define | SIGILL 4 |
Illegal instruction. | |
#define | SIGTRAP 5 |
Trace/breakpoint trap. | |
#define | SIGABRT 6 |
Aborted. | |
#define | SIGBUS 7 |
Bus error. | |
#define | SIGFPE 8 |
Arithmetic exception. | |
#define | SIGKILL 9 |
Killed. | |
#define | SIGUSR1 10 |
User-defined signal 1. | |
#define | SIGSEGV 11 |
Invalid memory reference. | |
#define | SIGUSR2 12 |
User-defined signal 2. | |
#define | SIGPIPE 13 |
Broken pipe. | |
#define | SIGALRM 14 |
Alarm clock. | |
#define | SIGTERM 15 |
Terminated. | |
#define | SIGCHLD 17 |
Child status changed. | |
#define | SIGCONT 18 |
Continued. | |
#define | SIGSTOP 19 |
Stop executing. | |
#define | SIGTSTP 20 |
Stopped. | |
#define | SIGTTIN 21 |
Stopped (read) | |
#define | SIGTTOU 22 |
Stopped (write) | |
#define | SIGURG 23 |
Urgent I/O condition. | |
#define | SIGXCPU 24 |
CPU time limit exceeded. | |
#define | SIGXFSZ 25 |
File size limit exceeded. | |
#define | SIGVTALRM 26 |
Virtual timer expired. | |
#define | SIGPROF 27 |
Profiling timer expired. | |
#define | SIGPOLL 29 |
Pollable event occurred. | |
#define | SIGSYS 31 |
Bad system call. | |
#define | ILL_ILLOPC 1 |
Illegal opcode. | |
#define | ILL_ILLOPN 2 |
Illegal operand. | |
#define | ILL_ILLADR 3 |
Illegal addressing mode. | |
#define | ILL_ILLTRP 4 |
Illegal trap. | |
#define | ILL_PRVOPC 5 |
Privileged opcode. | |
#define | ILL_PRVREG 6 |
Privileged register. | |
#define | ILL_COPROC 7 |
Coprocessor error. | |
#define | ILL_BADSTK 8 |
Internal stack error. | |
#define | FPE_INTDIV 9 |
Integer divide by zero. | |
#define | FPE_INTOVF 10 |
Integer overflow. | |
#define | FPE_FLTDIV 11 |
Floating-point divide by zero. | |
#define | FPE_FLTOVF 12 |
Floating-point overflow. | |
#define | FPE_FLTUND 13 |
Floating-point underflow. | |
#define | FPE_FLTRES 15 |
Floating-point inexact result. | |
#define | FPE_FLTINV 16 |
Invalid floating-point operation. | |
#define | FPE_FLTSUB 17 |
Subscript out of range. | |
#define | SEGV_MAPERR 18 |
Address not mapped to object. | |
#define | SEGV_ACCERR 19 |
Invalid permissions for mapped object. | |
#define | BUS_ADRALN 20 |
Invalid address alignment. | |
#define | BUS_ADRERR 21 |
Nonexistent physical address. | |
#define | BUS_OBJERR 22 |
Object-specific hardware error. | |
#define | TRAP_BRKPT 23 |
Process breakpoint. | |
#define | TRAP_TRACE 24 |
Process trace trap. | |
#define | CLD_EXITED 25 |
Child has exited. | |
#define | CLD_KILLED 26 |
Child has terminated abnormally and did not create a core file. | |
#define | CLD_DUMPED 27 |
Child has terminated abnormally and created a core file. | |
#define | CLD_TRAPPED 28 |
Traced child has trapped. | |
#define | CLD_STOPPED 29 |
Child has stopped. | |
#define | CLD_CONTINUED 30 |
Stopped child has continued. | |
#define | POLL_IN 31 |
Data input available. | |
#define | POLL_OUT 32 |
Output buffers available. | |
#define | POLL_MSG 33 |
Input message available. | |
#define | POLL_ERR 34 |
I/O error. | |
#define | POLL_PRI 35 |
High priority input available. | |
#define | POLL_HUP 36 |
Device disconnected. | |
#define | SI_USER 37 |
Signal sent by kill() | |
#define | SI_QUEUE 38 |
Signal sent by sigqueue() | |
#define | SI_TIMER 39 |
Signal generated by expiration of a timer set by timer_settime() | |
#define | SI_ASYNCIO 40 |
Signal generated by completion of an asynchronous I/O request. | |
#define | SI_MESGQ 41 |
Signal generated by arrival of a message on an empty message queue. |
Typedefs | |
typedef unsigned int | pthread_t |
typedef int | uid_t |
typedef long | time_t |
typedef long | pid_t |
typedef void(* | sighandler_t) (int sig) |
Functions | |
int | kill (pid_t pid, int sig) |
int | killpg (pid_t pgrp, int sig) |
void | psiginfo (const siginfo_t *info, const char *message) |
void | psignal (int sig, const char *message) |
int | pthread_kill (pthread_t thread, int sig) |
int | pthread_sigmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset) |
TOOLCHAIN_DISABLE_WARNING (TOOLCHAIN_WARNING_SHADOW) | |
int | sigaction (int sig, const struct sigaction *ZRESTRICT act, struct sigaction *ZRESTRICT oact) |
TOOLCHAIN_ENABLE_WARNING (TOOLCHAIN_WARNING_SHADOW) | |
int | sigaddset (sigset_t *set, int sig) |
int | sigaltstack (const stack_t *ZRESTRICT ss, stack_t *ZRESTRICT oss) |
int | sigdelset (sigset_t *set, int sig) |
int | sigemptyset (sigset_t *set) |
int | sigfillset (sigset_t *set) |
int | sighold (int sig) |
int | sigignore (int sig) |
int | siginterrupt (int sig, int flag) |
int | sigismember (const sigset_t *set, int sig) |
int | sigpause (int sig) |
int | sigpending (sigset_t *set) |
int | sigprocmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset) |
int | sigqueue (pid_t pid, int sig, union sigval value) |
int | sigrelse (int sig) |
sighandler_t | sigset (int sig, sighandler_t disp) |
int | sigsuspend (const sigset_t *set) |
int | sigtimedwait (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info, const struct timespec *ZRESTRICT timeout) |
int | sigwait (const sigset_t *ZRESTRICT set, int *ZRESTRICT sig) |
int | sigwaitinfo (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info) |
#define BUS_ADRALN 20 |
Invalid address alignment.
#define BUS_ADRERR 21 |
Nonexistent physical address.
#define BUS_OBJERR 22 |
Object-specific hardware error.
#define CLD_CONTINUED 30 |
Stopped child has continued.
#define CLD_DUMPED 27 |
Child has terminated abnormally and created a core file.
#define CLD_EXITED 25 |
Child has exited.
#define CLD_KILLED 26 |
Child has terminated abnormally and did not create a core file.
#define CLD_STOPPED 29 |
Child has stopped.
#define CLD_TRAPPED 28 |
Traced child has trapped.
#define FPE_FLTDIV 11 |
Floating-point divide by zero.
#define FPE_FLTINV 16 |
Invalid floating-point operation.
#define FPE_FLTOVF 12 |
Floating-point overflow.
#define FPE_FLTRES 15 |
Floating-point inexact result.
#define FPE_FLTSUB 17 |
Subscript out of range.
#define FPE_FLTUND 13 |
Floating-point underflow.
#define FPE_INTDIV 9 |
Integer divide by zero.
#define FPE_INTOVF 10 |
Integer overflow.
#define ILL_BADSTK 8 |
Internal stack error.
#define ILL_COPROC 7 |
Coprocessor error.
#define ILL_ILLADR 3 |
Illegal addressing mode.
#define ILL_ILLOPC 1 |
Illegal opcode.
#define ILL_ILLOPN 2 |
Illegal operand.
#define ILL_ILLTRP 4 |
Illegal trap.
#define ILL_PRVOPC 5 |
Privileged opcode.
#define ILL_PRVREG 6 |
Privileged register.
#define MINSIGSTKSZ 4096 |
#define POLL_ERR 34 |
I/O error.
#define POLL_HUP 36 |
Device disconnected.
#define POLL_IN 31 |
Data input available.
#define POLL_MSG 33 |
Input message available.
#define POLL_OUT 32 |
Output buffers available.
#define POLL_PRI 35 |
High priority input available.
#define SA_NOCLDSTOP 0x00000001 |
#define SA_NOCLDWAIT 0x00000020 |
#define SA_NODEFER 0x00000040 |
#define SA_ONSTACK 0x00000002 |
#define SA_RESETHAND 0x00000004 |
#define SA_RESTART 0x00000008 |
#define SA_SIGINFO 0x00000010 |
#define SEGV_ACCERR 19 |
Invalid permissions for mapped object.
#define SEGV_MAPERR 18 |
Address not mapped to object.
#define SI_ASYNCIO 40 |
Signal generated by completion of an asynchronous I/O request.
#define SI_MESGQ 41 |
Signal generated by arrival of a message on an empty message queue.
#define SI_QUEUE 38 |
Signal sent by sigqueue()
#define SI_TIMER 39 |
Signal generated by expiration of a timer set by timer_settime()
#define SI_USER 37 |
Signal sent by kill()
#define SIG_BLOCK 1 |
#define SIG_HOLD ((void *)-2) |
#define SIG_SETMASK 0 |
#define SIG_UNBLOCK 2 |
#define SIGABRT 6 |
Aborted.
#define SIGALRM 14 |
Alarm clock.
#define SIGBUS 7 |
Bus error.
#define SIGCHLD 17 |
Child status changed.
#define SIGCONT 18 |
Continued.
#define SIGEV_NONE 1 |
#define SIGEV_SIGNAL 2 |
#define SIGEV_THREAD 3 |
#define SIGFPE 8 |
Arithmetic exception.
#define SIGHUP 1 |
Hangup.
#define SIGILL 4 |
Illegal instruction.
#define SIGINT 2 |
Interrupt.
#define SIGKILL 9 |
Killed.
#define SIGPIPE 13 |
Broken pipe.
#define SIGPOLL 29 |
Pollable event occurred.
#define SIGPROF 27 |
Profiling timer expired.
#define SIGQUIT 3 |
Quit.
#define SIGRTMAX (SIGRTMIN + CONFIG_POSIX_RTSIG_MAX) |
#define SIGRTMIN 32 |
#define SIGSEGV 11 |
Invalid memory reference.
#define SIGSTKSZ 4096 |
#define SIGSTOP 19 |
Stop executing.
#define SIGSYS 31 |
Bad system call.
#define SIGTERM 15 |
Terminated.
#define SIGTRAP 5 |
Trace/breakpoint trap.
#define SIGTSTP 20 |
Stopped.
#define SIGTTIN 21 |
Stopped (read)
#define SIGTTOU 22 |
Stopped (write)
#define SIGURG 23 |
Urgent I/O condition.
#define SIGUSR1 10 |
User-defined signal 1.
#define SIGUSR2 12 |
User-defined signal 2.
#define SIGVTALRM 26 |
Virtual timer expired.
#define SIGXCPU 24 |
CPU time limit exceeded.
#define SIGXFSZ 25 |
File size limit exceeded.
#define SS_DISABLE 0x00000002 |
#define SS_ONSTACK 0x00000001 |
#define TRAP_BRKPT 23 |
Process breakpoint.
#define TRAP_TRACE 24 |
Process trace trap.
typedef long pid_t |
typedef void(* sighandler_t) (int sig) |
typedef long time_t |
typedef int uid_t |
int kill | ( | pid_t | pid, |
int | sig ) |
int killpg | ( | pid_t | pgrp, |
int | sig ) |
void psiginfo | ( | const siginfo_t * | info, |
const char * | message ) |
void psignal | ( | int | sig, |
const char * | message ) |
int pthread_kill | ( | pthread_t | thread, |
int | sig ) |
int sigaddset | ( | sigset_t * | set, |
int | sig ) |
int sigdelset | ( | sigset_t * | set, |
int | sig ) |
int sigemptyset | ( | sigset_t * | set | ) |
int sigfillset | ( | sigset_t * | set | ) |
int sighold | ( | int | sig | ) |
int sigignore | ( | int | sig | ) |
int siginterrupt | ( | int | sig, |
int | flag ) |
int sigismember | ( | const sigset_t * | set, |
int | sig ) |
int sigpause | ( | int | sig | ) |
int sigpending | ( | sigset_t * | set | ) |
int sigrelse | ( | int | sig | ) |
sighandler_t sigset | ( | int | sig, |
sighandler_t | disp ) |
int sigsuspend | ( | const sigset_t * | set | ) |
int sigtimedwait | ( | const sigset_t *ZRESTRICT | set, |
siginfo_t *ZRESTRICT | info, | ||
const struct timespec *ZRESTRICT | timeout ) |
TOOLCHAIN_DISABLE_WARNING | ( | TOOLCHAIN_WARNING_SHADOW | ) |
TOOLCHAIN_ENABLE_WARNING | ( | TOOLCHAIN_WARNING_SHADOW | ) |