Lines Matching defs:buf
518 ar_read(char *buf, int cnt)
533 if ((res = read(arfd, buf, cnt)) > 0) {
571 if ((res = read(arfd, buf, cnt)) > 0) {
601 ar_write(char *buf, int bsz)
613 if ((res = write(arfd, buf, bsz)) == bsz) {
1112 char buf[PAXPATHLEN+2];
1159 if ((tty_read(buf,sizeof(buf))<0) || !strcmp(buf,".")){
1167 if ((buf[0] == '\0') || (buf[1] != '\0')) {
1168 tty_prnt("%s unknown command, try again\n",buf);
1172 switch (buf[0]) {
1191 tty_prnt("%s unknown command, try again\n",buf);
1206 if ((tty_read(buf, sizeof(buf)) < 0) || !strcmp(buf, ".")) {
1213 if (buf[0] == '\0') {
1217 if (!strcmp(buf, "..")) {
1221 if (strlen(buf) > PAXPATHLEN) {
1229 if (ar_open(buf) >= 0) {
1231 if ((arcbuf = strdup(buf)) == NULL) {
1240 tty_prnt("Cannot open %s, try again\n", buf);