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
SSIGNAL ( 3C ) SSIGNAL ( 3C ) NAME ssignal, gsignal - software signals SYNOPSIS #include < signal.h > int (•ssignal (sig, action))( ) int sig, (*action)( ); int gsignal (sig) int sig; DESCRIPTION Ssignal and gsignal implement a software facility similar to signal(2). This facility is used by the Standard C Library to enable users to indicate the disposition of error conditions, and is also made available to users for their own purposes. Software signals made available to users are associated with integers in the inclusive range 1 through 15. A call to ssignal asso ciates a procedure, action, with the software signal sig ; the software signal, sig , is raised by a call to gsignal . Raising a software signal causes the action established for that signal to be taken. The first argument to ssignal is a number identifying the type of signal for which an action is to be established. The second argument defines the action; it is either the name of a (user defined) action function or one of the manifest constants SIG_DFL (default) or SIG_IGN (ignore). Ssignal returns the action previously established for that signal type; if no action has been established or the signal number is illegal, ssignal returns SIG_DFL. Gsignal raises the signal identified by its argument, sig : If an action function has been established for sig , then that action is reset to SIG_DFL and the action function is entered with argument sig . Gsignal returns the value returned to it by the action function. If the action for sig is SIG_IGN, gsignal returns the value 1 and takes no other action. If the action for sig is SIG_DFL, gsignal returns the value 0 and takes no other action. If sig has an illegal value or no action was ever specified for sig , gsignal returns the value 0 and takes no other action. NOTES There are some additional signals with numbers outside the range 1 through 15 which are used by the Standard C Library to indicate error conditions. Thus, some signal numbers outside the range 1 through 15 are legal, although their use may interfere with the operation of the Standard C Library. SEE ALSO signal(2), kill(2). - 1 -
- Page 932 and 933: MENU (3T) (AT&T UNIX PC only ) mite
- Page 934 and 935: MENU (3T) (AT&T UNIX PC only ) FILE
- Page 936 and 937: MESSAGE ( 3T ) ( AT&T UNIX PC only
- Page 939: MONITOR ( 3C ) MONITOR ( 3C ) NAME
- Page 943 and 944: PASTE (3T) (AT&T UNIX PC only ) PAS
- Page 945 and 946: PASTE ( 3T ) ( AT&T UNIX PC only )
- Page 947: PERROR (3C) PERROR (3C) NAME perror
- Page 950 and 951: (� / I I I I I I I I I I I I I I
- Page 952 and 953: PRINTF (3S) PRINTF (3S) A field wid
- Page 955 and 956: PUTC ( 3S ) PUTC ( 3S ) NAME putc,
- Page 957: PUTENV (3C) PUTENV (3C) NAME putenv
- Page 960 and 961: ···- ·
- Page 962 and 963: I� ·-.---·
- Page 964 and 965: ' ' .} ' 1 . ' .____.,.:
- Page 966 and 967: � ·�
- Page 968 and 969: REGCMP {3X) REGCMP {3X) ( . . . ) P
- Page 970 and 971: SCANF(3S) u 0 X SCANF(3S) an unsign
- Page 973 and 974: � I SETBUF (3S) SETBUF (3S) NAME
- Page 975 and 976: SETJMP (3C) SETJMP ( 3C ) NAME setj
- Page 977 and 978: SINII ( 3M ) SINH ( 3M ) NAME sinh,
- Page 979 and 980: SLEEP (3C) SLEEP ( 3C ) NAME sleep
- Page 981: SPUTL ( 3X ) SPUTL ( 3X ) NAME sput
- Page 987: STDIPC ( 3C ) STDIPC ( 3C ) NAME st
- Page 990 and 991: STRING (3C) STRING (3C) NOTE BUGS S
- Page 992 and 993: ·-- . ·
- Page 995 and 996: SWAB ( 3C ) SWAB ( 3C ) NAME swab -
- Page 997 and 998: SYSTEM ( 3S ) SYSTEM( 3S ) NAME sys
- Page 999 and 1000: TAM (3T) (AT&T UNIX PC only ) TAM(3
- Page 1001 and 1002: TAM(3T) (AT&T UNIX PC only ) TAM(3T
- Page 1003 and 1004: TAM (3T) (AT&T UNIX PC only ) TAM(3
- Page 1005 and 1006: TAM (3T) wgetpos() kcodemap() wgetc
- Page 1007 and 1008: TMPFILE ( 3S ) TMPFILE ( 3S ) NAME
- Page 1009 and 1010: TMPNAM (3S) TMPNAM (3S} NAME tmpnam
- Page 1011 and 1012: TRACK ( 3T ) ( AT&T UNIX PC only )
- Page 1013: TRACK (3T) (AT&T UNIX PC only ) TRA
- Page 1017 and 1018: TSEARCH ( 3C ) TSEARCH ( 3C ) NAME
- Page 1019: TSEARCH ( 3C ) } I* *I void TSEARCH
- Page 1023: TTYSLOT ( 3C ) TTYSLOT ( 3C ) NAME
- Page 1026 and 1027: ()·-
- Page 1028 and 1029: VPRINTF ( 3S ) VPRINTF ( 3S ) } SEE
- Page 1030 and 1031: WIND (3T) (AT&T UNIX PC only ) WIND
SSIGNAL ( 3C ) SSIGNAL ( 3C )<br />
NAME<br />
ssignal, gsignal - software signals<br />
SYNOPSIS<br />
#include < signal.h ><br />
int (•ssignal (sig, action))( )<br />
int sig, (*action)( );<br />
int gsignal (sig)<br />
int sig;<br />
DESCRIPTION<br />
Ssignal and gsignal implement a software facility similar to signal(2).<br />
This facility is used by the Standard C Library to enable<br />
users to indicate the disposition of error conditions, and is also<br />
made available to users for their own purposes.<br />
Software signals made available to users are associated with<br />
integers in the inclusive range 1 through 15. A call to ssignal asso<br />
ciates a procedure, action, with the software signal sig ; the<br />
software signal, sig , is raised by a call to gsignal . Raising a<br />
software signal causes the action established for that signal to be<br />
taken.<br />
The first argument to ssignal is a number identifying the type of<br />
signal for which an action is to be established. The second argument<br />
defines the action; it is either the name of a (user defined)<br />
action function or one of the manifest constants SIG_DFL<br />
(default) or SIG_IGN (ignore). Ssignal returns the action previously<br />
established for that signal type; if no action has been established<br />
or the signal number is illegal, ssignal returns SIG_DFL.<br />
Gsignal raises the signal identified by its argument, sig :<br />
If an action function has been established for sig , then that<br />
action is reset to SIG_DFL and the action function is<br />
entered with argument sig . Gsignal returns the value<br />
returned to it by the action function.<br />
If the action for sig is SIG_IGN, gsignal returns the value 1<br />
and takes no other action.<br />
If the action for sig is SIG_DFL, gsignal returns the value 0<br />
and takes no other action.<br />
If sig has an illegal value or no action was ever specified for<br />
sig , gsignal returns the value 0 and takes no other action.<br />
NOTES<br />
There are some additional signals with numbers outside the range<br />
1 through 15 which are used by the Standard C Library to indicate<br />
error conditions. Thus, some signal numbers outside the<br />
range 1 through 15 are legal, although their use may interfere with<br />
the operation of the Standard C Library.<br />
SEE ALSO<br />
signal(2), kill(2).<br />
- 1 -