home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / minix / 4332 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  2.0 KB

  1. Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!iagu.itd.adelaide.edu.au!newton
  2. From: newton@iagu.itd.adelaide.edu.au (Mark Newton)
  3. Newsgroups: comp.os.minix
  4. Subject: Re: Question init.c <--> /etc/utmp
  5. Keywords: init login utmp wtmp
  6. Message-ID: <8357@sirius.ucs.adelaide.edu.au>
  7. Date: 28 Aug 92 12:17:58 GMT
  8. References: <meulenbr.714819852@cstw168> <8341@sirius.ucs.adelaide.edu.au> <1992Aug27.120305.1001@email.tuwien.ac.at>
  9. Sender: news@ucs.adelaide.edu.au
  10. Organization: University of Adelaide, South Australia
  11. Lines: 34
  12. Nntp-Posting-Host: iagu.itd.adelaide.edu.au
  13.  
  14. In article <1992Aug27.120305.1001@email.tuwien.ac.at> hp@vmars.tuwien.ac.at (Peter Holzer) writes:
  15. >newton@iagu.itd.adelaide.edu.au (Mark Newton) writes:
  16. >
  17. >>There's a call to time() that looks something like "ut.ut_time = time()"
  18. >>which doesn't work due to the fact that init.c doesn't #include <time.h>.
  19. >
  20. >Is init different on 68k and PC-Minix? Init.c on PC-Minix 1.5 _does_
  21. >include <time.h> and the parameter is (time_t *)0, so there is no
  22. >problem.
  23.  
  24. Hmm... must be different.  That one-line bug has been present ever
  25. since I first installed the Prentice-Hall distribution.  Whenver I install
  26. upgrade patches I always have to go back over init and make sure that
  27. it's #include'ing time.h.
  28.  
  29. I'm actually quite surprised that nobody else has mentioned it (which is
  30. part of the reason why I didn't;  The other part of the reason was that
  31. my net access isn't exactly reliable).  It's really and obvious bug, and
  32. one that I'd have thought would have been canvassed before.
  33.  
  34. >Byte ordering has nothing to do with that. The upper 16 bits of the
  35.  
  36. Hmm.  Like you, I thought that the PC init.c was the same as the m68k
  37. init.c (or is it a problem perculiar to Amiga MINIX?).  I was simply
  38. postulating possibilities.
  39.  
  40.    - mark
  41.  
  42.  
  43. -- 
  44. ------------------------------------------------------------------
  45.          'Do not expose your LaserWriter to naked flame...'
  46. newton@iagu.itd.adelaide.edu.au         - Apple LaserWriter Manual
  47. ------------------------------------------------------------------
  48.