[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: removing HAVE_FCNTL_H tests
From: |
Bruno Haible |
Subject: |
Re: FYI: removing HAVE_FCNTL_H tests |
Date: |
Mon, 11 Jul 2005 13:32:21 +0200 |
User-agent: |
KMail/1.5 |
Jim Meyering wrote:
> > I've just removed all tests for HAVE_FCNTL_H from coreutils.
> > It's been gone in at least one place since coreutils-5.0 (2004-04-02)
>
> The same applies to HAVE_UNISTD_H and unistd.h
One platform still does not have <unistd.h>: It's Woe32 with the MSVC
compiler. It's unfortunately a major platform, and still alive.
Also, <unistd.h> is less dependable for GNU programs than <fcntl.h>,
because someone creates a brand new operating system different in style
from Unix, he will typically implement the ISO C headers but not POSIX
<unistd.h>. (Some recent operating systems like BeOS or MacOS X have
a Unix underneath, but others don't.)
So for the sake of ease of porting to new OSes, I would leave HAVE_UNISTD_H
in place.
Bruno