Lines Matching defs:bufsiz
83 static SizeT bufsiz = 0;
86 bufsiz = 500;
87 buf = VG_(malloc)("resolve_filename", bufsiz);
100 SSizeT res = VG_(readlink)(tmp, buf, bufsiz);
102 if (res == bufsiz) { // buffer too small; increase and retry
103 bufsiz += 500;
104 buf = VG_(realloc)("resolve_filename", buf, bufsiz);
107 vg_assert(bufsiz > res); // paranoia
641 SSizeT VG_(readlink) (const HChar* path, HChar* buf, SizeT bufsiz)
644 /* res = readlink( path, buf, bufsiz ); */
647 (UWord)path, (UWord)buf, bufsiz);
649 res = VG_(do_syscall3)(__NR_readlink, (UWord)path, (UWord)buf, bufsiz);
652 (UWord)buf, bufsiz);