You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
347 B
17 lines
347 B
7 months ago
|
#include "defs.h"
|
||
|
#include "xlat/getrandom_flags.h"
|
||
|
|
||
|
SYS_FUNC(getrandom)
|
||
|
{
|
||
|
if (exiting(tcp)) {
|
||
|
if (syserror(tcp))
|
||
|
printaddr(tcp->u_arg[0]);
|
||
|
else
|
||
|
printstr_ex(tcp, tcp->u_arg[0], tcp->u_rval,
|
||
|
QUOTE_FORCE_HEX);
|
||
|
tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
|
||
|
printflags(getrandom_flags, tcp->u_arg[2], "GRND_???");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|