--- a/Unix.st Sun Jan 09 22:25:58 1994 +0100
+++ b/Unix.st Wed Jan 12 20:11:58 1994 +0100
@@ -22,7 +22,7 @@
COPYRIGHT (c) 1988 by Claus Gittinger
All Rights Reserved
-$Header: /cvs/stx/stx/libbasic/Attic/Unix.st,v 1.9 1993-12-20 01:27:42 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Attic/Unix.st,v 1.10 1994-01-12 19:11:58 claus Exp $
written 1988 by claus
'!
@@ -192,8 +192,8 @@
#ifdef sparc
cpu = _MKSTRING("sparc" COMMA_CON);
#endif
-#ifdef snake
- cpu = _MKSTRING("snake" COMMA_CON);
+#if defined(hppa)
+ cpu = _MKSTRING("hppa" COMMA_CON);
#endif
#ifdef rs6000
cpu = _MKSTRING("rs6000" COMMA_CON);
@@ -235,6 +235,10 @@
os = _MKSTRING("sco" COMMA_CON);
#endif
+#ifdef hpux
+ os = _MKSTRING("hpux" COMMA_CON);
+#endif
+
#ifdef LINUX
os = _MKSTRING("linux" COMMA_CON);
#endif
@@ -317,6 +321,10 @@
sys = _MKSTRING("linux" COMMA_CON);
#endif
+#ifdef hpux
+ sys = _MKSTRING("hpux" COMMA_CON);
+#endif
+
#ifdef BSD
# ifdef MACH
if (sys == nil) sys = _MKSTRING("mach" COMMA_CON);
@@ -385,7 +393,7 @@
"return the max number of characters in a filename."
%{ /* NOCONTEXT */
-#if defined(BSD) || defined(SYSV4) || defined(LINUX)
+#if defined(BSD) || defined(SYSV4) || defined(LONGFILENAMES)
RETURN ( _MKSMALLINT(255) );
#else
# ifdef SYSV
@@ -402,9 +410,13 @@
supportsIOInterrupts
"return true, if the OS supports IO availability interrupts
- (i.e. SIGPOLL/SIGIO)."
+ (i.e. SIGPOLL/SIGIO).
+
+ Currently, this mechanism does not work at all ..."
%{ /* NOCONTEXT */
+#ifdef NOTDEF
+
#if defined(SIGPOLL) || defined(SIGIO)
# if defined(F_GETFL) && defined(F_SETFL)
# if defined(FASYNC)
@@ -417,6 +429,8 @@
# endif
# endif
#endif
+
+#endif
%}
.
^ false
@@ -771,8 +785,8 @@
dt.it_value.tv_sec = 0;
dt.it_value.tv_usec = 1000; /* 1000 Hz */
setitimer(ITIMER_VIRTUAL, &dt, 0);
-# ifdef BSD
-# ifndef SYSV4
+#ifndef SYSV4
+# if defined(BSD) || defined(HAS_SIGSETMASK)
sigsetmask(0);
# endif
# endif
@@ -824,8 +838,8 @@
dt.it_value.tv_sec = _intVal(millis) / 1000;
dt.it_value.tv_usec = (_intVal(millis) % 1000) * 1000;
setitimer(ITIMER_REAL, &dt, 0);
-# ifdef BSD
-# ifndef SYSV4
+#ifndef SYSV4
+# if defined(BSD) || defined(HAS_SIGSETMASK)
sigsetmask(0);
# endif
# endif