aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-19 09:27:04 +0000
committerRoland McGrath <roland@gnu.org>2002-11-19 09:27:04 +0000
commit2674f2a35bc904972a0a68cb8067fa859e427a3b (patch)
treedd9341449e1354b58558dd8bab550d4283a714e4
parent0bf5c0507e1db5e551a9681533592c8829a12f9d (diff)
downloadglibc-2674f2a35bc904972a0a68cb8067fa859e427a3b.tar
glibc-2674f2a35bc904972a0a68cb8067fa859e427a3b.tar.gz
glibc-2674f2a35bc904972a0a68cb8067fa859e427a3b.tar.bz2
glibc-2674f2a35bc904972a0a68cb8067fa859e427a3b.zip
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
(F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions. * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/hppa/bits/fcntl.h15
-rw-r--r--sysdeps/unix/sysv/linux/hppa/fcntl.c1
3 files changed, 16 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 762ade1a35..08e96a597e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-11-11 Randolf Chung <tausq@debian.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
+ (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
+ * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
+
* sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
* sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h b/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
index dc68122f8f..fca17b1b77 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
@@ -1,5 +1,6 @@
/* O_*, F_*, FD_* bit values for Linux/HPPA.
- Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995,1996,1997,1998,1999,2000,2002
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -63,9 +64,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. */
-#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). */
+#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). */
diff --git a/sysdeps/unix/sysv/linux/hppa/fcntl.c b/sysdeps/unix/sysv/linux/hppa/fcntl.c
new file mode 100644
index 0000000000..ea951bc4f9
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/fcntl.c
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/fcntl.c>