Lines Matching defs:buf
206 * Populates 'buf' with the path and returns the length of the path on success,
209 static ssize_t get_node_path_locked(struct node* node, char* buf, size_t bufsize)
218 pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 2);
222 buf[pathlen++] = '/';
226 memcpy(buf + pathlen, name, namelen + 1); /* include trailing \0 */
235 * Populates 'buf' with the path and returns the actual name (within 'buf') on success,
239 char* buf, size_t bufsize, int search)
250 memcpy(buf, path, pathlen);
251 buf[pathlen] = '/';
252 actual = buf + pathlen + 1;
255 if (search && access(buf, F_OK)) {
387 char* buf, size_t bufsize)
390 if (node && get_node_path_locked(node, buf, bufsize) < 0) {