/* fstat.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */

#include <sys/emx.h>
#include <time.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>

int fstat (int handle, struct stat *buffer)
{
  int rc;

  rc = __fstat (handle, buffer);
  if (rc == 0)
    {
      if (!_tzset_flag) tzset ();
      buffer->st_atime += timezone;
      buffer->st_mtime += timezone;
      buffer->st_ctime += timezone;
    }
  return (rc);
}
