bug-gnulib
[Top][All Lists]
Advanced

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

Re: SKIP_FTRUNCATE_CHECK


From: Bruno Haible
Subject: Re: SKIP_FTRUNCATE_CHECK
Date: Tue, 20 Feb 2007 01:13:54 +0100
User-agent: KMail/1.5.4

Hi Jim,

> Now that you've done it, that's fine.

OK, I'm committing it now, after you are saying that it's fine.

> BTW, since you seem to care about mingw, can you tell us which part
> of lib/ftruncate.c is used on that system?

It uses a call to 'chsize'. 'chsize' is a documented function of the Windows
runtime library (MSVCRT).

> And does the replacement function actually work?

This, I can't tell, as I'm only cross-compiling. I can't do more than "nm"
on the object files.

> If we're no closer to removing the module, then we should document those
> things while we're at it, since some of that code is very dusty.

Like this? There's also some background about the other two alternatives at
http://www.unixguide.net/unix/faq/3.3.shtml .


--- lib/ftruncate.c     19 Feb 2007 02:24:42 -0000      1.12
+++ lib/ftruncate.c     19 Feb 2007 23:56:54 -0000
@@ -66,7 +66,7 @@
 }
 
 # else /* not F_CHSIZE nor F_FREESP */
-#  if HAVE_CHSIZE
+#  if HAVE_CHSIZE                      /* native Windows, e.g. mingw */
 
 int
 ftruncate (int fd, off_t length)





reply via email to

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