18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __LIBPERF_INTERNAL_LIB_H
38c2ecf20Sopenharmony_ci#define __LIBPERF_INTERNAL_LIB_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <sys/types.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciextern unsigned int page_size;
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cissize_t readn(int fd, void *buf, size_t n);
108c2ecf20Sopenharmony_cissize_t writen(int fd, const void *buf, size_t n);
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#endif /* __LIBPERF_INTERNAL_CPUMAP_H */
13