]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: Use <bits/fcntl-linux.h>
authorAndreas Jaeger <aj@suse.de>
Wed, 24 Oct 2012 08:07:48 +0000 (10:07 +0200)
committerAndreas Jaeger <aj@suse.de>
Wed, 24 Oct 2012 08:07:48 +0000 (10:07 +0200)
sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h

index 86639f53d5f6c07f5f1819a4040a7f1606d9e336..e0ecb831f66ecf846da40bab5f72ffe1534f8960 100644 (file)
 #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.  */