Message-Id: <199612020659.WAA11416@ridge.spiritone.com> From: "Rodger D. Ballard Jr." To: "Eli Zaretskii" Cc: Subject: Re: DJGPP w/long file name support Date: Sun, 1 Dec 1996 23:03:02 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I am sorry for not being too clear on that one. This question pertains more towards C and for instance if I wanted to make a program that supports long file name support under a Win95 dos box. I was curious if anyone knew how to implement this in a seperate program via DJGPP C code (I have a feeling it would involve inline assembler, something I have never touched under DJ.) A perfect example is this: Construct a program that will add line numbers and colons in front of every line in a specified file that supports long file names: A sample run might be: disptext this_is_the_file_name.txt ---------- > From: Eli Zaretskii > To: Rodger D. Ballard Jr. > Cc: djgpp AT delorie DOT com > Subject: Re: DJGPP w/long file name support > Date: Sunday, December 01, 1996 10:44 PM > > > On Sun, 1 Dec 1996, Rodger D. Ballard Jr. wrote: > > > Statement: Windows 95 supports long file names. > > Statement(2): The access to long file names under DOS is an interrupt. > > Question: Does anyone know how to implement this under a C/C++ program in > > DJ? > > You are kidding, right? DJGPP v2 supports long filenames Windows 95 > style *right out of the box*! You don't need to do anything, just > set LFN=y in the environment and run your DJGPP programs. > > For details, see the documentation of the `_use_lfn' library function in > the on-line library reference (libc.inf), by typing this from the DOS > prompt: > > info libc alphabetical _use_lfn