Searched defs:rp (Results 1 - 25 of 214) sorted by relevance

123456789

/freebsd-head/usr.sbin/lpr/common_source/
H A Drequest.c49 init_request(struct request *rp) argument
53 *rp = zero;
54 TAILQ_INIT(&rp->users);
55 TAILQ_INIT(&rp->jobids);
59 free_request(struct request *rp) argument
64 if (rp->logname)
65 free(rp->logname);
66 if (rp->authname)
67 free(rp->authname);
68 if (rp
[all...]
/freebsd-head/usr.bin/talk/
H A Dlook_up.c58 CTL_RESPONSE *rp = &response; local
66 if (!look_for_invite(rp))
74 if (rp->addr.sa_family != AF_INET)
76 (void)memcpy(&addr, &rp->addr.sa_family, sizeof(addr));
77 addr.sa_family = rp->addr.sa_family;
90 ctl_transact(his_machine_addr, msg, DELETE, rp);
104 look_for_invite(CTL_RESPONSE *rp) argument
107 ctl_transact(his_machine_addr, msg, LOOK_UP, rp);
109 switch (rp->answer) {
112 msg.id_num = htonl(rp
[all...]
H A Dctl_transact.c56 ctl_transact(struct in_addr target, CTL_MSG lmsg, int type, CTL_RESPONSE *rp) argument
95 cc = recv(ctl_sockt, (char *)rp, sizeof (*rp), 0);
102 } while (nready > 0 && (rp->vers != TALK_VERSION ||
103 rp->type != type));
104 } while (rp->vers != TALK_VERSION || rp->type != type);
105 rp->id_num = ntohl(rp->id_num);
106 rp
[all...]
/freebsd-head/contrib/traceroute/
H A Drip_output.c9 struct rawcb *rp = sotorawcb(so); local
12 short proto = rp->rcb_proto.sp_protocol;
51 if (rp->rcb_flags & RAW_LADDR) {
52 sin = (struct sockaddr_in *)&rp->rcb_laddr;
61 ip->ip_dst = ((struct sockaddr_in *)&rp->rcb_faddr)->sin_addr;
64 return (ip_output(m, rp->rcb_options, &rp->rcb_route,
67 return (ip_output(m, (struct mbuf *)0, &rp->rcb_route,
/freebsd-head/contrib/binutils/libiberty/
H A Dlrealpath.c85 const char *rp = realpath (filename, buf); local
86 if (rp == NULL)
87 rp = filename;
88 return strdup (rp);
97 char *rp = canonicalize_file_name (filename); local
98 if (rp == NULL)
101 return rp;
119 char *buf, *rp, *ret; local
123 rp = realpath (filename, buf);
124 ret = strdup (rp
[all...]
/freebsd-head/lib/libpathconv/
H A Dabs2rel.c50 char *rp; local
71 rp = result;
72 *rp++ = '.';
74 *rp++ = '/';
75 if (rp > endp)
77 *rp = 0;
85 rp = result;
88 if (rp + 3 > endp)
90 *rp++ = '.';
91 *rp
[all...]
H A Drel2abs.c50 char *rp; local
71 * rp points the last char.
73 rp = result + length - 1;
77 if (*rp == '/') {
79 *rp = 0;
81 rp++;
82 /* rp point NULL char */
87 *rp++ = '/';
88 if (rp > endp)
90 *rp
[all...]
/freebsd-head/lib/libc/rpc/
H A Dpmap_prot2.c95 xdr_pmaplist(XDR *xdrs, struct pmaplist **rp) argument
107 assert(rp != NULL);
112 more_elements = (bool_t)(*rp != NULL);
123 next = &((*rp)->pml_next);
124 if (! xdr_reference(xdrs, (caddr_t *)rp,
127 rp = (freeing) ? next : &((*rp)->pml_next);
137 xdr_pmaplist_ptr(XDR *xdrs, struct pmaplist *rp) argument
139 return xdr_pmaplist(xdrs, (struct pmaplist **)(void *)rp);
/freebsd-head/sys/net/
H A Draw_cb.c82 struct rawcb *rp = sotorawcb(so); local
91 KASSERT(rp != NULL, ("raw_attach: rp == NULL"));
96 rp->rcb_socket = so;
97 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family;
98 rp->rcb_proto.sp_protocol = proto;
100 LIST_INSERT_HEAD(&V_rawcb_list, rp, list);
109 raw_detach(struct rawcb *rp) argument
111 struct socket *so = rp->rcb_socket;
113 KASSERT(so->so_pcb == rp, ("raw_detac
[all...]
/freebsd-head/crypto/openssl/crypto/dsa/
H A Ddsa_sign.c20 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) argument
22 return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
/freebsd-head/contrib/byacc/
H A Dwarshall.c11 unsigned *rp; local
33 rp = rowi;
36 *rowj++ |= *rp++;
61 unsigned *rp; local
70 rp = R;
71 while (rp < relend)
73 *rp |= (unsigned)(1 << i);
77 rp++;
80 rp += rowsize;
/freebsd-head/contrib/nvi/ex/
H A Dex_at.c43 RANGE *rp; local
87 CALLOC_RET(sp, rp, RANGE *, 1, sizeof(RANGE));
88 rp->start = cmdp->addr1.lno;
90 rp->stop = rp->start;
93 rp->stop = cmdp->addr2.lno;
96 TAILQ_INSERT_HEAD(ecp->rq, rp, q);
/freebsd-head/contrib/ntp/sntp/libopts/compat/
H A Dsnprintf.c35 char *rp; local
37 rp = vsprintf(str, fmt, ap);
39 rval = strlen(rp);
/freebsd-head/libexec/talkd/
H A Dprint.c75 print_response(const char *cp, CTL_RESPONSE *rp) argument
80 if (rp->type > NTYPES) {
81 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type);
84 tp = types[rp->type];
85 if (rp->answer > NANSWERS) {
86 (void)snprintf(abuf, sizeof(abuf), "answer %d", rp->answer);
89 ap = answers[rp->answer];
90 syslog(LOG_DEBUG, "%s: %s: %s, id %d", cp, tp, ap, ntohl(rp->id_num));
H A Dprocess.c65 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) argument
70 rp->vers = TALK_VERSION;
71 rp->type = mp->type;
72 rp->id_num = htonl(0);
75 rp->answer = BADVERSION;
83 rp->answer = BADADDR;
90 rp->answer = BADCTLADDR;
96 rp->answer = FAILED;
105 do_announce(mp, rp);
111 rp
141 do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) argument
[all...]
/freebsd-head/sys/rpc/
H A Drpcb_prot.c116 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) argument
130 more_elements = (bool_t)(*rp != NULL);
142 if (freeing && *rp)
143 next = (*rp)->rpcb_next;
144 if (! xdr_reference(xdrs, (caddr_t *)rp,
150 rp = &next_copy;
156 } else if (*rp) {
157 rp = &((*rp)->rpcb_next);
169 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp)
200 xdr_rpcb_entry_list_ptr(XDR *xdrs, rpcb_entry_list_ptr *rp) argument
[all...]
/freebsd-head/usr.sbin/bluetooth/hccontrol/
H A Dstatus.c46 ng_hci_read_failed_contact_cntr_rp rp; local
64 n = sizeof(rp);
68 (char *) &rp, &n) == ERROR)
71 if (rp.status != 0x00) {
73 hci_status2str(rp.status), rp.status);
77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle));
78 fprintf(stdout, "Failed contact counter: %d\n", le16toh(rp.counter));
88 ng_hci_reset_failed_contact_cntr_rp rp; local
106 n = sizeof(rp);
127 ng_hci_get_link_quality_rp rp; local
169 ng_hci_read_rssi_rp rp; local
[all...]
H A Dinfo.c45 ng_hci_read_local_ver_rp rp; local
48 n = sizeof(rp);
50 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR)
53 if (rp.status != 0x00) {
55 hci_status2str(rp.status), rp.status);
59 rp.manufacturer = le16toh(rp.manufacturer);
62 hci_ver2str(rp.hci_version), rp
79 ng_hci_read_local_commands_rp rp; local
111 ng_hci_read_local_features_rp rp; local
140 ng_hci_read_buffer_size_rp rp; local
171 ng_hci_read_country_code_rp rp; local
196 ng_hci_read_bdaddr_rp rp; local
[all...]
H A Dlink_policy.c46 ng_hci_role_discovery_rp rp; local
65 n = sizeof(rp);
69 (char *) &rp, &n) == ERROR)
72 if (rp.status != 0x00) {
74 hci_status2str(rp.status), rp.status);
78 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle));
80 (rp.role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", rp.role);
162 ng_hci_read_link_policy_settings_rp rp; local
205 ng_hci_write_link_policy_settings_rp rp; local
[all...]
H A Dsend_recv.c47 hci_request(int s, int opcode, char const *cp, int cp_size, char *rp, int *rp_size) argument
54 assert(rp != NULL);
102 memcpy(rp, buffer + sizeof(*e) + sizeof(*cc), *rp_size);
115 *rp = cs->status;
127 hci_simple_request(int s, int opcode, char *rp, int *rp_size) argument
129 return (hci_request(s, opcode, NULL, 0, rp, rp_size));
/freebsd-head/lib/libifconfig/
H A Dlibifconfig_lagg.c58 const char *name, struct lagg_reqport *rp)
60 strlcpy(rp->rp_ifname, name, sizeof(rp->rp_portname));
61 strlcpy(rp->rp_portname, name, sizeof(rp->rp_portname));
63 return (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGGPORT, rp));
57 ifconfig_lagg_get_laggport_status(ifconfig_handle_t *h, const char *name, struct lagg_reqport *rp) argument
/freebsd-head/usr.bin/tftp/
H A Dtftp.c74 struct tftphdr *rp; local
84 rp = (struct tftphdr *)recvbuffer;
136 if (rp->th_opcode == ERROR) {
145 if (rp->th_opcode == OACK) {
152 parse_options(peer, rp->th_stuff, n + 2);
176 struct tftphdr *rp; local
184 rp = (struct tftphdr *)recvbuffer;
236 if (rp->th_opcode == ERROR) {
237 tftp_log(LOG_ERR, "Error code %d: %s", rp->th_code, rp
[all...]
/freebsd-head/crypto/openssl/crypto/ec/
H A Decdsa_sign.c20 const BIGNUM *kinv, const BIGNUM *rp,
24 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey);
46 BIGNUM **rp)
49 return eckey->meth->sign_setup(eckey, ctx_in, kinvp, rp);
19 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) argument
45 ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) argument
/freebsd-head/contrib/nvi/common/
H A Dput.c41 MARK *rp,
94 rp->lno = 1;
95 rp->cno = 0;
103 rp->lno = lno + 1;
108 rp->cno = 0;
109 (void)nonblank(sp, rp->lno, &rp->cno);
158 rp->lno = lno;
159 rp->cno = len == 0 ? 0 : sp->cno + (append && tp->len ? 1 : 0);
36 put( SCR *sp, CB *cbp, CHAR_T *namep, MARK *cp, MARK *rp, int append) argument
/freebsd-head/contrib/ntp/lib/isc/win32/
H A Dthread.c45 isc_thread_join(isc_thread_t thread, isc_threadresult_t *rp) { argument
54 if (rp != NULL) {
59 *rp = threadrc;

Completed in 110 milliseconds

123456789