bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] Implementation of fsync for Windows


From: Bruno Haible
Subject: Re: [PATCH] Implementation of fsync for Windows
Date: Thu, 2 Oct 2008 00:51:13 +0200
User-agent: KMail/1.5.4

Richard W.M. Jones wrote:
> This patch implements fsync for Windows.

Nice and quite well done. Bravo for having understood the many idioms used
in gnulib.

Just two minor comments:

  - The phrase "cross-compilers like MinGW" is misleading.
    MinGW is is often used natively, not cross-compiled. There are three
    ways to use MinGW natively:
      - using MSYS as development environment,
      - using Cygwin as development environment, with the right CPPFLAGS
        and LDFLAGS,
      - on Linux, with a kernel configuration that will make .exe files
        run through 'wine', and with gcc configured as a cross-compiler.
    Also mingw is more than a compiler: it's a set of libraries, include files
    and compiler.

  - The code can be a little streamlined by removing the 'err' variable:

      switch (GetLastError ())
      ...

Bruno





reply via email to

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