make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

w32 unistd.h (was Re: Bug report: Compile with Microsoft and Intel comp


From: Alessandro Vesely
Subject: w32 unistd.h (was Re: Bug report: Compile with Microsoft and Intel compiler
Date: Thu, 28 Apr 2005 14:16:04 +0200

Hi Eli,

This is quite an intriguing idea.

Eli Zaretskii wrote:
> [...]
>       a w32/include/unistd.h that will hold
> prototypes of functions that on Posix platforms are expected to be
> found in unistd.h.  Examples include chdir, getcwd, dup2, getpid.

The underlying functionality is different in win32. The examples you
put are typical cases where one wanders if it is not better to use
native functions...

Of course, porting from Unix platforms has always been taken into
consideration, in DOS before and in win32 after. However, there is
no win32 unistd.h, except for various projects that had a "win32/unistd.h"
(can google that string) where they used to put just a few missing bits,
e.g. define S_ISREG or declare usleep(). Hmmm...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]