/*
- * $Id: main.c,v 1.16 2002-09-29 23:24:47 sibaz Exp $
+ * $Id: main.c,v 1.17 2002-10-05 13:20:13 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif /* ! WIFEXITED */
+#ifndef WIFSTOPPED
+#define WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
+#endif
#include <errno.h>
#ifdef TRU64
}
#endif /* BSD4_4 */
+ ciface = interfaces;
+ bootaddr( ciface );
+
memset(&sv, 0, sizeof(sv));
sv.sa_handler = as_down;
sigemptyset( &sv.sa_mask );
atalkd_exit( 1 );
}
- ciface = interfaces;
- bootaddr( ciface );
for (;;) {
readfds = fds;
if ( select( nfds, &readfds, NULL, NULL, NULL) < 0 ) {
/*
- * $Id: ad_mmap.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: ad_mmap.c,v 1.4 2002-10-05 13:20:14 didg Exp $
*
* ad_mmap provides interfaces to memory mapped files. as this is the
* case, we don't have to deal w/ temporary buffers such as
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#ifdef USE_MMAPPED_HEADERS
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
return ad_mmap(buflen, PROT_READ | PROT_WRITE, MAP_SHARED,
ad->ad_hf.adf_fd, off);
}
+
+#endif
/*
- * $Id: server_child.c,v 1.5 2002-01-04 04:45:48 sibaz Exp $
+ * $Id: server_child.c,v 1.6 2002-10-05 13:20:13 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All rights reserved. See COPYRIGHT.
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif /* ! WIFEXITED */
+#ifndef WIFSTOPPED
+#define WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
+#endif
+#ifndef WIFSIGNAL
+#define WIFSIGNALED(status) (!WIFSTOPPED(status) && !WIFEXITED(status))
+#endif
#include <atalk/server_child.h>