about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/lutimes.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-06 00:13:54 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-06 00:14:26 +0100
commitec1300cfc83c716f33ee3231bba0a6e270abfc73 (patch)
tree739118fdbbe5f662bbc00f29d0b9566e6b3fef70 /sysdeps/mach/hurd/lutimes.c
parentbbe762d1e596d7f5a1cd560a229387cb856916e0 (diff)
downloadglibc-ec1300cfc83c716f33ee3231bba0a6e270abfc73.tar.gz
glibc-ec1300cfc83c716f33ee3231bba0a6e270abfc73.tar.xz
glibc-ec1300cfc83c716f33ee3231bba0a6e270abfc73.zip
hurd: Add futimesat and utimensat support
	* sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
	hurd_futimes.
	* sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
	* sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
	* sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
	(__futimens): Move implementation to...
	* sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
	utime_tvalue_from_tspec): ... new helper functions.
	(hurd_futimens): New function.
	* sysdeps/mach/hurd/futimesat.c: New file.
	* sysdeps/mach/hurd/utimensat.c: New file.
Diffstat (limited to 'sysdeps/mach/hurd/lutimes.c')
-rw-r--r--sysdeps/mach/hurd/lutimes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/lutimes.c b/sysdeps/mach/hurd/lutimes.c
index 23b00c1739..375ab3feb3 100644
--- a/sysdeps/mach/hurd/lutimes.c
+++ b/sysdeps/mach/hurd/lutimes.c
@@ -36,7 +36,7 @@ __lutimes (const char *file, const struct timeval tvp[2])
   if (port == MACH_PORT_NULL)
     return -1;
 
-  err = hurd_futimens (port, tvp);
+  err = hurd_futimes (port, tvp);
 
   __mach_port_deallocate (__mach_task_self (), port);
   if (err)