Date: Mon, 16 Jun 1997 11:23:21 +0300 (IDT) From: Eli Zaretskii To: Claude Sassine cc: Help Djgpp Subject: Re: Long filename problem In-Reply-To: <33A4C1C8.2FB9@tiac.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.