Lines Matching refs:bufs
189 realpath_stk (const char *name, char *resolved, struct realpath_bufs *bufs) in realpath_stk() argument
214 char *rname = bufs->rname.data; in realpath_stk()
224 while (!__getcwd (bufs->rname.data, bufs->rname.length)) in realpath_stk()
231 if (!scratch_buffer_grow (&bufs->rname)) in realpath_stk()
233 rname = bufs->rname.data; in realpath_stk()
287 while (rname + bufs->rname.length - dest in realpath_stk()
291 if (!scratch_buffer_grow_preserve (&bufs->rname)) in realpath_stk()
293 rname = bufs->rname.data; in realpath_stk()
304 buf = bufs->link.data; in realpath_stk()
305 idx_t bufsize = bufs->link.length; in realpath_stk()
309 if (!scratch_buffer_grow (&bufs->link)) in realpath_stk()
322 char *extra_buf = bufs->extra.data; in realpath_stk()
332 while (bufs->extra.length <= len + n) in realpath_stk()
334 if (!scratch_buffer_grow_preserve (&bufs->extra)) in realpath_stk()
336 extra_buf = bufs->extra.data; in realpath_stk()
410 return __strdup (bufs->rname.data); in realpath_stk()
428 struct realpath_bufs bufs; in __realpath() local
429 scratch_buffer_init (&bufs.rname); in __realpath()
430 scratch_buffer_init (&bufs.extra); in __realpath()
431 scratch_buffer_init (&bufs.link); in __realpath()
432 char *result = realpath_stk (name, resolved, &bufs); in __realpath()
433 scratch_buffer_free (&bufs.link); in __realpath()
434 scratch_buffer_free (&bufs.extra); in __realpath()
435 scratch_buffer_free (&bufs.rname); in __realpath()