Lines Matching refs:remote_fd
59 static int remote_fd; variable
97 remote_fd = accept(sock_fd, (struct sockaddr *) &sockaddr, &tmp); in do_tcp()
98 if (remote_fd == -1) { in do_tcp()
111 setsockopt(remote_fd, IPPROTO_TCP, TCP_NODELAY, in do_tcp()
135 close(remote_fd); in gx_remote_open()
140 save_fcntl_flags = fcntl(remote_fd, F_GETFL, 0); in gx_remote_open()
141 fcntl(remote_fd, F_SETFL, save_fcntl_flags | FASYNC); in gx_remote_open()
143 fcntl (remote_fd, F_SETOWN, getpid ()); in gx_remote_open()
152 close(remote_fd); in gx_remote_close()
168 bufcnt = read(remote_fd, buf, sizeof (buf)); in readchar()
227 if (write(remote_fd, "-", 1) != 1) { in gx_getpkt()
236 if (write(remote_fd, "+", 1) != 1) { in gx_getpkt()
303 if (write(remote_fd, buf2, p - buf2) != p - buf2) { in gx_putpkt()
311 cc = read(remote_fd, buf3, 1); in gx_putpkt()