r1818 - glibc-package/branches/glibc-2.4/debian/patches/hurd-i386
Author: aurel32
Date: 2006-10-01 17:00:43 +0000 (Sun, 01 Oct 2006)
New Revision: 1818
Added:
glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/cvs-getsid.diff
glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/submitted-futimes.diff
Log:
... add files forgotten in the previous commit
Added: glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/cvs-getsid.diff
===================================================================
--- glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/cvs-getsid.diff (rev 0)
+++ glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/cvs-getsid.diff 2006-10-01 17:00:43 UTC (rev 1818)
@@ -0,0 +1,23 @@
+2006-01-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ [BZ #2178]
+ * sysdeps/mach/hurd/getsid.c (getsid): When parameter PID is zero,
+ use _hurd_pid instead.
+
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/getsid.c,v
+retrieving revision 1.4
+retrieving revision 1.5
+diff -u -r1.4 -r1.5
+--- libc/sysdeps/mach/hurd/getsid.c 2002/08/04 03:30:39 1.4
++++ libc/sysdeps/mach/hurd/getsid.c 2006/02/21 02:32:31 1.5
+@@ -28,6 +28,9 @@
+ error_t err;
+ pid_t sid;
+
++ if (pid == 0)
++ pid = _hurd_pid;
++
+ err = __USEPORT (PROC, __proc_getsid (port, pid, &sid));
+ if (err)
+ return (pid_t) __hurd_fail (err);
Added: glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/submitted-futimes.diff
===================================================================
--- glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/submitted-futimes.diff (rev 0)
+++ glibc-package/branches/glibc-2.4/debian/patches/hurd-i386/submitted-futimes.diff 2006-10-01 17:00:43 UTC (rev 1818)
@@ -0,0 +1,38 @@
+Index: sysdeps/mach/hurd/futimes.c
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/futimes.c,v
+retrieving revision 1.1
+diff -u -p -r1.1 futimes.c
+--- sysdeps/mach/hurd/futimes.c 27 Aug 2002 02:09:20 -0000 1.1
++++ sysdeps/mach/hurd/futimes.c 23 Sep 2006 12:29:52 -0000
+@@ -28,20 +28,22 @@
+ int
+ __futimes (int fd, const struct timeval tvp[2])
+ {
+- struct timeval timevals[2];
+ error_t err;
++ time_value_t new_atime, new_mtime;
+
+ if (tvp == NULL)
+- {
+ /* Setting the number of microseconds to `-1' tells the
+ underlying filesystems to use the current time. */
+- timevals[1].tv_usec = timevals[0].tv_usec = (time_t)-1;
+- tvp = timevals;
++ new_atime.microseconds = new_mtime.microseconds = -1;
++ else
++ {
++ new_atime.seconds = tvp[0].tv_sec;
++ new_atime.microseconds = tvp[0].tv_usec;
++ new_mtime.seconds = tvp[1].tv_sec;
++ new_mtime.microseconds = tvp[1].tv_usec;
+ }
+
+- err = HURD_DPORT_USE (fd, __file_utimes (port,
+- *(time_value_t *) &tvp[0],
+- *(time_value_t *) &tvp[1]));
++ err = HURD_DPORT_USE (fd, __file_utimes (port, new_atime, new_mtime));
+ return err ? __hurd_dfail (fd, err) : 0;
+ }
+ weak_alias (__futimes, futimes)
+
Reply to: