xref: /openbmc/linux/tools/lib/perf/include/internal/lib.h (revision 6726d552)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LIBPERF_INTERNAL_LIB_H
3 #define __LIBPERF_INTERNAL_LIB_H
4 
5 #include <sys/types.h>
6 
7 extern unsigned int page_size;
8 
9 ssize_t readn(int fd, void *buf, size_t n);
10 ssize_t writen(int fd, const void *buf, size_t n);
11 
12 ssize_t preadn(int fd, void *buf, size_t n, off_t offs);
13 
14 #endif /* __LIBPERF_INTERNAL_CPUMAP_H */
15