|
Last change
on this file since 3033 was 1392, checked in by bird, 22 years ago |
|
This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.
|
-
Property cvs2svn:cvs-rev
set to
1.1.1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
727 bytes
|
| Line | |
|---|
| 1 | /* You may need to adjust the definition of signal1 to supply a */
|
|---|
| 2 | /* cast to the correct argument type. This detail is system- and */
|
|---|
| 3 | /* compiler-dependent. The #define below assumes signal.h declares */
|
|---|
| 4 | /* type SIG_PF for the signal function's second argument. */
|
|---|
| 5 |
|
|---|
| 6 | /* For some C++ compilers, "#define Sigarg_t ..." may be appropriate. */
|
|---|
| 7 |
|
|---|
| 8 | #include <signal.h>
|
|---|
| 9 |
|
|---|
| 10 | #ifndef Sigret_t
|
|---|
| 11 | #define Sigret_t void
|
|---|
| 12 | #endif
|
|---|
| 13 | #ifndef Sigarg_t
|
|---|
| 14 | #define Sigarg_t int
|
|---|
| 15 | #endif /*Sigarg_t */
|
|---|
| 16 |
|
|---|
| 17 | #ifdef USE_SIG_PF /* compile with -DUSE_SIG_PF under IRIX */
|
|---|
| 18 | #define sig_pf SIG_PF
|
|---|
| 19 | #else
|
|---|
| 20 | typedef Sigret_t (*sig_pf) (Sigarg_t);
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | #define signal1(a,b) signal(a,(sig_pf)b)
|
|---|
| 24 |
|
|---|
| 25 | #define Sigarg int n
|
|---|
| 26 | #define Use_Sigarg n = n /* shut up compiler warning */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.