In x86_64 /usr/include/bits/fcntl.h sets it to zero, so just undef it
and use the standard
00100000 value when decoding the open flags arg.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-k28megguz5snwop9obvn9mcr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
#define O_TMPFILE 020000000
#endif
+#undef O_LARGEFILE
+#define O_LARGEFILE 00100000
+
size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size)
{
int printed = 0;