]> granicus.if.org Git - strace/blob - getrandom.c
Implement getrandom syscall decoding
[strace] / getrandom.c
1 #include "defs.h"
2 #include "xlat/getrandom_flags.h"
3
4 int
5 sys_getrandom(struct tcb *tcp)
6 {
7         if (exiting(tcp)) {
8                 if (syserror(tcp))
9                         tprintf("%#lx", tcp->u_arg[0]);
10                 else
11                         printstr(tcp, tcp->u_arg[0], tcp->u_rval);
12                 tprintf(", %lu, ", tcp->u_arg[1]);
13                 printflags(getrandom_flags, tcp->u_arg[2], "GRND_???");
14         }
15         return 0;
16 }