xref: /linux/tools/lib/perf/include/internal/lib.h (revision dec1c62e91ba268ab2a6e339d4d7a59287d5eba1)
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