Cygwin: Align *utime*() with POSIX/glibc

Followup to previous patch, this time matching definitions in Cygwin

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2021-01-26 17:26:35 +01:00
parent 3388a5a429
commit 5b941f21b5
2 changed files with 5 additions and 5 deletions

View File

@ -4915,7 +4915,7 @@ utimensat (int dirfd, const char *pathname, const struct timespec *times,
}
extern "C" int
futimesat (int dirfd, const char *pathname, const struct timeval *times)
futimesat (int dirfd, const char *pathname, const struct timeval times[2])
{
tmp_pathbuf tp;
__try

View File

@ -385,7 +385,7 @@ error:
/* utimes: POSIX/SUSv3 */
extern "C" int
utimes (const char *path, const struct timeval *tvp)
utimes (const char *path, const struct timeval tvp[2])
{
path_conv win32 (path, PC_POSIX | PC_SYM_FOLLOW, stat_suffixes);
struct timespec tmp[2];
@ -394,7 +394,7 @@ utimes (const char *path, const struct timeval *tvp)
/* BSD */
extern "C" int
lutimes (const char *path, const struct timeval *tvp)
lutimes (const char *path, const struct timeval tvp[2])
{
path_conv win32 (path, PC_POSIX | PC_SYM_NOFOLLOW, stat_suffixes);
struct timespec tmp[2];
@ -403,7 +403,7 @@ lutimes (const char *path, const struct timeval *tvp)
/* futimens: POSIX/SUSv4 */
extern "C" int
futimens (int fd, const struct timespec *tvp)
futimens (int fd, const struct timespec tvp[2])
{
int res;
@ -420,7 +420,7 @@ futimens (int fd, const struct timespec *tvp)
/* BSD */
extern "C" int
futimes (int fd, const struct timeval *tvp)
futimes (int fd, const struct timeval tvp[2])
{
struct timespec tmp[2];
return futimens (fd, timeval_to_timespec (tvp, tmp));