aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h b/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
index 86639f53d5..e0ecb831f6 100644
--- a/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
@@ -26,26 +26,13 @@
#define __O_NOFOLLOW 0100000 /* Do not follow links. */
#define __O_DIRECT 0400000 /* Direct disk access. */
-# if __WORDSIZE == 64
-/* Not necessary, files are always with 64bit off_t. */
-# define __O_LARGEFILE 0
-# else
-# define __O_LARGEFILE 0200000
-# endif
-#endif
-
#if __WORDSIZE == 64
-// XXX: The following three values look wrong
-# define F_GETLK64 7 /* Get record locking info. */
-# define F_SETLK64 8 /* Set record locking info (non-blocking). */
-# define F_SETLKW64 9 /* Set record locking info (blocking). */
+/* Not necessary, files are always with 64bit off_t. */
+# define __O_LARGEFILE 0
#else
-# define F_GETLK64 12 /* Get record locking info. */
-# define F_SETLK64 13 /* Set record locking info (non-blocking). */
-# define F_SETLKW64 14 /* Set record locking info (blocking). */
+# define __O_LARGEFILE 0200000
#endif
-
struct flock
{
short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */