AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

SHMOP (2) SHMOP (2) Shmdt will fail and not detach the shared memory segment if shmaddr is not the data segment start address of a shared memory segment. IEINV ALl RETURN VALUES Upon successful completion, the return value is as follows: Shmat returns the data segment start address of the attached shared memory segment. Shmdt returns a value of 0. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO exec(2), exit(2), fork(2), shmctl(2), shmget(2), stdipc(3C). - 2 -

SIGNAL (2) SIGNAL (2) NAME signal - specify what to do upon receipt of a signal SYNOPSIS #include int (•signal (sig, func))( ) int sig; int (•func)( ); DESCRIPTION Signal allows the calling process to choose one of three ways in which it is possible to handle the receipt of a specific signal . Sig specifies the signal and June specifies the choice. Sig can be assigned any one of the following except SIGKILL: SIGHUP 01 hangup SIGINT SIGQUIT SIGILL SIGTRAP SIGIOT SIGEMT SIGFPE SIGKILL SIGBUS SIGSEGV SIGSYS SIGPIPE SIGALRM SIGTERM SIGUSRI SIGUSR2 SIGCLD SIGPWR SIGWIND 02 interrupt 03* quit 04* illegal instruction (not reset when caught) 05* trace trap (not reset when caught) 06* lOT instruction 07* EMT instruction 08* floating point exception 09 kill (cannot be caught or ignored) 10* bus error 11 * segmentation violation 12* bad argument to system call 13 write on a pipe with no one to read it 14 alarm clock 15 software termination signal 16 user defined signal 1 17 user defined signal 2 18 death of a child (see WARNING below) 19 power fail (see WARNING below) 20 window status changes SIGPHONE 21 telephone status changes See below for the significance of the asterisk ( *) in the above list. Func is assigned one of three values: SIG_DFL, SIG_IGN, or a function address. The actions prescribed by these values of are as follows: - 1-

SIGNAL (2) SIGNAL (2)<br />

NAME<br />

signal - specify what to do upon receipt of a signal<br />

SYNOPSIS<br />

#include <br />

int (•signal (sig, func))( )<br />

int sig;<br />

int (•func)( );<br />

DESCRIPTION<br />

Signal allows the calling process to choose one of three ways in<br />

which it is possible to handle the receipt of a specific signal . Sig<br />

specifies the signal and June specifies the choice.<br />

Sig can be assigned any one of the following except SIGKILL:<br />

SIGHUP 01 hangup<br />

SIGINT<br />

SIGQUIT<br />

SIGILL<br />

SIGTRAP<br />

SIGIOT<br />

SIGEMT<br />

SIGFPE<br />

SIGKILL<br />

SIGBUS<br />

SIGSEGV<br />

SIGSYS<br />

SIGPIPE<br />

SIGALRM<br />

SIGTERM<br />

SIGUSRI<br />

SIGUSR2<br />

SIGCLD<br />

SIGPWR<br />

SIGWIND<br />

02 interrupt<br />

03* quit<br />

04* illegal instruction (not reset when<br />

caught)<br />

05* trace trap (not reset when caught)<br />

06* lOT instruction<br />

07* EMT instruction<br />

08* floating point exception<br />

09 kill (cannot be caught or ignored)<br />

10* bus error<br />

11 * segmentation violation<br />

12* bad argument to system call<br />

13 write on a pipe with no one to read<br />

it<br />

14 alarm clock<br />

15 software termination signal<br />

16 user defined signal 1<br />

17 user defined signal 2<br />

18 death of a child (see WARNING<br />

below)<br />

19 power fail (see WARNING below)<br />

20 window status changes<br />

SIGPHONE 21 telephone status changes<br />

See below for the significance of the asterisk ( *) in the<br />

above list.<br />

Func is assigned one of three values: SIG_DFL, SIG_IGN, or a<br />

function address. The actions prescribed by these values of are as<br />

follows:<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!