Lines Matching refs:buflen
33 static int getttyname_r (char *buf, size_t buflen,
39 getttyname_r (char *buf, size_t buflen, const struct __stat64_t64 *mytty, in getttyname_r() argument
63 if (needed > buflen) in getttyname_r()
93 __ttyname_r (int fd, char *buf, size_t buflen) in __ttyname_r() argument
109 if (buflen < sizeof ("/dev/pts/")) in __ttyname_r()
125 ssize_t ret = __readlink (__fd_to_filename (fd, &filename), buf, buflen - 1); in __ttyname_r()
156 buflen -= sizeof ("/dev/pts/") - 1; in __ttyname_r()
160 ret = getttyname_r (buf, buflen, &st, save, in __ttyname_r()
172 buflen += sizeof ("pts/") - 1; in __ttyname_r()
173 ret = getttyname_r (buf, buflen, &st, save, in __ttyname_r()
181 ret = getttyname_r (buf, buflen, &st, in __ttyname_r()