Lines Matching refs:local

76 static void proxtrans(char *cmd, char *local, char *remote);
83 hrtime_t t1, char *local, char *remote);
85 static char *gunique(char *local);
744 sendrequest(char *cmd, char *local, char *remote, int allowpipe) in sendrequest() argument
762 proxtrans(cmd, local, remote); in sendrequest()
786 if (strcmp(local, "-") == 0) in sendrequest()
788 else if (allowpipe && *local == '|') { in sendrequest()
790 fin = mypopen(local + 1, "r"); in sendrequest()
792 perror(local + 1); in sendrequest()
801 fin = fopen(local, "r"); in sendrequest()
803 perror(local); in sendrequest()
813 "%s: not a plain file.\n", local); in sendrequest()
836 perror(local); in sendrequest()
908 perror(local); in sendrequest()
951 perror(local); in sendrequest()
1005 ptransfer("sent", bytes, start, stop, local, remote); in sendrequest()
1035 ptransfer("sent", bytes, start, stop, local, remote); in sendrequest()
1053 recvrequest(char *cmd, char *local, char *remote, char *mode, int allowpipe) in recvrequest() argument
1071 proxtrans(cmd, local, remote); in recvrequest()
1092 if (local != NULL && in recvrequest()
1093 strcmp(local, "-") != 0 && in recvrequest()
1094 (*local != '|' || !allowpipe)) { in recvrequest()
1095 if (access(local, W_OK) < 0) { in recvrequest()
1096 char *dir = rindex(local, '/'); in recvrequest()
1100 perror(local); in recvrequest()
1105 if ((dir != NULL) && (dir != local)) in recvrequest()
1107 if (dir == local) in recvrequest()
1110 d = access(dir ? local : ".", W_OK); in recvrequest()
1111 if ((dir != NULL) && (dir != local)) in recvrequest()
1114 perror(local); in recvrequest()
1121 perror(local); in recvrequest()
1127 (local = gunique(local)) == NULL) { in recvrequest()
1132 } else if (runique && (local = gunique(local)) == NULL) { in recvrequest()
1204 if (local == NULL) { in recvrequest()
1206 } else if (strcmp(local, "-") == 0) { in recvrequest()
1208 } else if (allowpipe && *local == '|') { in recvrequest()
1210 fout = mypopen(local + 1, "w"); in recvrequest()
1212 perror(local+1); in recvrequest()
1217 fout = fopen(local, mode); in recvrequest()
1219 perror(local); in recvrequest()
1232 perror(local); in recvrequest()
1265 perror(local); in recvrequest()
1275 perror(local); in recvrequest()
1281 perror(local); in recvrequest()
1285 "file\n", local); in recvrequest()
1292 perror(local); in recvrequest()
1341 perror(local); in recvrequest()
1355 ptransfer("received", bytes, start, stop, local, remote); in recvrequest()
1457 ptransfer("received", bytes, start, stop, local, remote); in recvrequest()
1727 hrtime_t t1, char *local, char *remote) in ptransfer() argument
1735 if (local && *local != '-') in ptransfer()
1736 (void) printf("local: %s ", local); in ptransfer()
1864 proxtrans(char *cmd, char *local, char *remote) in proxtrans() argument
1954 if (command("%s %s", cmd2, local) != PRELIM) in proxtrans()
1979 (void) printf("local: %s remote: %s\n", local, remote); in proxtrans()
1989 if (command("%s %s", cmd2, local) != PRELIM) { in proxtrans()
2066 if (command("%s %s", cmd2, local) != PRELIM) { in proxtrans()
2201 gunique(char *local) in gunique() argument
2204 char *cp = rindex(local, '/'); in gunique()
2210 d = access(cp ? local : ".", 2); in gunique()
2214 perror(local); in gunique()
2217 if (strlcpy(new, local, sizeof (new)) >= sizeof (new)) in gunique()
2219 local, strlen(local), sizeof (new)); in gunique()