| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
| From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
| Message-Id: | <10201100031.AA16325@clio.rice.edu> |
| Subject: | LFN32 optimizations [was: Re: Proposed lstat.c patch for Win2000/XP device bit fix |
| To: | djgpp-workers AT delorie DOT com |
| Date: | Wed, 9 Jan 2002 18:31:43 -0600 (CST) |
| Cc: | ams AT ludd DOT luth DOT se |
| In-Reply-To: | <200201092157.WAA24942@father.ludd.luth.se> from "Martin Str|mberg" at Jan 09, 2002 10:57:01 PM |
| X-Mailer: | ELM [version 2.5 PL2] |
| Mime-Version: | 1.0 |
| Reply-To: | djgpp-workers AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> Indeed. Here's a patch for that (manually cut-and-pasted, so will
> probably not apply cleanly and there some offset as well due to my GCC
> warning corrections):
>
> - if ( ! strcmp(ff_blk.lfn_magic,"LFN32") )
> + if ( *(long *)(&(ff_blk.lfn_magic[0])) == 'L'+('F'<<8)+('N'<<16)+('3'<<24)
> + && *(short *)(&(ff_blk.lfn_magic[4])) == 0+('2'<<8) )
> {
Should we do this fix to access.c also (twice) and a similar fix to set
the value in findfirs.c?
Should a macro _is_ff_LFN(ff_blk) be in dir.h?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |