Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: mv'ing files from a C program Message-ID: <1990Nov24.123422.11293@virtech.uucp> Date: 24 Nov 90 12:34:22 GMT References: <22@mixcom.UUCP> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Distribution: na Organization: Virtual Technologies Inc., Sterling VA Lines: 13 In article <1990Nov21.061700.20005@mercury.cair.du.edu> rwelch@diana.cair.du.edu (RANDY S WELCH) writes: >Isn't invoking a shell a bit much to mv a file when you can >link(2)/unlink(2)? Yes it is. However, if the files are not on the same file system you cannot do a link/unlink. The fork/exec of mv was the last of three examples of how you could do the move without having to have your program explicitly copy the file (requirement of original poster). -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170