| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | "Rod Pemberton" <do_not_have AT nohavenot DOT cmm> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Is there some way to convert long filenames to short filenames? |
| Date: | Fri, 13 Mar 2009 20:35:06 -0400 |
| Organization: | Aioe.org NNTP Server |
| Lines: | 25 |
| Message-ID: | <gpetuo$4eu$1@aioe.org> |
| References: | <275d23ac-69e7-4da0-88a0-a807a182477e AT a39g2000yqc DOT googlegroups DOT com> <gpd54j$kr5$1 AT aioe DOT org> <c8b9dd7a-ced3-4522-9bdd-bc565c607369 AT l39g2000yqn DOT googlegroups DOT com> |
| NNTP-Posting-Host: | pldq+kT97bAAp/ObDwnZyQ.user.aioe.org |
| X-Complaints-To: | abuse AT aioe DOT org |
| NNTP-Posting-Date: | Sat, 14 Mar 2009 00:32:24 +0000 (UTC) |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1933 |
| X-Notice: | Filtered by postfilter v. 0.7.7 |
| X-Newsreader: | Microsoft Outlook Express 6.00.2800.1933 |
| Cancel-Lock: | sha1:+YrxxfW9Fh5biLDkQS1OqGqkhHY= |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"dos-man 64" <ChairShot AT mail DOT com> wrote in message
news:c8b9dd7a-ced3-4522-9bdd-bc565c607369 AT l39g2000yqn DOT googlegroups DOT com...
> The only requirement is I have to set an
> environment variable LFN=y.
As DJ said, this should be automatic... However, I've also have a few
programs where I have code force LFN use, if available. This is with DJGPP
v2.03.
#ifdef __DJGPP__
/* if LFN driver installed, force _USE_LFN on */
if(lfn_installed)
{
_crt0_startup_flags&=~_CRT0_FLAG_NO_LFN;
putenv("LFN=y");
}
#endif
The variable lfn_installed gets set to one if a __dpmi_int 0x21 call to
0x71a0 reports that it supports long filename functions.
Rod Pemberton
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |