top | item 8035075

(no title)

adobriyan | 11 years ago

Less syscalls.

discuss

order

quotemstr|11 years ago

No. read(2) is one syscall, and the cost of the initial open is negligible. One real motivation seems to be wanting programs to work without a /dev. I don't think that's a reasonable requirement.

vidarh|11 years ago

Access to /dev is DOS'able in many situations by exhausting file descriptor / open files limits.

adobriyan|11 years ago

> No.

open+read+close + all the mess associated with exhausting file descriptors > getentropy

fairly obvious, isn't it?