mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	Add preadn() to provide pread() and readn() semantics. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/ab8918a4-7ac8-a37e-2e2c-28438c422d87@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 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 */
 |