strace/xlat/random_ioctl_cmds.in
Rasmus Villemoes 2649c8c8b6 Add support for /dev/[u]random ioctls
* random_ioctl.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* defs.h (DECL_IOCTL): Add random.
* ioctl.c (ioctl_decode): Add 'R' case.
* xlat/random_ioctl_cmds.in: New file.
* tests/ioctl_random.c: New file.
* tests/.gitignore: Add ioctl_random.
* tests/pure_executables.list: Likewise.
* tests/gen_tests.in (ioctl_random): New entry.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2018-11-05 17:40:36 +00:00

8 lines
251 B
Plaintext

RNDGETENTCNT _IOR( 'R', 0x00, int )
RNDADDTOENTCNT _IOW( 'R', 0x01, int )
RNDGETPOOL _IOR( 'R', 0x02, int [2] )
RNDADDENTROPY _IOW( 'R', 0x03, int [2] )
RNDZAPENTCNT _IO( 'R', 0x04 )
RNDCLEARPOOL _IO( 'R', 0x06 )
RNDRESEEDCRNG _IO( 'R', 0x07 )