aboutsummaryrefslogtreecommitdiffstats
path: root/getrandom.c
blob: 068b2e6e49b360436a5c2e5878152a03b0badf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "defs.h"
#include "xlat/getrandom_flags.h"

int
sys_getrandom(struct tcb *tcp)
{
	if (exiting(tcp)) {
		if (syserror(tcp))
			tprintf("%#lx", tcp->u_arg[0]);
		else
			printstr(tcp, tcp->u_arg[0], tcp->u_rval);
		tprintf(", %lu, ", tcp->u_arg[1]);
		printflags(getrandom_flags, tcp->u_arg[2], "GRND_???");
	}
	return 0;
}