Browse Source

Remove unsupported flags O_LARGEFILE and O_NOATIME

src/fs_clonefile.cpp:199:34: error: use of undeclared identifier 'O_LARGEFILE'
    const int    flags = O_CREAT|O_LARGEFILE|O_NOATIME|O_NOFOLLOW|O_TRUNC|O_WRONLY;
                                 ^
src/fs_clonefile.cpp:199:46: error: use of undeclared identifier 'O_NOATIME'
    const int    flags = O_CREAT|O_LARGEFILE|O_NOATIME|O_NOFOLLOW|O_TRUNC|O_WRONLY;
pull/331/head
James Sanderson 8 years ago
parent
commit
cecd8c7dc7
  1. 2
      src/fs_clonefile.cpp

2
src/fs_clonefile.cpp

@ -196,7 +196,7 @@ namespace fs
if(fdin == -1)
return -1;
const int flags = O_CREAT|O_LARGEFILE|O_NOATIME|O_NOFOLLOW|O_TRUNC|O_WRONLY;
const int flags = O_CREAT|O_NOFOLLOW|O_TRUNC|O_WRONLY;
const mode_t mode = S_IWUSR;
fdout = fs::open(out,flags,mode);
if(fdout == -1)

Loading…
Cancel
Save