xref: /linux/tools/perf/util/cloexec.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
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