Lines Matching refs:rem
83 int errs, rem;
170 rem = STDIN_FILENO; /* XXX */
190 rem = -1;
263 if (rem == -1) {
268 rem = rcmd_af(&host, port,
272 if (rem < 0)
276 if (setsockopt(rem, IPPROTO_IP, IP_TOS,
330 rem = rcmd_af(&host, port, pwd->pw_name, suser, bp, 0,
333 if (rem < 0) {
340 if (setsockopt(rem, IPPROTO_IP, IP_TOS, &tos,
346 (void)close(rem);
347 rem = -1;
394 (void)write(rem, buf, strlen(buf));
401 (void)write(rem, buf, strlen(buf));
421 (void)write(rem, bp->buf, amt);
423 result = write(rem, bp->buf, amt);
431 (void)write(rem, "", 1);
458 (void)write(rem, path, strlen(path));
466 (void)write(rem, path, strlen(path));
485 (void)write(rem, "E\n", 2);
519 (void)write(rem, "", 1);
524 if (read(rem, cp, 1) <= 0)
529 if (read(rem, &ch, sizeof(ch)) != sizeof(ch))
545 (void)write(rem, "", 1);
568 (void)write(rem, "", 1);
644 (void)write(rem, "", 1);
657 j = read(rem, cp, amt);
714 (void)write(rem, "", 1);
730 if (read(rem, &resp, sizeof(resp)) != sizeof(resp))
743 if (read(rem, &ch, sizeof(ch)) != sizeof(ch))
776 if (fp == NULL && !(fp = fdopen(rem, "w")))