[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

latest glibc Hurd patches (2/2)



+    This file is part of the GNU C Library.
+
+    The GNU C Library is free software; you can redistribute it and/or
+@@ -28,13 +28,24 @@
+      const char *file;
+      struct timeval tvp[2];
+ {
++  struct timeval timevals[2];
+   error_t err;
+-  file_t f = __file_name_lookup (file, 0, 0);
+-  if (f == MACH_PORT_NULL)
++  file_t port;
++
++  if (tvp == NULL)
++    {
++      if (__gettimeofday (&timevals[0], NULL) < 0)
++	return -1;
++      timevals[1] = timevals[0];
++      tvp = timevals;
++    }
++
++  port = __file_name_lookup (file, 0, 0);
++  if (port == MACH_PORT_NULL)
+     return -1;
+-  err = __file_utimes (f,
++  err = __file_utimes (port,
+ 		       *(time_value_t *) &tvp[0], *(time_value_t *) &tvp[1]);
+-  __mach_port_deallocate (__mach_task_self (), f);
++  __mach_port_deallocate (__mach_task_self (), port);
+   if (err)
+     return __hurd_fail (err);
+   return 0;

--Multipart_Mon_Feb__1_13:42:14_1999-1--

--Multipart_Thu_Feb__4_11:52:14_1999-1--


Reply to: