home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / IO / FSTAT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  470 b   |  23 lines

  1. /* fstat.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/emx.h>
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <io.h>
  7. #include <time.h>
  8.  
  9. int fstat (int handle, struct stat *buffer)
  10. {
  11.   int rc;
  12.  
  13.   rc = __fstat (handle, buffer);
  14.   if (rc == 0)
  15.     {
  16.       if (!_tzset_flag) tzset ();
  17.       buffer->st_atime += timezone;
  18.       buffer->st_mtime += timezone;
  19.       buffer->st_ctime += timezone;
  20.     }
  21.   return (rc);
  22. }
  23.