Lines Matching refs:path
56 static int do_stat(int s, const char *path)
63 if(lstat(path, &st)) {
76 static int do_list(int s, const char *path)
87 len = strlen(path);
88 memcpy(tmp, path, len);
94 d = opendir(path);
151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer)
157 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode);
159 mkdirs(path);
160 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode);
163 fd = adb_open_mode(path, O_WRONLY, mode);
198 adb_unlink(path);
210 utime(path, &u);
222 adb_unlink(path);
227 static int handle_send_link(int s, char *path, char *buffer)
249 ret = symlink(buffer, path);
251 mkdirs(path);
252 ret = symlink(buffer, path);
276 static int do_send(int s, char *path, char *buffer)
282 tmp = strrchr(path,',');
299 adb_unlink(path);
304 ret = handle_send_link(s, path, buffer);
313 ret = handle_send_file(s, path, mode, buffer);
319 static int do_recv(int s, const char *path, char *buffer)
324 fd = adb_open(path, O_RDONLY);