• Home
  • Raw
  • Download

Lines Matching refs:tcp

76 extern void printsigevent(struct tcb *tcp, long arg);
167 int sys_msgget(tcp) in sys_msgget() argument
168 struct tcb *tcp; in sys_msgget()
170 if (entering(tcp)) {
171 if (tcp->u_arg[0])
172 tprintf("%#lx", tcp->u_arg[0]);
176 if (printflags(resource_flags, tcp->u_arg[1] & ~0777, NULL) != 0)
178 tprintf("%#lo", tcp->u_arg[1] & 0777);
192 indirect_ipccall(tcp) in indirect_ipccall() argument
193 struct tcb *tcp; in indirect_ipccall()
200 return tcp->scno < 1024; /* ia32 emulation syscalls are low */
209 int sys_msgctl(tcp) in sys_msgctl() argument
210 struct tcb *tcp; in sys_msgctl()
212 if (entering(tcp)) {
213 tprintf("%lu, ", tcp->u_arg[0]);
214 PRINTCTL(msgctl_flags, tcp->u_arg[1], "MSG_???");
215 tprintf(", %#lx", tcp->u_arg[indirect_ipccall(tcp) ? 3 : 2]);
221 tprint_msgsnd(struct tcb *tcp, long addr, unsigned long count, in tprint_msgsnd() argument
226 if (umove(tcp, addr, &mtype) < 0) { in tprint_msgsnd()
230 printstr(tcp, addr + sizeof(mtype), count); in tprint_msgsnd()
237 int sys_msgsnd(struct tcb *tcp) in sys_msgsnd() argument
239 if (entering(tcp)) { in sys_msgsnd()
240 tprintf("%d, ", (int) tcp->u_arg[0]); in sys_msgsnd()
241 if (indirect_ipccall(tcp)) { in sys_msgsnd()
242 tprint_msgsnd(tcp, tcp->u_arg[3], tcp->u_arg[1], in sys_msgsnd()
243 tcp->u_arg[2]); in sys_msgsnd()
245 tprint_msgsnd(tcp, tcp->u_arg[1], tcp->u_arg[2], in sys_msgsnd()
246 tcp->u_arg[3]); in sys_msgsnd()
253 tprint_msgrcv(struct tcb *tcp, long addr, unsigned long count, long msgtyp) in tprint_msgrcv() argument
257 if (syserror(tcp) || umove(tcp, addr, &mtype) < 0) { in tprint_msgrcv()
261 printstr(tcp, addr + sizeof(mtype), count); in tprint_msgrcv()
267 int sys_msgrcv(struct tcb *tcp) in sys_msgrcv() argument
269 if (entering(tcp)) { in sys_msgrcv()
270 tprintf("%d, ", (int) tcp->u_arg[0]); in sys_msgrcv()
272 if (indirect_ipccall(tcp)) { in sys_msgrcv()
278 if (umove(tcp, tcp->u_arg[3], &tmp) < 0) { in sys_msgrcv()
280 tcp->u_arg[3], tcp->u_arg[1]); in sys_msgrcv()
282 tprint_msgrcv(tcp, (long) tmp.msgp, in sys_msgrcv()
283 tcp->u_arg[1], tmp.msgtyp); in sys_msgrcv()
285 printflags(msg_flags, tcp->u_arg[2], "MSG_???"); in sys_msgrcv()
287 tprint_msgrcv(tcp, tcp->u_arg[1], in sys_msgrcv()
288 tcp->u_arg[2], tcp->u_arg[3]); in sys_msgrcv()
289 printflags(msg_flags, tcp->u_arg[4], "MSG_???"); in sys_msgrcv()
296 tprint_sembuf(struct tcb *tcp, long addr, unsigned long count) in tprint_sembuf() argument
300 if (abbrev(tcp)) in tprint_sembuf()
314 if (umove(tcp, addr + i * sizeof(struct sembuf), &sb) < 0) { in tprint_sembuf()
337 int sys_semop(struct tcb *tcp) in sys_semop() argument
339 if (entering(tcp)) { in sys_semop()
340 tprintf("%lu, ", tcp->u_arg[0]); in sys_semop()
341 if (indirect_ipccall(tcp)) { in sys_semop()
342 tprint_sembuf(tcp, tcp->u_arg[3], tcp->u_arg[1]); in sys_semop()
344 tprint_sembuf(tcp, tcp->u_arg[1], tcp->u_arg[2]); in sys_semop()
351 int sys_semtimedop(struct tcb *tcp) in sys_semtimedop() argument
353 if (entering(tcp)) { in sys_semtimedop()
354 tprintf("%lu, ", tcp->u_arg[0]); in sys_semtimedop()
355 if (indirect_ipccall(tcp)) { in sys_semtimedop()
356 tprint_sembuf(tcp, tcp->u_arg[3], tcp->u_arg[1]); in sys_semtimedop()
358 printtv(tcp, tcp->u_arg[5]); in sys_semtimedop()
360 tprint_sembuf(tcp, tcp->u_arg[1], tcp->u_arg[2]); in sys_semtimedop()
362 printtv(tcp, tcp->u_arg[3]); in sys_semtimedop()
369 int sys_semget(tcp) in sys_semget() argument
370 struct tcb *tcp; in sys_semget()
372 if (entering(tcp)) {
373 if (tcp->u_arg[0])
374 tprintf("%#lx", tcp->u_arg[0]);
377 tprintf(", %lu", tcp->u_arg[1]);
379 if (printflags(resource_flags, tcp->u_arg[2] & ~0777, NULL) != 0)
381 tprintf("%#lo", tcp->u_arg[2] & 0777);
386 int sys_semctl(tcp) in sys_semctl() argument
387 struct tcb *tcp; in sys_semctl()
389 if (entering(tcp)) {
390 tprintf("%lu", tcp->u_arg[0]);
391 tprintf(", %lu, ", tcp->u_arg[1]);
392 PRINTCTL(semctl_flags, tcp->u_arg[2], "SEM_???");
393 tprintf(", %#lx", tcp->u_arg[3]);
398 int sys_shmget(tcp) in sys_shmget() argument
399 struct tcb *tcp; in sys_shmget()
401 if (entering(tcp)) {
402 if (tcp->u_arg[0])
403 tprintf("%#lx", tcp->u_arg[0]);
406 tprintf(", %lu", tcp->u_arg[1]);
408 if (printflags(shm_resource_flags, tcp->u_arg[2] & ~0777, NULL) != 0)
410 tprintf("%#lo", tcp->u_arg[2] & 0777);
415 int sys_shmctl(tcp) in sys_shmctl() argument
416 struct tcb *tcp; in sys_shmctl()
418 if (entering(tcp)) {
419 tprintf("%lu, ", tcp->u_arg[0]);
420 PRINTCTL(shmctl_flags, tcp->u_arg[1], "SHM_???");
421 if (indirect_ipccall(tcp)) {
422 tprintf(", %#lx", tcp->u_arg[3]);
424 tprintf(", %#lx", tcp->u_arg[2]);
430 int sys_shmat(tcp) in sys_shmat() argument
431 struct tcb *tcp; in sys_shmat()
437 if (exiting(tcp)) {
438 tprintf("%lu", tcp->u_arg[0]);
439 if (indirect_ipccall(tcp)) {
440 tprintf(", %#lx", tcp->u_arg[3]);
442 printflags(shm_flags, tcp->u_arg[1], "SHM_???");
444 tprintf(", %#lx", tcp->u_arg[1]);
446 printflags(shm_flags, tcp->u_arg[2], "SHM_???");
448 if (syserror(tcp))
452 if (umove(tcp, tcp->u_arg[2], &raddr) < 0)
454 tcp->u_rval = raddr;
461 int sys_shmdt(tcp) in sys_shmdt() argument
462 struct tcb *tcp; in sys_shmdt()
464 if (entering(tcp)) {
465 if (indirect_ipccall(tcp)) {
466 tprintf("%#lx", tcp->u_arg[3]);
468 tprintf("%#lx", tcp->u_arg[0]);
478 sys_mq_open(struct tcb *tcp) in sys_mq_open() argument
480 if (entering(tcp)) { in sys_mq_open()
481 printpath(tcp, tcp->u_arg[0]); in sys_mq_open()
484 tprint_open_modes(tcp->u_arg[1]); in sys_mq_open()
485 if (tcp->u_arg[1] & O_CREAT) { in sys_mq_open()
487 tprintf(", %lx", tcp->u_arg[2]); in sys_mq_open()
491 tprintf(", %#lo, ", tcp->u_arg[2]); in sys_mq_open()
492 if (umove(tcp, tcp->u_arg[3], &attr) < 0) in sys_mq_open()
504 sys_mq_timedsend(struct tcb *tcp) in sys_mq_timedsend() argument
506 if (entering(tcp)) { in sys_mq_timedsend()
507 tprintf("%ld, ", tcp->u_arg[0]); in sys_mq_timedsend()
508 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); in sys_mq_timedsend()
509 tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]); in sys_mq_timedsend()
510 printtv(tcp, tcp->u_arg[4]); in sys_mq_timedsend()
516 sys_mq_timedreceive(struct tcb *tcp) in sys_mq_timedreceive() argument
518 if (entering(tcp)) in sys_mq_timedreceive()
519 tprintf("%ld, ", tcp->u_arg[0]); in sys_mq_timedreceive()
521 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); in sys_mq_timedreceive()
522 tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]); in sys_mq_timedreceive()
523 printtv(tcp, tcp->u_arg[4]); in sys_mq_timedreceive()
529 sys_mq_notify(struct tcb *tcp) in sys_mq_notify() argument
531 if (entering(tcp)) { in sys_mq_notify()
532 tprintf("%ld, ", tcp->u_arg[0]); in sys_mq_notify()
533 printsigevent(tcp, tcp->u_arg[1]); in sys_mq_notify()
539 printmqattr(struct tcb *tcp, long addr) in printmqattr() argument
548 if (umove(tcp, addr, &attr) < 0) { in printmqattr()
561 sys_mq_getsetattr(struct tcb *tcp) in sys_mq_getsetattr() argument
563 if (entering(tcp)) { in sys_mq_getsetattr()
564 tprintf("%ld, ", tcp->u_arg[0]); in sys_mq_getsetattr()
565 printmqattr(tcp, tcp->u_arg[1]); in sys_mq_getsetattr()
568 printmqattr(tcp, tcp->u_arg[2]); in sys_mq_getsetattr()