delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/16/04:23:49

Date: Mon, 16 Jun 1997 11:23:21 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Claude Sassine <claude AT tiac DOT net>
cc: Help Djgpp <djgpp AT delorie DOT com>
Subject: Re: Long filename problem
In-Reply-To: <33A4C1C8.2FB9@tiac.net>
Message-ID: <Pine.SUN.3.91.970616112301.17543K-100000@is>
MIME-Version: 1.0

On Sun, 15 Jun 1997, Claude Sassine wrote:

> In trying to create a file from with a C program with filename longer
> than 8 characters, two questions came about. One, can the size the
> filename be changed by adjusting a header file variable? The stdio.h
> file defines the FILENAME_MAX=260, but the only 8 characters are
> permited. Is there some other variable that can changed to accomplish
> this?

If you do this from Windows 95, you need to set LFN=y in the
environment to enable the long filename support.  If you are doing
this from DOS or Windows 3.x, you can't have long names at all.

> read the information at the DJGPP website. Can the data onto be stored
> onto hard drive, intermittently, as the program continues processing?

You need to call `fflush' and `fsync' functions (in this order) for
every file that you want to be updated on the disk.

- Raw text -


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