10 ms·
It can use the expect() system call and timeout / fail after a reasonable period of time if no bits are returned.
by derekp7 12y ago
It can use the expect() system call and timeout / fail after a reasonable period of time if no bits are returned.
- justincormack 12y agoexpect() is not a system call.
- derekp7 12y agoSorry, I meant select(). Don't know where my head was when I typed that.
- nitrogen 12y agoCan you select() a system call (the new proposal) instead of an fd (the old interface)?
- lunixbochs 12y agoYou don't get a file handle to a syscall. You just load up some registers/stack and call a `SYSENTER`, `SYSCALL` or `INT 0x80` instruction. select is itself a separate syscall that takes in file handles or something.
- nitrogen 12y agoYeah, I know, but it wasn't clear if the parent comment was referring to select() on /dev/random, or the new syscall interface.