|
|
Subscribe / Log in / New account

Two new ways to read a file quickly

Two new ways to read a file quickly

Posted Mar 8, 2020 15:08 UTC (Sun) by pbonzini (subscriber, #60935)
In reply to: Two new ways to read a file quickly by josh
Parent article: Two new ways to read a file quickly

Regarding 3 I think that's a mistake, O_SPECIFICFD to open and dup2 to close seems like a very easy way to manage pre-reserved file descriptors, even without the prctl.


to post comments

Two new ways to read a file quickly

Posted Mar 8, 2020 15:14 UTC (Sun) by josh (subscriber, #17465) [Link]

Perhaps we could have a specialized "reserved" fd type, and use that instead of opening /dev/null, and only allow "overwriting" that.It would help to have a guaranteed continuous chunk of fds to allocate out of, though.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds