delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/13/19:24:00

From: mh AT minimike DOT franken DOT de (Michael Hirmke)
Subject: Re: rename() in B18..
13 Jun 1997 19:24:00 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.LNX.3.95.970613155342.27785B-100000.cygnus.gnu-win32@minimike.franken.de>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
In-Reply-To: <2.2.32.19970613015953.00687970@wilmington.net>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

On Thu, 12 Jun 1997, Keet wrote:

[...]
>     if( unlink("test1") < 0) {
> 	printf("Unable to unlink test1!\n");
> 	exit(1);
>     }
>     
>     if( rename("test2","test1") < 0 ) {
> 	printf("Unable to rename test2 to test1!\n");
> 	exit(1);
>     }

You try to unlink open files !

>     
>     fclose(test1);
>     fclose(test2);
> }
> 
[...]

Ciao.
Michael.
-- 
Michael Hirmke           | voice +49 (911) 557999
Georg-Strobel-Strasse 81 | fax   +49 (911) 557664
D-90489 Nuernberg        | email mh AT mike DOT franken DOT de
Germany                  | www   http://minimike.franken.de/

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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