home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / bug / 1713 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.8 KB

  1. Path: 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
  2. From: jason@jarthur.claremont.edu (Jason Merrill)
  3. Newsgroups: gnu.emacs.bug
  4. Subject: Fix for getloadavg.c on Sequent Dynix 3.xx, SunOS 4
  5. Date: 26 Jan 1993 21:56:29 -0500
  6. Organization: Minimal
  7. Lines: 81
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-emacs@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <JASON.93Jan26012032@ooze.claremont.edu>
  12.  
  13. I think that when DYNIX/ptx appeared and people started porting things to
  14. work on it, other maintainers assumed that the symbol _SEQUENT_ was
  15. interchangeable with the symbol sequent, and removed one or the other,
  16. breaking things.  So in addition to the code fixes, I've added notes about
  17. what these symbols mean...
  18.  
  19. *** 1.0    1993/01/26 08:36:13
  20. --- getloadavg.c    1993/01/26 09:16:14
  21. ***************
  22. *** 40,45 ****
  23. --- 40,47 ----
  24.      DGUX
  25.      eunice            UNIX emulator under VMS.
  26.      NeXT
  27. +    sequent            Sequent Dynix 3.x.x (BSD)
  28. +    _SEQUENT_            Sequent DYNIX/ptx 1.x.x (SYSV)
  29.      sgi
  30.      sony_news                    NEWS-OS (works at least for 4.1C)
  31.      UMAX
  32.  
  33. Dynix has a load average type of long.
  34.  
  35. ***************
  36. *** 108,114 ****
  37.   #endif
  38.   
  39.   
  40. ! #if defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(_SEQUENT_) || defined(sgi) || defined(SVR4) || defined(sony_news)
  41.   #define LOAD_AVE_TYPE long
  42.   #endif
  43.   
  44. --- 110,116 ----
  45.   #endif
  46.   
  47.   
  48. ! #if defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(_SEQUENT_) || defined(sgi) || defined(SVR4) || defined(sony_news) || defined(sequent)
  49.   #define LOAD_AVE_TYPE long
  50.   #endif
  51.   
  52.  
  53. LDAV_CVT for Dynix should be n/1000, so define FSCALE.  Also, I moved the
  54. #ifdef FSCALE outside the #ifndef FSCALE because as it was the Suns here
  55. got the wrong answer.  I wonder how this escaped notice for so long...
  56.  
  57. ***************
  58. *** 125,139 ****
  59.   #define FSCALE 256
  60.   #endif
  61.   
  62. ! #ifdef sgi
  63.   #define    FSCALE 1000.0
  64.   #endif
  65.   
  66. ! #ifdef FSCALE
  67.   #define    LDAV_CVT(n) (((double) (n)) / FSCALE)
  68.   #endif
  69. - #endif    /* Not FSCALE.  */
  70.   
  71.   
  72.   #if !defined(NLIST_STRUCT) && (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(hpux) || defined(_SEQUENT_) || defined(sequent) || defined(sgi) || defined(SVR4) || defined(sony_news))
  73. --- 127,141 ----
  74.   #define FSCALE 256
  75.   #endif
  76.   
  77. ! #if defined(sgi) || defined(sequent)
  78.   #define    FSCALE 1000.0
  79.   #endif
  80.   
  81. ! #endif    /* Not FSCALE.  */
  82. ! #if !defined(LDAV_CVT) && defined(FSCALE)
  83.   #define    LDAV_CVT(n) (((double) (n)) / FSCALE)
  84.   #endif
  85.   
  86.   
  87.   #if !defined(NLIST_STRUCT) && (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(hpux) || defined(_SEQUENT_) || defined(sequent) || defined(sgi) || defined(SVR4) || defined(sony_news))
  88.  
  89. --
  90. Jason Merrill                    jason@jarthur.claremont.edu
  91.  
  92.