Dmitry V. Levin | fef0907 | 2015-02-04 16:38:09 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | #include "xlat/getrandom_flags.h" |
| 3 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 4 | SYS_FUNC(getrandom) |
Dmitry V. Levin | fef0907 | 2015-02-04 16:38:09 +0000 | [diff] [blame] | 5 | { |
| 6 | if (exiting(tcp)) { |
| 7 | if (syserror(tcp)) |
Dmitry V. Levin | aa9f687 | 2015-07-20 11:33:06 +0000 | [diff] [blame] | 8 | printaddr(tcp->u_arg[0]); |
Dmitry V. Levin | fef0907 | 2015-02-04 16:38:09 +0000 | [diff] [blame] | 9 | else |
| 10 | printstr(tcp, tcp->u_arg[0], tcp->u_rval); |
| 11 | tprintf(", %lu, ", tcp->u_arg[1]); |
| 12 | printflags(getrandom_flags, tcp->u_arg[2], "GRND_???"); |
| 13 | } |
| 14 | return 0; |
| 15 | } |