]> code.delx.au - gnu-emacs/blobdiff - src/s/sco5.h
* textprop.c (text_property_stickiness): doc fix.
[gnu-emacs] / src / s / sco5.h
index 6c4fa0adbbeef221c4d8c7c0af23eaf0d2196911..06166f32fd99bfe824181915bef9568063489fdc 100644 (file)
@@ -1,5 +1,5 @@
 /* System description file for SCO 3.2v5.
-   Copyright (C) 1996  Free Software Foundation, Inc.
+   Copyright (C) 1996, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -15,8 +15,8 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU Emacs; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  */
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA.  */
 
 /* Contributed by Mark Diekhans <markd@grizzly.com>.  */
 
@@ -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_s -lc_s -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
@@ -121,43 +126,41 @@ 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
 
-/* wjs@wang.com (William Smith) says this is needed on 3.2.4.2.  */
-#define POSIX_SIGNALS
+/* 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 SIGMASKTYPE long
+
+#ifndef NOT_C_CODE
+extern SIGMASKTYPE sigprocmask_set;
+#endif /* not NOT_C_CODE */
 
-/* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets",
-   but only for network connections.
-   It doesn't have the kind of sockets that emacsclient.c
-   and emacsserver.c would use.  */
-#define NO_SOCKETS_IN_FILE_SYSTEM
+#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
 
 #define UNEXEC unexelf.o
 
+#ifndef __GNUC__
 #define C_SWITCH_SYSTEM -belf
 #define LD_SWITCH_SYSTEM -belf
-
-/* SCO has a working alloca in libPW */
-#define HAVE_ALLOCA
+#endif
 
 /* Don't disable static function, as SCO's header files have some.*/
 #undef static
@@ -166,3 +169,8 @@ 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
+
+/* arch-tag: 930541b5-52d9-4cbe-b73c-f4c72091f5df
+   (do not change this comment) */