diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-02-20 11:44:32 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-02-20 11:44:32 +0000 |
commit | 2b09be25a3929c8c6d7e23e1abb4756187c5036b (patch) | |
tree | 7a40cce415e163ca50fc27e15858f5da0544d3f6 /winsup/cygwin/winsup.h | |
parent | 731028b3266ad7660095fbae3d94ce5cb9b378b0 (diff) | |
download | newlib-2b09be25a3929c8c6d7e23e1abb4756187c5036b.zip newlib-2b09be25a3929c8c6d7e23e1abb4756187c5036b.tar.gz newlib-2b09be25a3929c8c6d7e23e1abb4756187c5036b.tar.bz2 |
* fhandler.h (enum query_state): Add query_write_attributes state.
(fhandler_base::status.query_open): Add a bit to make room for more
states.
(class fhandler_base): Declare new method utimes.
(class fhandler_socket): Ditto.
(class fhandler_disk_file): Ditto.
(fhandler_disk_file::fhandler_disk_file): Add constructor with
path_conv parameter.
* fhandler.cc (fhandler_base::open): Add query_write_attributes
handling.
(fhandler_base::utimes): New method.
* fhandler_disk_file.cc (fhandler_disk_file::link): Simplify.
Open file with query_write_attributes instead of query_write_control.
(fhandler_disk_file::utimes): New method.
(fhandler_disk_file::fhandler_disk_file): Add constructor with
path_conv parameter setting pc member immediately.
* fhandler_socket.cc (fhandler_socket::fchmod): Use new
fhandler_disk_file constructor.
(fhandler_socket::fchown): Ditto.
(fhandler_socket::facl): Ditto.
(fhandler_socket::link): Ditto.
(fhandler_socket::utimes): New method.
* times.cc: Include dtable.h.
(timeval_to_filetime): Make non-static.
(utimes): Move functionality into fhandler method utimes. Just call
this method from here.
* winsup.h: Simplify declarations of time helper functions.
(timeval_to_filetime): Add extern declaration.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index f4de848..794fa72 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -254,10 +254,11 @@ extern "C" int __stdcall strncasematch (const char *s1, const char *s2, size_t n extern "C" char *__stdcall strcasestr (const char *searchee, const char *lookfor) __attribute__ ((regparm(2))); /* Time related */ -void __stdcall totimeval (struct timeval *dst, FILETIME * src, int sub, int flag); -long __stdcall to_time_t (FILETIME * ptr); -void __stdcall to_timestruc_t (FILETIME * ptr, timestruc_t * out); -void __stdcall time_as_timestruc_t (timestruc_t * out); +void __stdcall totimeval (struct timeval *, FILETIME *, int, int); +long __stdcall to_time_t (FILETIME *); +void __stdcall to_timestruc_t (FILETIME *, timestruc_t *); +void __stdcall time_as_timestruc_t (timestruc_t *); +void __stdcall timeval_to_filetime (const struct timeval *, FILETIME *); void __stdcall set_console_title (char *); void init_console_handler (); |