New directory
[bpt/emacs.git] / src / s / sco5.h
index 0071696..8b091f6 100644 (file)
@@ -1,5 +1,5 @@
 /* System description file for SCO 3.2v5.
-   Copyright (C) 1996  Free Software Foundation, Inc.
+   Copyright (C) 1996, 2002  Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -70,7 +70,12 @@ Boston, MA 02111-1307, USA.  */
 /* This is safe since we already assumed HAVE_SOCKET
    if using X windows.  */
 #undef LIBX11_SYSTEM
-#define LIBX11_SYSTEM -lpt -lnls -lnsl -lc -lsocket
+#define LIBX11_SYSTEM_COMMON -lpt -lnls -lnsl -lc -lsocket
+#ifdef MOTIF
+# define LIBX11_SYSTEM -lgen LIBX11_SYSTEM_COMMON
+#else /* ndef MOTIF */
+# define LIBX11_SYSTEM LIBX11_SYSTEM_COMMON
+#endif /* ndef MOTIF */
 
 #undef LIB_X11_LIB
 #define LIB_X11_LIB -lX11
@@ -101,11 +106,6 @@ Boston, MA 02111-1307, USA.  */
 /* We don't have -loldX, and we don't need it.  */
 #define LIB_XMENU_LIB
 
-/* Jean-Pierre Radley <jpr@jpr.com> reports in
-   <news:19970906220024.40892@jpr.com> (1997-09-07)
-   that mktime is broken in sco5 releases at least through 5.0.4.  */
-#define BROKEN_MKTIME 1
-
 /* SCO does have TIOCGWINSZ.  */
 #undef BROKEN_TIOCGWINSZ
 #define NEED_PTEM_H
@@ -126,28 +126,31 @@ Boston, MA 02111-1307, USA.  */
 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
 #endif
 
-/* miano@acosta.enet.dec.com says these are needed.  */
-#define bcopy(b1,b2,len) memmove (b2, b1, len)
-#define bzero(b,len) memset (b, 0, len)
-#define bcmp(b1,b2,len) memcmp (b1, b2, len)
-
 /* Tell process_send_signal to use VSUSP instead of VSWTCH.  */
 #define PREFER_VSUSP
 
 /* SCO Unix has Posix signals, but in 3.2.5 something broken that causes
  * all keyboard-quit signals to be lost after the first one. */
 #undef POSIX_SIGNALS
-#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL))
+
+#define SIGMASKTYPE long
+
+#ifndef NOT_C_CODE
+extern SIGMASKTYPE sigprocmask_set;
+#endif /* not NOT_C_CODE */
+
+#define sigblock(sig)                                  \
+     (sigprocmask_set = SIGEMPTYMASK | (sig),          \
+      sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
+#define sigunblock(sig)                                                \
+     (sigprocmask_set = SIGFULLMASK & ~(sig),                  \
+      sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
 
 #ifndef PENDING_OUTPUT_COUNT
 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)
 #endif
 
-#ifndef HAVE_VFORK
-#define HAVE_VFORK
-#endif
-
-/* Use ELF and get real shared libraries */ 
+/* Use ELF and get real shared libraries */
 
 #undef COFF
 #define ELF
@@ -159,9 +162,6 @@ Boston, MA 02111-1307, USA.  */
 #define LD_SWITCH_SYSTEM -belf
 #endif
 
-/* SCO has a working alloca in libPW */
-#define HAVE_ALLOCA
-
 /* Don't disable static function, as SCO's header files have some.*/
 #undef static
 
@@ -169,3 +169,5 @@ Boston, MA 02111-1307, USA.  */
 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/values-Xt.o
 #undef LIB_STANDARD
 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o
+
+#define NARROWPROTO 1