mirror of https://gitee.com/openkylin/qemu.git
linux-user: Add support for RNDRESEEDCRNG ioctl
RNDRESEEDCRNG is a newer ioctl (added in kernel 4.17), and an "ifdef" guard is used for that reason in this patch. Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <1567601968-26946-3-git-send-email-aleksandar.markovic@rt-rk.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
1cc5274016
commit
92c096f0aa
|
@ -246,6 +246,9 @@
|
|||
IOCTL(RNDADDTOENTCNT, IOC_W, MK_PTR(TYPE_INT))
|
||||
IOCTL(RNDZAPENTCNT, 0, TYPE_NULL)
|
||||
IOCTL(RNDCLEARPOOL, 0, TYPE_NULL)
|
||||
#ifdef RNDRESEEDCRNG
|
||||
IOCTL(RNDRESEEDCRNG, 0, TYPE_NULL)
|
||||
#endif
|
||||
|
||||
IOCTL(CDROMPAUSE, 0, TYPE_NULL)
|
||||
IOCTL(CDROMSTART, 0, TYPE_NULL)
|
||||
|
|
|
@ -850,6 +850,7 @@ struct target_pollfd {
|
|||
#define TARGET_RNDADDTOENTCNT TARGET_IOW('R', 0x01, int)
|
||||
#define TARGET_RNDZAPENTCNT TARGET_IO('R', 0x04)
|
||||
#define TARGET_RNDCLEARPOOL TARGET_IO('R', 0x06)
|
||||
#define TARGET_RNDRESEEDCRNG TARGET_IO('R', 0x07)
|
||||
|
||||
/* From <linux/fs.h> */
|
||||
|
||||
|
|
Loading…
Reference in New Issue