From eba32ec829904a40f34808374a1c53415ef7bc0b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 24 Apr 2008 09:59:54 +0000 Subject: * cygwin.din (futimens): Export. (utimensat): Export. * fhandler.cc (fhandler_base::utimens): Replace fhandler_base::utimes. Call utimens_fs. * fhandler.h (class fhandler_base): Declare utimens_fs instead of utimes_fs, utimens instead of utimes. (class fhandler_disk_file): Declare utimens instead of utimes. * fhandler_disk_file.cc (fhandler_disk_file::utimens): Replace fhandler_disk_file::utimes. (fhandler_base::utimens_fs): Replace fhandler_base::utimes_fs. Implement tv_nsec handling according to SUSv4. * syscalls.cc (utimensat): New function. * times.cc (timespec_to_filetime): New function. (timeval_to_timespec): New function. (utimens_worker): Replace utimes_worker. (utimes): Convert timeval to timespec and call utimens_worker. (lutimes): Ditto. (futimens): Take over implementation from futimes. (futimes): Convert timeval to timespec and call futimens. * winsup.h (timespec_to_filetime): Declare. * include/cygwin/version.h: Bump API minor number. * posix.sgml: Add SUSv4 section. Add futimens and utimensat to it. --- winsup/cygwin/cygwin.din | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/cygwin.din') diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din index 3b1aaf1d4..e418f4033 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -564,6 +564,7 @@ fts_set_clientptr NOSIGFE ftw SIGFE funlockfile SIGFE funopen SIGFE +futimens SIGFE futimes SIGFE futimesat SIGFE fwrite SIGFE @@ -1656,6 +1657,7 @@ usleep SIGFE _usleep = usleep SIGFE utime SIGFE _utime = utime SIGFE +utimensat SIGFE utimes SIGFE _utimes = utimes SIGFE utmpname SIGFE -- cgit v1.2.3