diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-04-13 21:13:41 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-04-13 21:13:41 +0400 |
commit | bfe1ed40a820982180fe55a0bbde96e8fb736c39 (patch) | |
tree | 9ce067565200eaef762cf96da5917ab4eb7ad96c | |
parent | 4902c5bdca82e66969763394d289bb81c0fd5567 (diff) |
* fhandler.h (class fhandler_socket): Remove utimes.
* fhandler_socket.cc (fhandler_socket::utimes): Remove.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.h | 1 | ||||
-rw-r--r-- | 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,5 +1,10 @@ 2005-04-13 Corinna Vinschen <corinna@vinschen.de> + * fhandler.h (class fhandler_socket): Remove utimes. + * fhandler_socket.cc (fhandler_socket::utimes): Remove. + +2005-04-13 Corinna Vinschen <corinna@vinschen.de> + * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32 error code as well as errno. Use throughout where errno is set from NT status. 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 @@ -589,17 +589,6 @@ fhandler_socket::link (const char *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) { int res = -1; |