Article View: gnu.emacs.bug
Article #981Fix for getloadavg.c on Sequent Dynix 3.xx, SunOS 4
From: 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
Technical Details
Message-ID:
<JASON.93Jan26012032@ooze.claremont.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!uvaarpa!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jasonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!uvaarpa!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason From: jason@jarthur.claremont.edu (Jason Merrill) Newsgroups: gnu.emacs.bug Subject: Fix for getloadavg.c on Sequent Dynix 3.xx, SunOS 4 Date: 26 Jan 1993 21:56:29 -0500 Organization: Minimal Lines: 81 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <JASON.93Jan26012032@ooze.claremont.edu>