diff options
author | Andreas Jaeger <aj@suse.de> | 2012-10-24 10:07:48 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-10-24 10:07:48 +0200 |
commit | 38dbec99f998ad42431ecb2112486a3389c4b00c (patch) | |
tree | d51879bded3ee52c5d6fec6932dc3c6f65850a64 | |
parent | aec22f45f4b7ec2d5d6bf2abcd696788bd17eba2 (diff) | |
download | glibc-38dbec99f998ad42431ecb2112486a3389c4b00c.tar glibc-38dbec99f998ad42431ecb2112486a3389c4b00c.tar.gz glibc-38dbec99f998ad42431ecb2112486a3389c4b00c.tar.bz2 glibc-38dbec99f998ad42431ecb2112486a3389c4b00c.zip |
PowerPC: Use <bits/fcntl-linux.h>
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h | 19 |
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. */ |