perf tools: Clean up O_LARGEFILE et al usage
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 4 Feb 2010 08:46:42 +0000 (16:46 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Feb 2010 09:03:03 +0000 (10:03 +0100)
commitf887f3019e56389a73617f4e70f512e82cc89adb
tree176b13e6d9713715d1b4eef75e702b47e6923606
parent447a194b393f32699607fd99617a40abd6a95114
perf tools: Clean up O_LARGEFILE et al usage

Setting _FILE_OFFSET_BITS and using O_LARGEFILE, lseek64, etc,
is redundant. Thanks H. Peter Anvin for pointing it out.

So, this patch removes O_LARGEFILE, lseek64, etc.

Suggested-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4B6A8972.3070605@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/util/header.c
tools/perf/util/session.c
tools/perf/util/trace-event-read.c