Lines Matching full:tcp
80 printstrbuf(tcp, sbp, getting)
81 struct tcb *tcp;
92 printstr(tcp, (unsigned long) sbp->buf, sbp->len);
98 printstrbufarg(tcp, arg, getting)
99 struct tcb *tcp;
107 else if (umove(tcp, arg, &buf) < 0)
110 printstrbuf(tcp, &buf, getting);
115 sys_putmsg(tcp)
116 struct tcb *tcp;
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)
135 struct tcb *tcp;
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)
199 struct tcb *tcp;
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)
221 struct tcb *tcp;
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)
307 if (entering(tcp)) {
308 nfds = tcp->u_arg[1];
310 start = tcp->u_arg[0];
314 tcp->u_arg[0], nfds);
317 if (abbrev(tcp)) {
332 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) {
342 printfd(tcp, fds.fd);
358 if (syserror(tcp))
360 if (tcp->u_rval == 0) {
361 tcp->auxstr = "Timeout";
365 nfds = tcp->u_arg[1];
367 start = tcp->u_arg[0];
371 if (abbrev(tcp)) {
383 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) {
425 sprint_timespec(str + strlen(str), tcp, pts);
433 tcp->auxstr = outstr;
439 sys_poll(struct tcb *tcp)
441 int rc = decode_poll(tcp, 0);
442 if (entering(tcp)) {
444 if (tcp->u_arg[2] == INFTIM)
448 tprintf("%ld", tcp->u_arg[2]);
455 sys_ppoll(struct tcb *tcp)
457 int rc = decode_poll(tcp, tcp->u_arg[2]);
458 if (entering(tcp)) {
459 print_timespec(tcp, tcp->u_arg[2]);
461 print_sigset(tcp, tcp->u_arg[3], 0);
462 tprintf(", %lu", tcp->u_arg[4]);
470 sys_poll(tcp)
471 struct tcb *tcp;
611 print_xti_optmgmt (tcp, addr, len)
612 struct tcb *tcp;
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)
666 struct tcb *tcp;
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)
757 struct tcb *tcp;
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)
1050 if (umove(tcp, arg, &si) < 0) {
1051 if (entering(tcp))
1055 if (entering(tcp)) {
1077 if (entering(tcp))
1082 if (in_and_out || entering(tcp))
1089 if (entering(tcp)) {
1090 print_transport_message (tcp,
1095 print_transport_message (tcp,
1105 if (entering(tcp)) {
1106 print_transport_message (tcp,
1111 print_transport_message (tcp,
1121 if (entering(tcp)) {
1122 print_transport_message (tcp,
1127 print_transport_message (tcp,
1137 if (entering(tcp)) {
1138 print_transport_message (tcp,
1143 print_transport_message (tcp,
1151 if (entering(tcp))
1153 if (umove(tcp, (int) si.ic_dp, &udata) < 0)
1168 printstr(tcp, (long) si.ic_dp, si.ic_len);
1171 if (exiting(tcp)) {
1173 if (timod && tcp->u_rval && !syserror(tcp)) {
1174 tcp->auxstr = xlookup (tli_errors, tcp->u_rval);
1183 stream_ioctl(tcp, code, arg)
1184 struct tcb *tcp;
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);