delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/12/12/15:57:32

From: aa160 AT city DOT ac DOT uk
Date: Sat, 12 Dec 92 19:46:14 GMT
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: <time.h> & <sys/time.h>

 
Recently while trying to port some clients from Unix across to DV/X, I
noticed something strange in the DJGPP v1.09 time.h & sys/time.h includes ;
 
In <sys/time.h> ;
 
/*  (copyright stuff deleted)
*/
 
#ifndef _SYS_TIME_H_
#define _SYS_TIME_H_
 
#include <time.h>
 
struct timeval {
  long tv_sec;
  long tv_usec;
};
 
#ifndef _TIME_H_
struct timezone {
  int tz_minuteswest;
  int tz_dsttime;
};
#endif
 
#endif
 
 
You'll notice that struct timezone is only defined if _TIME_H_ isn't.
But examination of <time.h> shows that _TIME_H_ never gets #undef'ed.
Which seems to imply that struct timezone never gets declared, ever?
 
Also,
 
> More long term, I have been running DesqView/X ($200), the DV/X
> ...
> site-license price, dunno about real prices).  This is wonderfully
> powerful, although it makes my '89 AMI 80386/33-based system creak
> ...
 
>    Stephen Turnbull
 
I couldn't agree more. I think DV/X and DJGPP are the best things to
happen to Unix/MS-DOS users in a LONG time.
 
+----------------------------------+---------------------------------------+
| Anup M Changaroth                |     Internet : aa160 AT city DOT ac DOT uk       |
| Computer Systems Engineering,    +---------------------------------------+
| City University, LONDON          |...---...---...---...---...---...---...|
+--------------------------------------------------------------------------+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019