blob: b67916d9990f109cda06ea2687895c59eecb167d [file] [log] [blame]
Dmitry V. Levinfef09072015-02-04 16:38:09 +00001#include "defs.h"
2#include "xlat/getrandom_flags.h"
3
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00004SYS_FUNC(getrandom)
Dmitry V. Levinfef09072015-02-04 16:38:09 +00005{
6 if (exiting(tcp)) {
7 if (syserror(tcp))
8 tprintf("%#lx", tcp->u_arg[0]);
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}