All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] [PATCH] Fix (for real this time) fcntl64 on HPPA
@ 2002-11-19  7:13 Carlos O'Donell
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2002-11-19  7:13 UTC (permalink / raw)
  To: libc-alpha; +Cc: debian-glibc, parisc-linux

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]


libc-alpha,

The following changes adds a few defines so __USE_FILE_OFFSET64
works properly on hppa.

I fixed the changelog and the bug in the original patch.
Tested with samba + LFS support.

c.

 sysdeps/unix/sysv/linux/hppa/bits/fcntl.h |    6 ++++++
 sysdeps/unix/sysv/linux/hppa/fcntl.c      |    1 +
 2 files changed, 7 insertions(+)

---

2002-10-01  Randolph Chung  <tausq@debian.org>

        * sysdeps/unix/sysv/linux/hppa/fcntl.c:
        Include sysdeps/unix/sysv/linux/i386/fcntl.c
        * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h:
        Change defines when using __USE_FILE_OFFSET64


[-- Attachment #2: 08-glibc23-hppa-fcntl64 --]
[-- Type: text/plain, Size: 1136 bytes --]

--- glibc/sysdeps/unix/sysv/linux/hppa/fcntl.c	2002-09-10 20:58:07.000000000 -0700
+++ glibc/sysdeps/unix/sysv/linux/hppa/fcntl.c	2002-09-10 20:58:07.000000000 -0700
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/fcntl.c>
--- glibc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h	2002-09-12 10:31:56.000000000 -0700
+++ glibc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h	2002-09-12 23:43:14.000000000 -0700
@@ -63,9 +63,15 @@
 #define F_SETFD		2	/* Set file descriptor flags.  */
 #define F_GETFL		3	/* Get file status flags.  */
 #define F_SETFL		4	/* Set file status flags.  */
+#ifndef __USE_FILE_OFFSET64
 #define F_GETLK		5	/* Get record locking info.  */
 #define F_SETLK		6	/* Set record locking info (non-blocking).  */
 #define F_SETLKW	7	/* Set record locking info (blocking).  */
+#else
+#define F_GETLK		F_GETLK64  /* Get record locking info.  */
+#define F_SETLK		F_SETLK64  /* Set record locking info (non-blocking).  */
+#define F_SETLKW	F_SETLKW64 /* Set record locking info (blocking).  */
+#endif
 
 #define F_GETLK64	8	/* Get record locking info.  */
 #define F_SETLK64	9	/* Set record locking info (non-blocking).  */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [parisc-linux] [PATCH] Fix (for real this time) fcntl64 on HPPA
@ 2002-11-19  7:13 Carlos O'Donell
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2002-11-19  7:13 UTC (permalink / raw)
  To: libc-alpha; +Cc: debian-glibc, parisc-linux

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]


libc-alpha,

The following changes adds a few defines so __USE_FILE_OFFSET64
works properly on hppa.

I fixed the changelog and the bug in the original patch.
Tested with samba + LFS support.

c.

 sysdeps/unix/sysv/linux/hppa/bits/fcntl.h |    6 ++++++
 sysdeps/unix/sysv/linux/hppa/fcntl.c      |    1 +
 2 files changed, 7 insertions(+)

---

2002-10-01  Randolph Chung  <tausq@debian.org>

        * sysdeps/unix/sysv/linux/hppa/fcntl.c:
        Include sysdeps/unix/sysv/linux/i386/fcntl.c
        * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h:
        Change defines when using __USE_FILE_OFFSET64


[-- Attachment #2: 08-glibc23-hppa-fcntl64 --]
[-- Type: text/plain, Size: 1136 bytes --]

--- glibc/sysdeps/unix/sysv/linux/hppa/fcntl.c	2002-09-10 20:58:07.000000000 -0700
+++ glibc/sysdeps/unix/sysv/linux/hppa/fcntl.c	2002-09-10 20:58:07.000000000 -0700
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/fcntl.c>
--- glibc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h	2002-09-12 10:31:56.000000000 -0700
+++ glibc/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h	2002-09-12 23:43:14.000000000 -0700
@@ -63,9 +63,15 @@
 #define F_SETFD		2	/* Set file descriptor flags.  */
 #define F_GETFL		3	/* Get file status flags.  */
 #define F_SETFL		4	/* Set file status flags.  */
+#ifndef __USE_FILE_OFFSET64
 #define F_GETLK		5	/* Get record locking info.  */
 #define F_SETLK		6	/* Set record locking info (non-blocking).  */
 #define F_SETLKW	7	/* Set record locking info (blocking).  */
+#else
+#define F_GETLK		F_GETLK64  /* Get record locking info.  */
+#define F_SETLK		F_SETLK64  /* Set record locking info (non-blocking).  */
+#define F_SETLKW	F_SETLKW64 /* Set record locking info (blocking).  */
+#endif
 
 #define F_GETLK64	8	/* Get record locking info.  */
 #define F_SETLK64	9	/* Set record locking info (non-blocking).  */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-19  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19  7:13 [parisc-linux] [PATCH] Fix (for real this time) fcntl64 on HPPA Carlos O'Donell
  -- strict thread matches above, loose matches on Subject: below --
2002-11-19  7:13 Carlos O'Donell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.