diff options
author | John F. Carr <jfc@mit.edu> | 1991-06-18 11:20:42 +0000 |
---|---|---|
committer | John F. Carr <jfc@mit.edu> | 1991-06-18 11:20:42 +0000 |
commit | 0fdad3476f715ca62ba7ed999dc255ee1967943c (patch) | |
tree | 7ca0690147949f85fdd8d7169430359705391eaa /zhm/zhm.c | |
parent | 8e774e1da62b82c9312ae356ead099665f8db98e (diff) |
POSIX support.
Diffstat (limited to 'zhm/zhm.c')
-rw-r--r-- | zhm/zhm.c | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -13,13 +13,14 @@ #include "zhm.h" -static char rcsid_hm_c[] = - "$Zephyr: zhm.c,v 1.47 90/12/21 17:50:03 raeburn Exp $"; +static char rcsid_hm_c[] = "$Id$"; #include <ctype.h> #include <signal.h> #include <sys/ioctl.h> #include <sys/file.h> +#include <string.h> +#include <errno.h> /* * warning: sys/param.h may include sys/types.h which may not be protected from * multiple inclusions on your system @@ -49,12 +50,20 @@ char **clust_info; char hostname[MAXHOSTNAMELEN], loopback[4]; char *PidFile = PIDFILE; -extern int errno; -extern char *index(), *strcpy(), *sbrk(); +extern char *index(), *sbrk(); extern long time(); void init_hm(), detach(), handle_timeout(), resend_notices(), die_gracefully(); -int set_sig_type(); + +#if defined(ultrix) || defined(_POSIX_SOURCE) +void +#endif + set_sig_type(sig) + int sig; +{ + sig_type = sig; +} + char *strsave(); main(argc, argv) @@ -409,13 +418,6 @@ void detach() } } -int set_sig_type(sig) - int sig; -{ - sig_type = sig; - return(0); -} - static char version[BUFSIZ]; send_stats(notice, sin) |