enable support for large files (> 2G)
bionic has an i386 ifdef guard for the O_LARGEFILE flag. The reason for this is not traceable in the git history, but it's most likely due to some old toolchain or emulator problem. Bug Id: 10035 Change-Id: I742ee6e50220276c2cb268d66f89b5655ef689fc Signed-off-by: Dragos Tatulea <dragos.tatulea@intel.com>
This commit is contained in:
parent
2f5c6d2d66
commit
0e1723e684
@ -35,9 +35,7 @@ int open(const char *pathname, int flags, ...)
|
|||||||
{
|
{
|
||||||
mode_t mode = 0;
|
mode_t mode = 0;
|
||||||
|
|
||||||
#if !defined(__i386__)
|
|
||||||
flags |= O_LARGEFILE;
|
flags |= O_LARGEFILE;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (flags & O_CREAT)
|
if (flags & O_CREAT)
|
||||||
{
|
{
|
||||||
|
@ -35,9 +35,7 @@ int openat(int fd, const char *pathname, int flags, ...)
|
|||||||
{
|
{
|
||||||
mode_t mode = 0;
|
mode_t mode = 0;
|
||||||
|
|
||||||
#if !defined(__i386__)
|
|
||||||
flags |= O_LARGEFILE;
|
flags |= O_LARGEFILE;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (flags & O_CREAT)
|
if (flags & O_CREAT)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user