Thread View: gnu.emacs.bug
1 messages
1 total messages
Started by Jason Merrill
Wed, 27 Jan 1993 02:56
Fix for getloadavg.c on Sequent Dynix 3.xx, SunOS 4
Author: Jason Merrill
Date: Wed, 27 Jan 1993 02:56
Date: Wed, 27 Jan 1993 02:56
80 lines
2950 bytes
2950 bytes
I think that when DYNIX/ptx appeared and people started porting things to
work on it, other maintainers assumed that the symbol _SEQUENT_ was
interchangeable with the symbol sequent, and removed one or the other,
breaking things. So in addition to the code fixes, I've added notes about
what these symbols mean...
*** 1.0 1993/01/26 08:36:13
--- getloadavg.c 1993/01/26 09:16:14
***************
*** 40,45 ****
--- 40,47 ----
DGUX
eunice UNIX emulator under VMS.
NeXT
+ sequent Sequent Dynix 3.x.x (BSD)
+ _SEQUENT_ Sequent DYNIX/ptx 1.x.x (SYSV)
sgi
sony_news NEWS-OS (works at least for 4.1C)
UMAX
Dynix has a load average type of long.
***************
*** 108,114 ****
#endif
! #if defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(_SEQUENT_) || defined(sgi) || defined(SVR4) || defined(sony_news)
#define LOAD_AVE_TYPE long
#endif
--- 110,116 ----
#endif
! #if defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(_SEQUENT_) || defined(sgi) || defined(SVR4) || defined(sony_news) || defined(sequent)
#define LOAD_AVE_TYPE long
#endif
LDAV_CVT for Dynix should be n/1000, so define FSCALE. Also, I moved the
#ifdef FSCALE outside the #ifndef FSCALE because as it was the Suns here
got the wrong answer. I wonder how this escaped notice for so long...
***************
*** 125,139 ****
#define FSCALE 256
#endif
! #ifdef sgi
#define FSCALE 1000.0
#endif
! #ifdef FSCALE
#define LDAV_CVT(n) (((double) (n)) / FSCALE)
#endif
-
- #endif /* Not FSCALE. */
#if !defined(NLIST_STRUCT) && (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(hpux) || defined(_SEQUENT_) || defined(sequent) || defined(sgi) || defined(SVR4) || defined(sony_news))
--- 127,141 ----
#define FSCALE 256
#endif
! #if defined(sgi) || defined(sequent)
#define FSCALE 1000.0
#endif
! #endif /* Not FSCALE. */
!
! #if !defined(LDAV_CVT) && defined(FSCALE)
#define LDAV_CVT(n) (((double) (n)) / FSCALE)
#endif
#if !defined(NLIST_STRUCT) && (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(hpux) || defined(_SEQUENT_) || defined(sequent) || defined(sgi) || defined(SVR4) || defined(sony_news))
--
Jason Merrill jason@jarthur.claremont.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads