[PATCH] Shows an error about wrong permissions

Linus Torvalds torvalds at linux-foundation.org
Thu Nov 13 16:00:14 PST 2014


On Thu, Nov 13, 2014 at 2:53 PM, Thiago Macieira <thiago at macieira.org> wrote:
>
> unistd stands for "UNIX standard", which Windows ain't.

Bah. That's just a bad excuse. It's part of POSIX, something that
Windows wanted to be. And more importantly, it's where you are
supposed to find now just declarations for various functions (many of
which Windows *does* have, as shown by this particular example), but
also find various simple tests for supported features (ie testing for
just what kind of support you *do* have for various POSIX features,
including things like pthreads etc).

Not having unistd.h because somebody misliked the name of it is just a
cop-out, and a particularly stupid one at that.  It's like saying that
you don't do <stdio.h>, because the actual *standard* IO on Windows is
something else.

So just be honest. It's just arbitrary Windows stupidity making it
harder to write portable programs for no actual reason. The name is
just an excuse.

                    Linus


More information about the subsurface mailing list