1994-10-26 19:17:41 +01:00
|
|
|
#include "f2c.h"
|
|
|
|
|
|
|
|
#ifdef KR_headers
|
1995-09-28 21:49:15 +01:00
|
|
|
typedef VOID (*sig_type)();
|
1994-10-26 19:17:41 +01:00
|
|
|
extern sig_type signal();
|
1995-09-28 21:49:15 +01:00
|
|
|
typedef int (*sig_proc)();
|
1994-10-26 19:17:41 +01:00
|
|
|
|
|
|
|
ftnint signal_(sigp, proc) integer *sigp; sig_type proc;
|
|
|
|
#else
|
|
|
|
#include "signal.h"
|
|
|
|
typedef void (*sig_type)(int);
|
1995-09-28 21:49:15 +01:00
|
|
|
typedef int (*sig_proc)(int);
|
1994-10-26 19:17:41 +01:00
|
|
|
|
1995-09-28 21:49:15 +01:00
|
|
|
ftnint signal_(integer *sigp, sig_proc proc)
|
1994-10-26 19:17:41 +01:00
|
|
|
#endif
|
|
|
|
{
|
|
|
|
int sig;
|
|
|
|
sig = (int)*sigp;
|
|
|
|
|
1995-09-28 21:49:15 +01:00
|
|
|
return (ftnint)signal(sig, (sig_type)proc);
|
1994-10-26 19:17:41 +01:00
|
|
|
}
|