/* -*-C-*-
-$Id: option.c,v 1.45 1998/04/14 05:13:40 cph Exp $
+$Id: option.c,v 1.46 1998/07/20 04:15:14 cph Exp $
Copyright (c) 1990-98 Massachusetts Institute of Technology
extern int atoi ();
#ifdef WINNT
+
#include <io.h>
#include <string.h>
#include <stdlib.h>
-#else
+
+#else /* not WINNT */
+#ifdef _POSIX
+
+#include <unistd.h>
+#include <string.h>
+
+#else /* not _POSIX */
+
extern int strlen ();
extern char * malloc ();
-#endif
+
+#endif /* not _POSIX */
+#endif /* not WINNT */
#ifndef NULL
# define NULL 0
/* -*-C-*-
-$Id: oscond.h,v 1.24 1998/04/14 05:13:44 cph Exp $
+$Id: oscond.h,v 1.25 1998/07/20 04:15:45 cph Exp $
Copyright (c) 1990-98 Massachusetts Institute of Technology
#endif /* __hpux */
#endif /* _HPUX */
-#ifdef _IRIX4
+#if defined(_IRIX4) || defined(_IRIX6)
+#ifndef _IRIX
+#define _IRIX
+#endif
+#endif
+
+#ifdef _IRIX
#define _POSIX
#define _SYSV3
#endif
/* -*-C-*-
-$Id: regex.c,v 1.17 1997/06/06 06:56:42 cph Exp $
+$Id: regex.c,v 1.18 1998/07/20 04:16:27 cph Exp $
-Copyright (c) 1987-97 Massachusetts Institute of Technology
+Copyright (c) 1987-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
extern char * realloc ();
extern void free ();
\f
-#if defined(_IRIX4) || defined(_AIX)
+#if defined(_IRIX) || defined(_AIX)
#define SIGN_EXTEND_CHAR(x) ((((int) (x)) >= 0x80) \
? (((int) (x)) - 0x100) \
: ((int) (x)))
/* -*-C-*-
-$Id: ux.h,v 1.68 1997/06/27 18:51:46 cph Exp $
+$Id: ux.h,v 1.69 1998/07/20 04:17:58 cph Exp $
-Copyright (c) 1988-97 Massachusetts Institute of Technology
+Copyright (c) 1988-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
/* These seem to be missing from versions of unistd.h */
-#if !(defined(_HPUX) || defined(sonyrisc) || defined(_SUNOS4))
+#if !(defined(_HPUX) || defined(sonyrisc) || defined(_SUNOS4) || defined(_IRIX6))
/* As specified by OSF/1 Programmer's reference: */
extern int EXFUN (ioctl, (int, unsigned long, ...));
#endif
#define ERRNO_NONBLOCK EAGAIN
#define FCNTL_NONBLOCK O_NONBLOCK
-#ifdef _IRIX4
+#ifdef _IRIX
#define HAVE_DIR
#define HAVE_SELECT
#define HAVE_SYMBOLIC_LINKS
#define HAVE_UNIX_SOCKETS
-#endif /* _IRIX4 */
+#endif /* _IRIX */
#ifdef _AIX
#define UNION_WAIT_STATUS
/* -*-C-*-
-$Id: uxio.c,v 1.41 1997/10/22 05:25:17 cph Exp $
+$Id: uxio.c,v 1.42 1998/07/20 04:18:54 cph Exp $
-Copyright (c) 1990-97 Massachusetts Institute of Technology
+Copyright (c) 1990-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
return ((scr < 0) ? 0 : scr);
}
+#ifdef _POSIX
+#include <string.h>
+#else
extern int EXFUN (strlen, (CONST char *));
+#endif
void
DEFUN (OS_channel_write_string, (channel, string),
/* -*-C-*-
-$Id: uxtrap.h,v 1.26 1998/03/20 22:02:26 cph Exp $
+$Id: uxtrap.h,v 1.27 1998/07/20 04:19:30 cph Exp $
Copyright (c) 1990-98 Massachusetts Institute of Technology
#endif /* vax */
\f
#ifdef mips
-#ifdef _IRIX4
+#ifdef _IRIX
/* Information on sigcontext structure in signal.h */
(SIGSEGV, (~ 0L), ENXIO, "Read beyond mapped object"); \
}
-#else /* not _IRIX4 */
+#else /* not _IRIX */
#ifndef _SYSV4
/* Information on sigcontext structure in signal.h */
}
#endif /* _SYSV4 */
-#endif /* _IRIX4 */
+#endif /* _IRIX */
#endif /* mips */
\f
#if defined(i386) && defined(_MACH_UNIX)