Lines Matching refs:tcp
71 extern void printsigevent(struct tcb *tcp, long arg);
156 int sys_msgget(tcp)
157 struct tcb *tcp;
159 if (entering(tcp)) {
160 if (tcp->u_arg[0])
161 tprintf("%lu", tcp->u_arg[0]);
165 if (printflags(resource_flags, tcp->u_arg[1] & ~0777, NULL) != 0)
167 tprintf("%#lo", tcp->u_arg[1] & 0777);
180 int sys_msgctl(tcp)
181 struct tcb *tcp;
183 if (entering(tcp)) {
184 tprintf("%lu, ", tcp->u_arg[0]);
185 PRINTCTL(msgctl_flags, tcp->u_arg[1], "MSG_???");
187 tprintf(", %#lx", tcp->u_arg[3]);
189 tprintf(", %#lx", tcp->u_arg[2]);
195 int sys_msgsnd(tcp)
196 struct tcb *tcp;
200 if (entering(tcp)) {
201 tprintf("%lu", tcp->u_arg[0]);
203 umove(tcp, tcp->u_arg[3], &mtype);
205 printstr(tcp, tcp->u_arg[3] + sizeof(long),
206 tcp->u_arg[1]);
207 tprintf("}, %lu", tcp->u_arg[1]);
209 printflags(msg_flags, tcp->u_arg[2], "MSG_???");
211 umove(tcp, tcp->u_arg[1], &mtype);
213 printstr(tcp, tcp->u_arg[1] + sizeof(long),
214 tcp->u_arg[2]);
215 tprintf("}, %lu", tcp->u_arg[2]);
217 printflags(msg_flags, tcp->u_arg[3], "MSG_???");
223 int sys_msgrcv(tcp)
224 struct tcb *tcp;
235 if (exiting(tcp)) {
236 tprintf("%lu", tcp->u_arg[0]);
238 umove(tcp, tcp->u_arg[3], &tmp);
239 umove(tcp, (long) tmp.msgp, &mtype);
241 printstr(tcp, (long) (tmp.msgp) + sizeof(long),
242 tcp->u_arg[1]);
243 tprintf("}, %lu", tcp->u_arg[1]);
246 printflags(msg_flags, tcp->u_arg[2], "MSG_???");
248 umove(tcp, tcp->u_arg[1], &mtype);
250 printstr(tcp, tcp->u_arg[1] + sizeof(long),
251 tcp->u_arg[2]);
252 tprintf("}, %lu", tcp->u_arg[2]);
253 tprintf(", %ld", tcp->u_arg[3]);
255 printflags(msg_flags, tcp->u_arg[4], "MSG_???");
261 int sys_semop(tcp)
262 struct tcb *tcp;
264 if (entering(tcp)) {
265 tprintf("%lu", tcp->u_arg[0]);
267 tprintf(", %#lx", tcp->u_arg[3]);
268 tprintf(", %lu", tcp->u_arg[1]);
270 tprintf(", %#lx", tcp->u_arg[1]);
271 tprintf(", %lu", tcp->u_arg[2]);
278 int sys_semtimedop(tcp)
279 struct tcb *tcp;
281 if (entering(tcp)) {
282 tprintf("%lu", tcp->u_arg[0]);
283 tprintf(", %#lx", tcp->u_arg[3]);
284 tprintf(", %lu, ", tcp->u_arg[1]);
285 printtv(tcp, tcp->u_arg[5]);
291 int sys_semget(tcp)
292 struct tcb *tcp;
294 if (entering(tcp)) {
295 if (tcp->u_arg[0])
296 tprintf("%lu", tcp->u_arg[0]);
299 tprintf(", %lu", tcp->u_arg[1]);
301 if (printflags(resource_flags, tcp->u_arg[2] & ~0777, NULL) != 0)
303 tprintf("%#lo", tcp->u_arg[2] & 0777);
308 int sys_semctl(tcp)
309 struct tcb *tcp;
311 if (entering(tcp)) {
312 tprintf("%lu", tcp->u_arg[0]);
313 tprintf(", %lu, ", tcp->u_arg[1]);
314 PRINTCTL(semctl_flags, tcp->u_arg[2], "SEM_???");
315 tprintf(", %#lx", tcp->u_arg[3]);
320 int sys_shmget(tcp)
321 struct tcb *tcp;
323 if (entering(tcp)) {
324 if (tcp->u_arg[0])
325 tprintf("%lu", tcp->u_arg[0]);
328 tprintf(", %lu", tcp->u_arg[1]);
330 if (printflags(shm_resource_flags, tcp->u_arg[2] & ~0777, NULL) != 0)
332 tprintf("%#lo", tcp->u_arg[2] & 0777);
337 int sys_shmctl(tcp)
338 struct tcb *tcp;
340 if (entering(tcp)) {
341 tprintf("%lu, ", tcp->u_arg[0]);
342 PRINTCTL(shmctl_flags, tcp->u_arg[1], "SHM_???");
344 tprintf(", %#lx", tcp->u_arg[3]);
346 tprintf(", %#lx", tcp->u_arg[2]);
352 int sys_shmat(tcp)
353 struct tcb *tcp;
359 if (exiting(tcp)) {
360 tprintf("%lu", tcp->u_arg[0]);
362 tprintf(", %#lx", tcp->u_arg[3]);
364 printflags(shm_flags, tcp->u_arg[1], "SHM_???");
366 tprintf(", %#lx", tcp->u_arg[1]);
368 printflags(shm_flags, tcp->u_arg[2], "SHM_???");
370 if (syserror(tcp))
373 if (umove(tcp, tcp->u_arg[2], &raddr) < 0)
375 tcp->u_rval = raddr;
382 int sys_shmdt(tcp)
383 struct tcb *tcp;
385 if (entering(tcp))
387 tprintf("%#lx", tcp->u_arg[3]);
389 tprintf("%#lx", tcp->u_arg[0]);
397 int sys_mq_open(tcp)
398 struct tcb *tcp;
400 if (entering(tcp)) {
401 printpath(tcp, tcp->u_arg[0]);
404 printflags(openmodes, tcp->u_arg[1] + 1, "O_???");
405 if (tcp->u_arg[1] & O_CREAT) {
407 tprintf(", %lx", tcp->u_arg[2]);
411 tprintf(", %#lo, ", tcp->u_arg[2]);
412 if (umove(tcp, tcp->u_arg[3], &attr) < 0)
423 int sys_mq_timedsend(tcp)
424 struct tcb *tcp;
426 if (entering(tcp)) {
427 tprintf("%ld, ", tcp->u_arg[0]);
428 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
429 tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]);
430 printtv(tcp, tcp->u_arg[4]);
435 int sys_mq_timedreceive(tcp)
436 struct tcb *tcp;
438 if (entering(tcp))
439 tprintf("%ld, ", tcp->u_arg[0]);
441 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
442 tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]);
443 printtv(tcp, tcp->u_arg[4]);
448 int sys_mq_notify(tcp)
449 struct tcb *tcp;
451 if (entering(tcp)) {
452 tprintf("%ld, ", tcp->u_arg[0]);
453 printsigevent(tcp, tcp->u_arg[1]);
458 static void printmqattr(tcp, addr)
459 struct tcb *tcp;
469 if (umove(tcp, addr, &attr) < 0) {
481 int sys_mq_getsetattr(tcp)
482 struct tcb *tcp;
484 if (entering(tcp)) {
485 tprintf("%ld, ", tcp->u_arg[0]);
486 printmqattr(tcp, tcp->u_arg[1]);
489 printmqattr(tcp, tcp->u_arg[2]);