Home
last modified time | relevance | path

Searched refs:local_fd (Results 1 – 4 of 4) sorted by relevance

/external/toybox/toys/pending/
Dftpget.c197 static void transfer_file(int local_fd, int remote_fd) in transfer_file() argument
199 int len, rfd = (TT.isget)?remote_fd:local_fd, in transfer_file()
200 wfd = (TT.isget)?local_fd:remote_fd; in transfer_file()
208 int local_fd = -1, remote_fd; in get_file() local
215 local_fd = 1; //file descriptor will become stdout. in get_file()
227 if (local_fd == -1) { in get_file()
231 local_fd = xcreate((char *)l_filename, flags, 0666); in get_file()
233 transfer_file(local_fd, remote_fd); in get_file()
235 xclose(local_fd); in get_file()
243 int local_fd = 0, remote_fd; in put_file() local
[all …]
/external/openssh/
Dsftp-client.c1150 int local_fd = -1, write_error; in do_download() local
1213 local_fd = open(local_path, in do_download()
1215 if (local_fd == -1) { in do_download()
1222 if (fstat(local_fd, &st) == -1) { in do_download()
1238 if (local_fd != -1) in do_download()
1239 close(local_fd); in do_download()
1321 if ((lseek(local_fd, req->offset, SEEK_SET) == -1 || in do_download()
1322 atomicio(vwrite, local_fd, data, len) != len) && in do_download()
1387 ftruncate(local_fd, highwater); in do_download()
1406 if (preserve_flag && fchmod(local_fd, mode) == -1) in do_download()
[all …]
DChangeLog5816 bz#2171: don't leak local_fd on error; from Loganaden Velvindron @
/external/ppp/pppd/
Dsys-linux.c1996 int local_fd; in ppp_registered() local
2008 if (!get_pty(&mfd, &local_fd, slave, 0)) { in ppp_registered()
2016 if (ioctl(local_fd, TIOCSETD, &ppp_disc) < 0) { in ppp_registered()
2021 close(local_fd); in ppp_registered()