xref: /openbmc/linux/tools/perf/util/cloexec.h (revision eb3fcf00)
1 #ifndef __PERF_CLOEXEC_H
2 #define __PERF_CLOEXEC_H
3 
4 unsigned long perf_event_open_cloexec_flag(void);
5 
6 #ifdef __GLIBC_PREREQ
7 #if !__GLIBC_PREREQ(2, 6) && !defined(__UCLIBC__)
8 extern int sched_getcpu(void) __THROW;
9 #endif
10 #endif
11 
12 #endif /* __PERF_CLOEXEC_H */
13