Pelles C forum

Pelles C => Bug reports => Topic started by: Robert on February 17, 2026, 11:52:49 PM

Title: O_BINARY
Post by: Robert on February 17, 2026, 11:52:49 PM
Pelles C .chm documentation states

_setmode function
Declared in:
<io.h>
however, the definitions for the _setmode function "mode" parameter arguments

_O_BINARYetc.,

are not in
<io.h>but, instead, are located in
<fcntl.h>
The <io.h> header should
#include <fcntl.h>

Title: Re: O_BINARY
Post by: TimoVJL on February 18, 2026, 12:10:17 AM
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode?view=msvc-170 (https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode?view=msvc-170)
Non standard function, for msvc, so follows ms specs ?