Dmitry V. Levin | fef0907 | 2015-02-04 16:38:09 +0000 | [diff] [blame] | 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 | } |