Lines Matching refs:rem
79 static int rem; variable
220 (void) desrcpwrite(rem, "", 1); in main()
418 rem = -1; in main()
600 if (rem == -1) { in toremote()
657 rem = sock; in toremote()
718 rem = rcmd_af(&host, portnumber, in toremote()
722 if (rem < 0) in toremote()
730 if (read(rem, &resp, sizeof (resp)) in toremote()
738 (void) close(rem); in toremote()
740 rem = rcmd_af(&host, portnumber, in toremote()
745 if (rem < 0) in toremote()
748 if (read(rem, &resp, in toremote()
765 (void) close(rem); in toremote()
767 rem = rcmd_af(&host, in toremote()
773 if (rem < 0) in toremote()
878 rem = sock; in tolocal()
928 rem = rcmd_af(&host, portnumber, pwd->pw_name, suser, in tolocal()
931 if (rem < 0) { in tolocal()
942 if (read(rem, &resp, sizeof (resp)) != sizeof (resp)) in tolocal()
953 (void) close(rem); in tolocal()
954 rem = rcmd_af(&host, portnumber, pwd->pw_name, in tolocal()
957 if (rem < 0) { in tolocal()
962 if (read(rem, &resp, in tolocal()
975 (void) close(rem); in tolocal()
977 rem = rcmd_af(&host, portnumber, in tolocal()
980 if (rem < 0) { in tolocal()
990 (void) close(rem); in tolocal()
991 rem = -1; in tolocal()
1211 (void) desrcpwrite(rem, buf, strlen(buf)); in source()
1220 (void) desrcpwrite(rem, buf, strlen(buf)); in source()
1248 (void) desrcpwrite(rem, bp->buf, amt); in source()
1252 (void) desrcpwrite(rem, "", 1); in source()
1261 cnt = sendfile(rem, f, &off, amt); in source()
1280 (void) setsockopt(rem, SOL_SOCKET, SO_LINGER, in source()
1289 (void) close(rem); in source()
1290 rem = -1; in source()
1292 (void) write(rem, "", 1); in source()
1321 (void) desrcpwrite(rem, path, strlen(path)); in rsource()
1329 (void) desrcpwrite(rem, path, strlen(path)); in rsource()
1362 (void) desrcpwrite(rem, "E\n", 2); in rsource()
1372 if (desrcpread(rem, &resp, 1) != 1) in response()
1384 if (desrcpread(rem, &ch, sizeof (ch)) != sizeof (ch)) in response()
1441 (void) desrcpwrite(rem, "", 1); in sink()
1447 if (desrcpread(rem, cp, 1) <= 0) { in sink()
1456 if (desrcpread(rem, &ch, sizeof (ch)) != sizeof (ch)) in sink()
1472 (void) desrcpwrite(rem, "", 1); in sink()
1496 (void) desrcpwrite(rem, "", 1); in sink()
1615 (void) desrcpwrite(rem, "", 1); in sink()
1643 j = desrcpread(rem, cp, amt); in sink()
1703 (void) desrcpwrite(rem, "", 1); in sink()
1908 (void) desrcpwrite(rem, buf, strlen(buf)); in sendacl()
1926 (void) desrcpwrite(rem, buf, strlen(buf)); in sendacl()
1927 (void) desrcpwrite(rem, acltext, strlen(acltext)); in sendacl()
1953 if (desrcpread(rem, cp, 1) <= 0) in getaclinfo()
1968 if (desrcpread(rem, &ch, sizeof (ch)) != sizeof (ch)) { in getaclinfo()
2025 j = desrcpread(rem, tp, aclsize); in recvacl()
2057 (void) desrcpwrite(rem, "", 1); in recvacl()
2140 if (krb5_read_message(bsd_context, (krb5_pointer) &rem, &pname_data)) in answer_auth()
2143 if (krb5_read_message(bsd_context, (krb5_pointer) &rem, in answer_auth()
2170 if (krb5_write_message(bsd_context, (krb5_pointer) & rem, &msg)) { in answer_auth()
2210 rem = -1; in try_normal_rcp()
2266 (void) desrcpwrite(rem, buf, strlen(buf)); in error()