Lines Matching refs:local

79 static void proxtrans(char *cmd, char *local, char *remote);
86 hrtime_t t1, char *local, char *remote);
88 static char *gunique(char *local);
740 sendrequest(char *cmd, char *local, char *remote, int allowpipe) in sendrequest() argument
758 proxtrans(cmd, local, remote); in sendrequest()
782 if (strcmp(local, "-") == 0) in sendrequest()
784 else if (allowpipe && *local == '|') { in sendrequest()
786 fin = mypopen(local + 1, "r"); in sendrequest()
788 perror(local + 1); in sendrequest()
797 fin = fopen(local, "r"); in sendrequest()
799 perror(local); in sendrequest()
809 "%s: not a plain file.\n", local); in sendrequest()
832 perror(local); in sendrequest()
904 perror(local); in sendrequest()
947 perror(local); in sendrequest()
1001 ptransfer("sent", bytes, start, stop, local, remote); in sendrequest()
1031 ptransfer("sent", bytes, start, stop, local, remote); in sendrequest()
1049 recvrequest(char *cmd, char *local, char *remote, char *mode, int allowpipe) in recvrequest() argument
1067 proxtrans(cmd, local, remote); in recvrequest()
1088 if (local != NULL && in recvrequest()
1089 strcmp(local, "-") != 0 && in recvrequest()
1090 (*local != '|' || !allowpipe)) { in recvrequest()
1091 if (access(local, W_OK) < 0) { in recvrequest()
1092 char *dir = rindex(local, '/'); in recvrequest()
1096 perror(local); in recvrequest()
1101 if ((dir != NULL) && (dir != local)) in recvrequest()
1103 if (dir == local) in recvrequest()
1106 d = access(dir ? local : ".", W_OK); in recvrequest()
1107 if ((dir != NULL) && (dir != local)) in recvrequest()
1110 perror(local); in recvrequest()
1117 perror(local); in recvrequest()
1123 (local = gunique(local)) == NULL) { in recvrequest()
1128 } else if (runique && (local = gunique(local)) == NULL) { in recvrequest()
1200 if (local == NULL) { in recvrequest()
1202 } else if (strcmp(local, "-") == 0) { in recvrequest()
1204 } else if (allowpipe && *local == '|') { in recvrequest()
1206 fout = mypopen(local + 1, "w"); in recvrequest()
1208 perror(local+1); in recvrequest()
1213 fout = fopen(local, mode); in recvrequest()
1215 perror(local); in recvrequest()
1228 perror(local); in recvrequest()
1261 perror(local); in recvrequest()
1271 perror(local); in recvrequest()
1277 perror(local); in recvrequest()
1281 local); in recvrequest()
1288 perror(local); in recvrequest()
1337 perror(local); in recvrequest()
1351 ptransfer("received", bytes, start, stop, local, remote); in recvrequest()
1453 ptransfer("received", bytes, start, stop, local, remote); in recvrequest()
1722 hrtime_t t1, char *local, char *remote) in ptransfer() argument
1730 if (local && *local != '-') in ptransfer()
1731 (void) printf("local: %s ", local); in ptransfer()
1859 proxtrans(char *cmd, char *local, char *remote) in proxtrans() argument
1949 if (command("%s %s", cmd2, local) != PRELIM) in proxtrans()
1974 (void) printf("local: %s remote: %s\n", local, remote); in proxtrans()
1984 if (command("%s %s", cmd2, local) != PRELIM) { in proxtrans()
2061 if (command("%s %s", cmd2, local) != PRELIM) { in proxtrans()
2196 gunique(char *local) in gunique() argument
2199 char *cp = rindex(local, '/'); in gunique()
2205 d = access(cp ? local : ".", 2); in gunique()
2209 perror(local); in gunique()
2212 if (strlcpy(new, local, sizeof (new)) >= sizeof (new)) in gunique()
2214 local, strlen(local), sizeof (new)); in gunique()