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
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-
- Page 703 and 704: MKNOD (2) MKNOD (2) NAME mknod - ma
- Page 705: MOUNT (2) MOUNT (2) NAME mount - mo
- Page 708 and 709: MSGCTL(2) MSGCTL ( 2 ) user ID of t
- Page 710 and 711: MSGGET (2) MSGGET (2) SEE ALSO msgc
- Page 712 and 713: MSGOP ( 2) MSGOP (2) the calling pr
- Page 714 and 715: If)
- Page 717 and 718: OPEN ( 2 ) OPEN ( 2 ) NAME open - o
- Page 719: OPEN(2) OPEN(2) O_NDELAY is set, th
- Page 722 and 723: I�
- Page 725 and 726: PLOCK(2) PLOCK(2) NAME plock - lock
- Page 727: PROFIL ( 2 ) PROFIL ( 2 ) NAME prof
- Page 730 and 731: PTRACE (2) PTRACE (2) 4, 5 With the
- Page 732 and 733: (� �--- .
- Page 735 and 736: SEMCTL ( 2 ) SEMCTL ( 2 ) NAME semc
- Page 737 and 738: SEMGET (2) SEMGET (2) NAME semget -
- Page 739 and 740: SEMOP ( 2) SEMOP {2) NAME semop - s
- Page 741 and 742: SEMOP (2) SEMOP (2) Operation permi
- Page 743: SETPGRP (2) SETPGRP (2) NAME setpgr
- Page 747 and 748: SHMCTL (2) SHMCTL (2) NAME shmctl -
- Page 749 and 750: � ! SHMGET (2) SHMGET (2) NAME sh
- Page 751: SHMOP ( 2 ) SHMOP ( 2 ) NAME shmop
- Page 755 and 756: SIGNAL (2) SIGNAL (2) Sig is an ill
- Page 757 and 758: STAT ( 2 ) STAT ( 2 ) NAME stat, fs
- Page 759 and 760: STIME(2) STIME(2) NAME stime - set
- Page 761 and 762: SYNC ( 2) SYNC (2) NAME sync - upda
- Page 763 and 764: SYSLOCAL ( 2) SYSLOCAL ( 2) NAME Sy
- Page 765: TIME ( 2) TIME(2) NAME time - get t
- Page 768 and 769: .�.· '··.· ·•. J '·· -,
- Page 771 and 772: UMASK( 2 ) UMASK ( 2 ) NAME umask -
- Page 773 and 774: UMOUNT (2) UMOUNT (2) NAME umount -
- Page 775: UNAME ( 2 ) UNAME (2) NAME uname -
- Page 779: USTAT (2) USTAT (2) NAME ustat - ge
- Page 783 and 784: WAIT ( 2 ) WAIT ( 2 ) NAME wait - w
- Page 785 and 786: WRITE(2) WRITE (2) NAME write - wri
- Page 787 and 788: INTR0 ( 3 ) INTR0 ( 3 ) NAME intro
- Page 789: A64L ( 3C ) A64L ( 3C ) NAME a641,
- Page 793: ABS (3C) ABS (3C) NAME abs - return
- Page 797: ATOF ( 3C ) ATOF ( 3C ) NAME atof -
- Page 800 and 801: ·�
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-