Move the readn()/writen() functions into libperf. Keep those non-namespaced names because they will be shared only between perf and libperf. Again, these are not exported functions. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190721112506.12306-61-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
11 lines
264 B
C
11 lines
264 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LIBPERF_INTERNAL_LIB_H
|
|
#define __LIBPERF_INTERNAL_LIB_H
|
|
|
|
#include <unistd.h>
|
|
|
|
ssize_t readn(int fd, void *buf, size_t n);
|
|
ssize_t writen(int fd, const void *buf, size_t n);
|
|
|
|
#endif /* __LIBPERF_INTERNAL_CPUMAP_H */
|