Searched refs:local_fd (Results 1 – 2 of 2) sorted by relevance
/external/openssh/ |
D | sftp-client.c | 993 int local_fd, status = 0, write_error; in do_download() local 1050 local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC, in do_download() 1052 if (local_fd == -1) { in do_download() 1132 if ((lseek(local_fd, req->offset, SEEK_SET) == -1 || in do_download() 1133 atomicio(vwrite, local_fd, data, len) != len) && in do_download() 1202 if (pflag && fchmod(local_fd, mode) == -1) in do_download() 1218 close(local_fd); in do_download() 1337 int local_fd; in do_upload() local 1358 if ((local_fd = open(local_path, O_RDONLY, 0)) == -1) { in do_upload() 1363 if (fstat(local_fd, &sb) == -1) { in do_upload() [all …]
|
/external/ppp/pppd/ |
D | sys-linux.c | 1964 int local_fd; in ppp_registered() local 1976 if (!get_pty(&mfd, &local_fd, slave, 0)) { in ppp_registered() 1984 if (ioctl(local_fd, TIOCSETD, &ppp_disc) < 0) { in ppp_registered() 1989 close(local_fd); in ppp_registered()
|