Lines Matching refs:buf
9 static char buf[DIRSIZ+1]; in fmtname() local
20 memmove(buf, p, strlen(p)); in fmtname()
21 memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); in fmtname()
22 return buf; in fmtname()
28 char buf[512], *p; in ls() local
50 if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ in ls()
54 strcpy(buf, path); in ls()
55 p = buf+strlen(buf); in ls()
62 if(stat(buf, &st) < 0){ in ls()
63 printf(1, "ls: cannot stat %s\n", buf); in ls()
66 printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); in ls()