Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!romp!auschs!awdprime!sabre.austin.ibm.com!robin From: robin@sabre.austin.ibm.com (Robin D. Wilson/1000000) Newsgroups: comp.sys.amiga.tech Subject: Lattice question: is there a "link" Summary: rename doesn't cut it. Keywords: lattice, link, rename. Message-ID: <2474@awdprime.UUCP> Date: 30 May 90 18:53:17 GMT Sender: news@awdprime.UUCP Organization: IBM AWD, Austin, TX Lines: 26 I have need of a link() system call. I am using lattice v. 5.05 and cannot seem to get the rename() system call to do what I want. According to the lattice manual, the rename(old,new) call will rename old to new. Unfortunately, it will not remove new, if it exists, and it will not allow you to specify a path to "new". I have tried to get around this by writing a move() function that allows me to move(old_path, new_path) by just chdir(new_path - file_name), and the chdir(start_dir). I seem to run into a pesky I/O Error: when I do this tho'. If there was a link() equivalent (that doesn't care if the new_file exists and allows full path descriptions for both the old and the new files) I would just write my own rename() function. Can anybody help?? Thanks in advance. BTW, I haven't bought the RKM, so if it's in there, could you just provide a usage description, and which LIB I need to include. +-----------------------------------------------------------------------------+ |The views expressed herein, are the sole responsibility of the typist at hand| +-----------------------------------------------------------------------------+ |UUCP: cs.utexas.edu!romp!ibmchs!auschs!sabre.austin.ibm.com!robin | |USNail: 701 Canyon Bend Dr. | | Pflugerville, TX 78660 | | Home: (512)251-6889 Work: (512)823-4526 | +-----------------------------------------------------------------------------+