mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Always define __O_LARGEFILE
This commit is contained in:
parent
7597ceba89
commit
2a0e2669f9
@ -1,5 +1,9 @@
|
||||
2012-10-22 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
|
||||
Define always.
|
||||
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
|
||||
|
||||
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
|
||||
bits/fcntl-linux.h.
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
2012-10-21 Andreas Jaeger <aj@suse.de>
|
||||
2012-10-22 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* ports/sysdeps/unix/sysv/linux/arm/bits/fcntl.h (__O_LARGEFILE):
|
||||
Define always.
|
||||
|
||||
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Remove all
|
||||
definitions and declarations that are provided by
|
||||
|
@ -23,10 +23,7 @@
|
||||
#define __O_DIRECTORY 040000 /* Must be a directory. */
|
||||
#define __O_NOFOLLOW 0100000 /* Do not follow links. */
|
||||
#define __O_DIRECT 0200000 /* Direct disk access. */
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
# define __O_LARGEFILE 0400000
|
||||
#endif
|
||||
#define __O_LARGEFILE 0400000
|
||||
|
||||
struct flock
|
||||
{
|
||||
|
@ -22,13 +22,11 @@
|
||||
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
# if __WORDSIZE == 64
|
||||
#if __WORDSIZE == 64
|
||||
/* Not necessary, files are always with 64bit off_t. */
|
||||
# define __O_LARGEFILE 0
|
||||
# else
|
||||
# define __O_LARGEFILE 0100000
|
||||
# endif
|
||||
# define __O_LARGEFILE 0
|
||||
#else
|
||||
# define __O_LARGEFILE 0100000
|
||||
#endif
|
||||
|
||||
/* Values for the second argument to `fcntl'. */
|
||||
|
@ -39,14 +39,11 @@
|
||||
#define __O_DIRECT 0x100000 /* direct disk access hint */
|
||||
#define __O_NOATIME 0x200000 /* Do not set atime. */
|
||||
#define __O_PATH 0x1000000 /* Resolve pathname but do not open file. */
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
# if __WORDSIZE == 64
|
||||
# define __O_LARGEFILE 0
|
||||
# else
|
||||
# define __O_LARGEFILE 0x40000
|
||||
# endif
|
||||
#if __WORDSIZE == 64
|
||||
# define __O_LARGEFILE 0
|
||||
#else
|
||||
# define __O_LARGEFILE 0x40000
|
||||
#endif
|
||||
|
||||
#define __O_DSYNC 0x2000 /* Synchronize data. */
|
||||
|
Loading…
Reference in New Issue
Block a user