Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!udel!mmdf From: HELMER%SDNET.BITNET@vm1.nodak.edu (Guy Helmer) Newsgroups: comp.os.minix Subject: Replacement for rename()? Message-ID: <20454@louie.udel.EDU> Date: 25 Jul 89 20:23:40 GMT Sender: mmdf@udel.EDU Lines: 12 I've ported David Clunie's yacc to MINIX successfully except for one problem: no obvious working replacement for rename() seems to be available. I've tried using link(oldname, newname); unlink(oldname);, but link() apparently doesn't like to work over mount points even if the new file and old file are to exist on the same file system. The only thing that seems to be left to do is the equivalent of 'cp ' and then unlink(oldname). Does anyone have a better suggestion? Thanks in advance. -- Guy Helmer BITNET: HELMER@SDNET Dakota State University Computing Services Madison, SD 57042