Lines Matching defs:buf
31 int read_file(const char *path, char *buf, size_t count, size_t *len)
42 rc = read(fd, buf, count);
68 int read_file_alloc(const char *path, char **buf, size_t *len)
112 *buf = buffer;
126 int write_file(const char *path, const char *buf, size_t count)
136 rc = write(fd, buf, count);
155 int read_auxv(char *buf, ssize_t buf_size)
159 err = read_file("/proc/self/auxv", buf, buf_size, NULL);
168 int read_debugfs_file(const char *subpath, char *buf, size_t count)
174 return read_file(path, buf, count, NULL);
177 int write_debugfs_file(const char *subpath, const char *buf, size_t count)
183 return write_file(path, buf, count);