Mail Archives: djgpp/1997/06/16/04:23:49
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 -