mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 21:33:00 +01:00
Add preadn() to provide pread() and readn() semantics. Signed-off-by: Adrian Hunter <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
15 lines
357 B
C
15 lines
357 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LIBPERF_INTERNAL_LIB_H
|
|
#define __LIBPERF_INTERNAL_LIB_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
extern unsigned int page_size;
|
|
|
|
ssize_t readn(int fd, void *buf, size_t n);
|
|
ssize_t writen(int fd, const void *buf, size_t n);
|
|
|
|
ssize_t preadn(int fd, void *buf, size_t n, off_t offs);
|
|
|
|
#endif /* __LIBPERF_INTERNAL_CPUMAP_H */
|