[Issue 15461] New: std.stdio.File ctor that accepts `FILE*` should not be hidden
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Dec 18 11:27:54 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15461
Issue ID: 15461
Summary: std.stdio.File ctor that accepts `FILE*` should not be
hidden
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: ketmar at ketmar.no-ip.org
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.
--
More information about the Digitalmars-d-bugs
mailing list