summaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/util/util.h
diff options
context:
space:
mode:
authorIngo Molnar2009-05-27 09:10:38 +0200
committerIngo Molnar2009-05-27 08:10:35 +0200
commit16f762a2ac5ecf8a11f6f0332e46cc3459220da5 (patch)
treea54f013d037637a91ceac237b2b0455b29cf45d4 /Documentation/perf_counter/util/util.h
parentperf report: Show the IP only in --verbose mode (diff)
downloadkernel-qcow2-linux-16f762a2ac5ecf8a11f6f0332e46cc3459220da5.tar.gz
kernel-qcow2-linux-16f762a2ac5ecf8a11f6f0332e46cc3459220da5.tar.xz
kernel-qcow2-linux-16f762a2ac5ecf8a11f6f0332e46cc3459220da5.zip
perf_counter tools: Introduce stricter C code checking
Tighten up our C code requirements: - disallow warnings - disallow declarations-mixed-with-statements - require proper prototypes - require C99 (with gcc extensions) Fix up a ton of problems these measures unearth: - unused functions - needlessly global functions - missing prototypes - code mixed with declarations Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: John Kacur <jkacur@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <20090526222155.GJ4424@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/util/util.h')
-rw-r--r--Documentation/perf_counter/util/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/perf_counter/util/util.h b/Documentation/perf_counter/util/util.h
index 36e40c38e093..76590a16c271 100644
--- a/Documentation/perf_counter/util/util.h
+++ b/Documentation/perf_counter/util/util.h
@@ -309,6 +309,8 @@ extern ssize_t xread(int fd, void *buf, size_t len);
extern ssize_t xwrite(int fd, const void *buf, size_t len);
extern int xdup(int fd);
extern FILE *xfdopen(int fd, const char *mode);
+extern int xmkstemp(char *template);
+
static inline size_t xsize_t(off_t len)
{
return (size_t)len;