posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
XSI_SIGNALS

XSI Signals option group (placeholder). More...

Functions

int killpg (pid_t pgrp, int sig)
 Send a signal to a process group (XSI extension).
 
int sigaltstack (const stack_t *ZRESTRICT ss, stack_t *ZRESTRICT oss)
 Set or get the alternate signal stack (XSI extension).
 

Detailed Description

XSI Signals option group (placeholder).

See also
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html

Function Documentation

◆ killpg()

int killpg ( pid_t  pgrp,
int  sig 
)

Send a signal to a process group (XSI extension).

Parameters
pgrpProcess group ID (0 = calling process's group).
sigSignal number.
Returns
0 on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/killpg.html

◆ sigaltstack()

int sigaltstack ( const stack_t *ZRESTRICT  ss,
stack_t *ZRESTRICT  oss 
)

Set or get the alternate signal stack (XSI extension).

Parameters
ssNew alternate stack descriptor, or NULL.
ossOutput: previous descriptor, or NULL.
Returns
0 on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html