blob: c82b3b7f8be05d478b96f51c4a3331a72f4eddd5 [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))
Dmitry V. Levinaa9f6872015-07-20 11:33:06 +00008 printaddr(tcp->u_arg[0]);
Dmitry V. Levinfef09072015-02-04 16:38:09 +00009 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}