On Thursday, 4 July 2013 at 12:28:07 UTC, bearophile wrote:
Steven Schveighoffer:



setmode() should be in unistd.h, but I can't import core.stdc.unistd (and I don't find it in std.c.windows.windows).

core.sys.posix.unistd

setmode isn't actually standard C nor of the Posix standard. It's a BSD thing. Generally, you have to link with libbsd to use it on Posix systems. You won't find it in the standard unistd.h[1].

[1] http://manpages.ubuntu.com/manpages/gutsy/man7/unistd.h.7posix.html


fileno() should be in std.stdio or core.stdc.stdio, but I can't find it.

core.sys.posix.stdio

Reply via email to