• Home
  • Raw
  • Download

Lines Matching refs:tcp

80 printstrbuf(tcp, sbp, getting)  in printstrbuf()  argument
81 struct tcb *tcp; in printstrbuf()
92 printstr(tcp, (unsigned long) sbp->buf, sbp->len);
98 printstrbufarg(tcp, arg, getting) in printstrbufarg() argument
99 struct tcb *tcp; in printstrbufarg()
107 else if (umove(tcp, arg, &buf) < 0)
110 printstrbuf(tcp, &buf, getting);
115 sys_putmsg(tcp) in sys_putmsg() argument
116 struct tcb *tcp; in sys_putmsg()
120 if (entering(tcp)) {
122 tprintf("%ld, ", tcp->u_arg[0]);
125 printstrbufarg(tcp, tcp->u_arg[i], 0);
127 printflags(msgflags, tcp->u_arg[3], "RS_???");
134 sys_getmsg(tcp) in sys_getmsg() argument
135 struct tcb *tcp; in sys_getmsg()
139 if (entering(tcp)) {
141 tprintf("%lu, ", tcp->u_arg[0]);
143 if (syserror(tcp)) {
145 tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
150 printstrbufarg(tcp, tcp->u_arg[i], 1);
152 if (tcp->u_arg[3] == 0)
154 else if (umove(tcp, tcp->u_arg[3], &flags) < 0)
162 switch (tcp->u_rval) {
164 tcp->auxstr = "MORECTL";
167 tcp->auxstr = "MORECTL|MOREDATA";
170 tcp->auxstr = "MORECTL";
173 tcp->auxstr = NULL;
198 sys_putpmsg(tcp) in sys_putpmsg() argument
199 struct tcb *tcp; in sys_putpmsg()
203 if (entering(tcp)) {
205 tprintf("%ld, ", tcp->u_arg[0]);
208 printstrbufarg(tcp, tcp->u_arg[i], 0);
210 tprintf("%ld, ", tcp->u_arg[3]);
212 printflags(pmsgflags, tcp->u_arg[4], "MSG_???");
220 sys_getpmsg(tcp) in sys_getpmsg() argument
221 struct tcb *tcp; in sys_getpmsg()
225 if (entering(tcp)) {
227 tprintf("%lu, ", tcp->u_arg[0]);
229 if (syserror(tcp)) {
230 tprintf("%#lx, %#lx, %#lx, %#lx", tcp->u_arg[1],
231 tcp->u_arg[2], tcp->u_arg[3], tcp->u_arg[4]);
236 printstrbufarg(tcp, tcp->u_arg[i], 1);
238 printnum(tcp, tcp->u_arg[3], "%d");
241 if (tcp->u_arg[4] == 0)
243 else if (umove(tcp, tcp->u_arg[4], &flags) < 0)
251 switch (tcp->u_rval) {
253 tcp->auxstr = "MORECTL";
256 tcp->auxstr = "MORECTL|MOREDATA";
259 tcp->auxstr = "MORECTL";
262 tcp->auxstr = NULL;
300 decode_poll(struct tcb *tcp, long pts) in decode_poll() argument
307 if (entering(tcp)) { in decode_poll()
308 nfds = tcp->u_arg[1]; in decode_poll()
310 start = tcp->u_arg[0]; in decode_poll()
314 tcp->u_arg[0], nfds); in decode_poll()
317 if (abbrev(tcp)) { in decode_poll()
332 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) { in decode_poll()
342 printfd(tcp, fds.fd); in decode_poll()
358 if (syserror(tcp)) in decode_poll()
360 if (tcp->u_rval == 0) { in decode_poll()
361 tcp->auxstr = "Timeout"; in decode_poll()
365 nfds = tcp->u_arg[1]; in decode_poll()
367 start = tcp->u_arg[0]; in decode_poll()
371 if (abbrev(tcp)) { in decode_poll()
383 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) { in decode_poll()
425 sprint_timespec(str + strlen(str), tcp, pts); in decode_poll()
433 tcp->auxstr = outstr; in decode_poll()
439 sys_poll(struct tcb *tcp) in sys_poll() argument
441 int rc = decode_poll(tcp, 0); in sys_poll()
442 if (entering(tcp)) { in sys_poll()
444 if (tcp->u_arg[2] == INFTIM) in sys_poll()
448 tprintf("%ld", tcp->u_arg[2]); in sys_poll()
455 sys_ppoll(struct tcb *tcp) in sys_ppoll() argument
457 int rc = decode_poll(tcp, tcp->u_arg[2]); in sys_ppoll()
458 if (entering(tcp)) { in sys_ppoll()
459 print_timespec(tcp, tcp->u_arg[2]); in sys_ppoll()
461 print_sigset(tcp, tcp->u_arg[3], 0); in sys_ppoll()
462 tprintf(", %lu", tcp->u_arg[4]); in sys_ppoll()
470 sys_poll(tcp) in sys_poll() argument
471 struct tcb *tcp; in sys_poll()
611 print_xti_optmgmt (tcp, addr, len) in print_xti_optmgmt() argument
612 struct tcb *tcp; in print_xti_optmgmt()
620 if (umove(tcp, addr, &hdr) < 0) break;
646 printnum (tcp, addr, "%d");
648 printstr (tcp, addr, hdr.len);
656 printstr (tcp, addr, len);
665 print_optmgmt (tcp, addr, len) in print_optmgmt() argument
666 struct tcb *tcp; in print_optmgmt()
673 print_sock_optmgmt (tcp, addr, len);
675 print_xti_optmgmt (tcp, addr, len);
677 printstr (tcp, addr, len);
756 print_transport_message (tcp, expect, addr, len) in print_transport_message() argument
757 struct tcb *tcp; in print_transport_message()
767 if (umove (tcp, addr, &m.type) < 0) goto dump;
772 if (umove (tcp, addr, &m.struct) < 0) goto dump;\
798 print (tcp, \
1021 printstr(tcp, addr, len);
1038 static int internal_stream_ioctl(struct tcb *tcp, int arg) in internal_stream_ioctl() argument
1050 if (umove(tcp, arg, &si) < 0) { in internal_stream_ioctl()
1051 if (entering(tcp)) in internal_stream_ioctl()
1055 if (entering(tcp)) { in internal_stream_ioctl()
1077 if (entering(tcp)) in internal_stream_ioctl()
1082 if (in_and_out || entering(tcp)) in internal_stream_ioctl()
1089 if (entering(tcp)) { in internal_stream_ioctl()
1090 print_transport_message (tcp, in internal_stream_ioctl()
1095 print_transport_message (tcp, in internal_stream_ioctl()
1105 if (entering(tcp)) { in internal_stream_ioctl()
1106 print_transport_message (tcp, in internal_stream_ioctl()
1111 print_transport_message (tcp, in internal_stream_ioctl()
1121 if (entering(tcp)) { in internal_stream_ioctl()
1122 print_transport_message (tcp, in internal_stream_ioctl()
1127 print_transport_message (tcp, in internal_stream_ioctl()
1137 if (entering(tcp)) { in internal_stream_ioctl()
1138 print_transport_message (tcp, in internal_stream_ioctl()
1143 print_transport_message (tcp, in internal_stream_ioctl()
1151 if (entering(tcp)) in internal_stream_ioctl()
1153 if (umove(tcp, (int) si.ic_dp, &udata) < 0) in internal_stream_ioctl()
1168 printstr(tcp, (long) si.ic_dp, si.ic_len); in internal_stream_ioctl()
1171 if (exiting(tcp)) { in internal_stream_ioctl()
1173 if (timod && tcp->u_rval && !syserror(tcp)) { in internal_stream_ioctl()
1174 tcp->auxstr = xlookup (tli_errors, tcp->u_rval); in internal_stream_ioctl()
1183 stream_ioctl(tcp, code, arg) in stream_ioctl() argument
1184 struct tcb *tcp; in stream_ioctl()
1203 return internal_stream_ioctl(tcp, arg);
1204 if (entering(tcp))
1213 printpath(tcp, arg);
1226 if (umove(tcp, arg, &bi) < 0)
1242 if (syserror(tcp))
1245 if (umove(tcp, arg, &val) < 0)
1253 if (syserror(tcp) || !arg)
1255 if (umove(tcp, arg, &sp) < 0) {
1260 printstrbuf(tcp, &sp.ctlbuf, 1);
1262 printstrbuf(tcp, &sp.databuf, 1);
1275 if (syserror(tcp))
1278 if (umove(tcp, arg, &val) < 0)
1298 if (syserror(tcp))
1301 printnum(tcp, arg, "%d");
1305 if (syserror(tcp) || !arg)
1307 if (umove(tcp, arg, &sfi) < 0) {
1312 printstrbuf(tcp, &sfi.ctlbuf, 1);
1314 printstrbuf(tcp, &sfi.databuf, 1);
1329 if (syserror(tcp))
1332 if (umove(tcp, arg, &val) < 0)
1355 if (syserror(tcp) || !arg)
1357 if (umove(tcp, arg, &srf) < 0) {
1366 if (syserror(tcp))
1372 if (umove(tcp, arg, &sl) < 0) {
1377 for (i = 0; i < tcp->u_rval; i++) {
1380 printpath(tcp, (int) sl.sl_modlist[i].l_name);