patch-1.3.100 linux/include/linux/random.h
Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/msg.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Wed May 8 10:32:41 1996
- Orig file:
v1.3.99/linux/include/linux/random.h
- Orig date:
Sun May 5 08:52:05 1996
diff -u --recursive --new-file v1.3.99/linux/include/linux/random.h linux/include/linux/random.h
@@ -7,28 +7,30 @@
#ifndef _LINUX_RANDOM_H
#define _LINUX_RANDOM_H
+#include <linux/ioctl.h>
+
/* ioctl()'s for the random number generator */
/* Get the entropy count. */
-#define RNDGETENTCNT 0x01080000
+#define RNDGETENTCNT _IOR( 'R', 0x00, int )
/* Add to (or subtract from) the entropy count. (Superuser only.) */
-#define RNDADDTOENTCNT 0x01080001
+#define RNDADDTOENTCNT _IOW( 'R', 0x01, int )
/* Get the contents of the entropy pool. (Superuser only.) */
-#define RNDGETPOOL 0x01080002
+#define RNDGETPOOL _IOR( 'R', 0x02, int [2] )
/*
* Write bytes into the entropy pool and add to the entropy count.
* (Superuser only.)
*/
-#define RNDADDENTROPY 0x01080003
+#define RNDADDENTROPY _IOW( 'R', 0x03, int [2] )
/* Clear entropy count to 0. (Superuser only.) */
-#define RNDZAPENTCNT 0x01080004
+#define RNDZAPENTCNT _IO( 'R', 0x04 )
/* Clear the entropy pool and associated counters. (Superuser only.) */
-#define RNDCLEARPOOL 0x01080006
+#define RNDCLEARPOOL _IO( 'R', 0x06 )
struct rand_pool_info {
int entropy_count;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this