delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/01/19:32:56

Sender: nate AT cartsys DOT com
Message-ID: <363CFCB3.BD9F5D8E@cartsys.com>
Date: Sun, 01 Nov 1998 16:28:35 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: help:michelle: fast copy, delete, move, rename
References: <363c400f DOT 570273 AT news DOT ping DOT be>
Reply-To: djgpp AT delorie DOT com

Epsilon Beta wrote:
> 
> Hello Evry1,
> 
> I'm searching for the fastest DJGPP C/gas (no C++)-source to
> 1) copy a file/directory
> 2) delete a file/directory
> 3) move a file/directory
> 4) rename a file/directory

Are `link', `unlink', `rmdir', and `rename' too slow?  If not, I suggest
you use them.  Although they are somewhat more complex than one might
think necessary, they do work correctly with LFNs and under several
special cases.

As for copying, if you must bum every last instruction out of your I/O
throughput, you may need to write it in something other than DJGPP; the
mode switch for each transfer buffer-sized is unavoidable.  But IMHO,
it's not worth the trouble.

-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019