Lines Matching refs:call

109 struct	call_list	*Free_call_p = &Free_call; /* call free list 	*/
110 struct call_list *Priv_call; /* call save pending list */
180 static void clr_call(struct t_call *call);
483 /* set up free call list and pending connection lists */
523 * Following are some general queueing routines. The call list head contains
582 * remove a call from the head of queue
1075 struct t_call *call;
1086 call = current->c_cp;
1087 if (t_listen(fd, call) < 0) {
1089 clr_call(call);
1094 DEBUG((9, "incoming call seq # %d", call->sequence));
1133 struct t_call *call;
1140 call = current->c_cp;
1141 if (t_snddis(fd, call) < 0) {
1150 sprintf(scratch, "Incoming call while disabled: fd %d, seq %d", fd, call->sequence);
1152 clr_call(call);
1167 struct t_call *call;
1177 call = current->c_cp;
1180 sprintf(scratch, "No service bound to incoming fd %d: call disconnected", fd);
1182 t_snddis(fd, call);
1183 clr_call(call);
1191 t_snddis(fd, call);
1192 clr_call(call);
1197 DEBUG((9, "try to accept #%d", call->sequence));
1202 clr_call(call);
1207 if (t_accept(fd, Acceptfd, call) < 0) {
1214 logmessage("Incoming call during t_accept -- queueing current call");
1215 DEBUG((9, "save call #%d", call->sequence));
1226 clr_call(call);
1233 fd, dbp->dbf_svc_code, call->sequence,
1237 DEBUG((9, "Accepted call %d", call->sequence));
1267 /* clean up call, log error */
1272 /* clean up this call */
1273 clr_call(call);
1288 if (senviron(call)) {
1300 clr_call(call);
1493 senviron(call)
1494 struct t_call *call;
1510 if ((p = (char *)malloc(((call->addr.len)<<1) + 18)) == NULL)
1514 nlsaddr2c(p + strlen(p), call->addr.buf, (int)call->addr.len);
1518 if ((p = (char *)malloc(((call->opt.len)<<1) + 16)) == NULL)
1522 nlsaddr2c(p + strlen(p), call->opt.buf, (int)call->opt.len);
1544 if ((p = (char *)malloc(((call->udata.len)<<1) + 20)) == NULL)
1548 if ((int)call->udata.len >= 0)
1549 nlsaddr2c(p + strlen(p), call->udata.buf, (int)call->udata.len);
1604 * clr_call: clear out a call structure
1608 clr_call(struct t_call *call)
1610 call->sequence = 0;
1611 call->addr.len = 0;
1612 call->opt.len = 0;
1613 call->udata.len = 0;
1614 memset(call->addr.buf, 0, (int)call->addr.maxlen);
1615 memset(call->opt.buf, 0, (int)call->opt.maxlen);
1616 memset(call->udata.buf, 0, (int)call->udata.maxlen);
1621 * pitchcall: remove call from pending list
1629 DEBUG((9, "pitching call, sequence # is %d", discon->sequence));
1659 logmessage("received disconnect with no pending call");
1700 /* call stoa - convert from rfs address to netbuf */
1869 * unbind the address, close the file descriptor, and free call structs
1878 struct t_call *call;
1893 call = tmp->c_cp;
1894 t_snddis(dbp->dbf_fd, call);
1895 t_free((char *)call, T_CALL);
1899 /* delete free call structs we don't need */