www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/05/14:19:02

From: afn06760 AT afn DOT org
Subject: Re: B19: truncate() missing?
5 Mar 1998 14:19:02 -0800 :
Message-ID: <199803052057.UAA142632.cygnus.gnu-win32@out5.ibm.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

>   Norman Walsh (norm AT berkshire DOT net)
>   Thu, 5 Mar 1998 14:33:45 -0500
>Greping through the include directories, I see that sys/unistd.h
>declares truncate(), but greping through the lib directories, I
>don't see any definition for it.
>
>Sure enough, the gcc linker can't seem to find it.  Here's my
>attempt to build part of the msql package:
>
You're absolutely right.  It isn't there.  Sort  of an oversight
the way that the broken libwsock32 emulation in libcygwinb19 is
an oversight.

Never fear, though.  ftruncate() _is_ there, and you can rig up
a version of truncate() by using ftruncate.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019