From bfe1ed40a820982180fe55a0bbde96e8fb736c39 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 13 Apr 2005 17:13:41 +0000 Subject: [PATCH] * fhandler.h (class fhandler_socket): Remove utimes. * fhandler_socket.cc (fhandler_socket::utimes): Remove. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler.h | 1 - winsup/cygwin/fhandler_socket.cc | 11 ----------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6923a0c6b..9e3a13218 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-04-13 Corinna Vinschen + + * fhandler.h (class fhandler_socket): Remove utimes. + * fhandler_socket.cc (fhandler_socket::utimes): Remove. + 2005-04-13 Corinna Vinschen * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32 diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 787d78e33..6ad3a8282 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -470,7 +470,6 @@ class fhandler_socket: public fhandler_base int __stdcall fchown (__uid32_t uid, __gid32_t gid) __attribute__ ((regparm (2))); int __stdcall facl (int, int, __acl32 *) __attribute__ ((regparm (3))); int __stdcall link (const char *) __attribute__ ((regparm (2))); - int __stdcall utimes (const struct timeval *) __attribute__ ((regparm (2))); bool is_slow () {return 1;} }; diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 150fb0f1c..aa412081e 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -588,17 +588,6 @@ fhandler_socket::link (const char *newpath) return fhandler_base::link (newpath); } -int -fhandler_socket::utimes (const struct timeval *tvp) -{ - if (get_device () == FH_UNIX) - { - fhandler_disk_file fh (pc); - return fh.utimes (tvp); - } - return fhandler_base::utimes (tvp); -} - int fhandler_socket::bind (const struct sockaddr *name, int namelen) {