Hi,
I just pulled scsh version 0.5 from www-swiss.ai.mit.edu and tried to
build it with the standard tools (./configure followed by a make). I
am running SunOS 4.1.3_U1 on a SPARCstation 5. However, make
complained about not being able to make signals1.o
It seems the file scsh-0.5.0/scsh/sunos/signals1.c is missing from
your distribution. I had to create this file based on my local
signal.h header - I used the solaris file as a template.
The file I created is included below just in case you need it. I was
able to build a scsh that I can start, but I have not tested the
signal handling yet.
Regards,
Shyamal
--
/* Need to turn off synchronous error signals (SIGPIPE, SIGSYS). */
#include "../scsh_aux.h"
/* Make sure our exports match up w/the implementation: */
#include "../signals1.h"
/* This table converts Unix signal numbers to S48/scsh interrupt numbers.
** If the signal doesn't have an interrupt number, the entry is -1.
** (Only asynchronous signals have interrupt numbers.)
**
** Note that we bake into this table the integer values of the signals --
** i.e., we assume that SIGHUP=1, SIGALRM=14, etc. So this definition is
** very system-dependent.
*/
const int sig2int[] = {
-1, /* 0 is not a signal */
scshint_hup, /* 1: SIGHUP */
scshint_keyboard, /* 2: SIGINT */
scshint_quit, /* 3: SIGQUIT */
-1, /* 4: SIGILL */
-1, /* 5: SIGTRAP */
-1, /* 6: SIGABRT SIGIOT*/
-1, /* 7: SIGEMT */
-1, /* 8: SIGFPE */
-1, /* 9: SIGKILL */
-1, /* 10: SIGBUS */
-1, /* 11: SIGSEGV */
-1, /* 12: SIGSYS */
-1, /* 13: SIGPIPE */
scshint_alarm, /* 14: SIGALRM */
scshint_term, /* 15: SIGTERM */
scshint_urg, /* 16: SIGURG */
-1, /* 17: SIGSTOP */
scshint_tstp, /* 18: SIGTSTP */
scshint_cont, /* 19: SIGCONT */
scshint_chld, /* 20: SIGCHLD SIGCHD */
-1, /* 21: SIGTTIN */ /* scshint_ttyin */
-1, /* 22: SIGTTOU */ /* scshint_ttyou */
scshint_io, /* 23: SIGIO SIGPOLL */
scshint_xcpu, /* 24: SIGXCPU */
scshint_xfsz, /* 25: SIGXFSZ */
scshint_vtalrm, /* 26: SIGVTALRM */
scshint_prof, /* 27: SIGPROF */
scshint_winch, /* 28: SIGWINCH */
-1, /* 29: SIGLOST */
scshint_usr1, /* 30: SIGUSR1 */
scshint_usr2, /* 31: SIGUSR2 */
};
const int max_sig = 31; /* SIGUSR2 */
/*
scshint_alarm
scshint_keyboard
scshint_memory_shortage
scshint_chld
scshint_cont
scshint_hup
scshint_quit
scshint_term
scshint_tstp
scshint_usr1
scshint_usr2
scshint_info
scshint_io
scshint_poll
scshint_prof
scshint_pwr
scshint_urg
scshint_vtalrm
scshint_winch
scshint_xcpu
scshint_xfsz
scshint_alarm
scshint_chld
scshint_cont
scshint_hup
scshint_info
scshint_io
scshint_keyboard
scshint_memory_shortage
scshint_poll
scshint_prof
scshint_pwr
scshint_quit
scshint_term
scshint_tstp
scshint_urg
scshint_usr1
scshint_usr2
scshint_vtalrm
scshint_winch
scshint_xcpu
scshint_xfsz
*/
|