diff options
author | 2000-06-18 16:32:19 +0000 | |
---|---|---|
committer | 2000-06-18 16:32:19 +0000 | |
commit | 2eb8064f406fca96a84d6ac09a6ca9677e68c287 (patch) | |
tree | 343e93682a0061c7a5487b87fd7bb885f1b4d03f | |
parent | change keysize from 8 bytes to 24 for Triple-DES and to 32 for Blowfish. (diff) | |
download | wireguard-openbsd-2eb8064f406fca96a84d6ac09a6ca9677e68c287.tar.xz wireguard-openbsd-2eb8064f406fca96a84d6ac09a6ca9677e68c287.zip |
Support FIONBIO and FIOASYNC. FIOASYNC is more or less a no-op>
-rw-r--r-- | sys/dev/rnd.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 1f49bb0af19..2fe4c12bb58 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.40 2000/06/16 19:18:51 deraadt Exp $ */ +/* $OpenBSD: rnd.c,v 1.41 2000/06/18 16:32:19 millert Exp $ */ /* * random.c -- A strong random number generator @@ -1048,6 +1048,14 @@ randomioctl(dev, cmd, data, flag, p) add_timer_randomness((u_long)p ^ (u_long)data ^ cmd); switch (cmd) { + case FIOASYNC: + /* rnd has no async flag in softc so this is really a no-op. */ + break; + + case FIONBIO: + /* Handled in the upper FS layer. */ + break; + case RNDGETENTCNT: ret = copyout(&random_state.entropy_count, data, sizeof(random_state.entropy_count)); |