Bug 15461 – std.stdio.File ctor that accepts `FILE*` should not be hidden
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2015-12-18T19:27:54Z
Last change time
2018-02-01T18:06:27Z
Assigned to
No Owner
Creator
Ketmar Dark
Comments
Comment #0 by ketmar — 2015-12-18T19:27:54Z
glibc has a great `fopencookie(3)` call, which can be used to build `FILE*` objects for arbitrary data sources. yet there is no way to init `std.stdio.File` with that `FILE*`, which cuts alot of possibilities.
there should be a way to create `std.stdio.File` from existing `FILE*` at least on systems where `fopencookie(3)` is available.