OSDN Git Service

* fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of
authorcorinna <corinna>
Thu, 6 Jun 2002 15:35:04 +0000 (15:35 +0000)
committercorinna <corinna>
Thu, 6 Jun 2002 15:35:04 +0000 (15:35 +0000)
commit1e114e01de59ba2ad596a1703450635857576c5c
treeb9fe539ac270ef4b42fc63c63dc553ea201ecd37
parent01e1c7bcabafb038aea59fe0b7f8b3773c23b95d
* fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of
st_atim, st_mtim, and st_ctim fields.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Ditto.
* fhandler_process.cc (fhandler_process::fstat): Ditto.
* glob.c (stat32_to_STAT): Copy across the whole st_atim,
st_mtime, and st_ctim fields.
* syscalls.cc (stat64_to_stat32): Ditto.
* times.cc (to_timestruc_t): New function.
(time_as_timestruc_t): New function.
* winsup.h: Add to_timestruc_t and time_as_timestruc_t functions.
* include/cygwin/stat.h: Replace time_t with timestruc_t
throughout for all file times, removing the st_spare1, st_spare2,
and st_spare3 fields in the process. Add macros to access tv_sec
fields by old names.
* include/cygwin/types.h: Typedef timespec_t and timestruc_t as
struct timespec.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/fhandler_process.cc
winsup/cygwin/glob.c
winsup/cygwin/include/cygwin/stat.h
winsup/cygwin/include/cygwin/types.h
winsup/cygwin/syscalls.cc
winsup/cygwin/times.cc
winsup/cygwin/winsup.h