Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!wuarchive!uunet!cbmvax!amix!skrenta From: skrenta@amix.commodore.com (Rich Skrenta) Newsgroups: comp.unix.amiga Subject: Re: Amiga 3000UX first impressions Keywords: Amiga unix 3000UX Message-ID: <843@amix.commodore.com> Date: 17 Jan 91 19:43:39 GMT References: <1991Jan10.063919.6317@ux1.cso.uiuc.edu> <157@tcr.UUCP> <5187@auspex.auspex.com> Organization: Commodore-Amiga Unix Development Lines: 29 In article <5187@auspex.auspex.com>, guy@auspex.auspex.com (Guy Harris) writes: > Given that S5R4 has a BSD-style "rename()" call, one would hope it > works; that presumes that AT&T fixed "mv" not to waste its time with > "/usr/lib/mv_dir" and just use "rename" to move stuff (including > directories). These questions are easily answered with one of my favorite release 4 commands, truss. Truss is a system call tracer: $ mkdir one $ truss mv one two execve("/usr/bin/mv", 0xC07FFF00, 0xC07FFF10) argc = 3 open("/dev/zero", O_RDONLY, 0) = 3 getuid() = 0 [ 0 ] getuid() = 0 [ 0 ] getgid() = 0 [ 0 ] getgid() = 0 [ 0 ] close(3) = 0 lxstat(2, "one", 0x80004F28) = 0 lxstat(2, "two", 0x80004FB0) Err#2 ENOENT rename("one", "two") = 0 _exit(0) $ Yes, mv uses rename(). Rich -- skrenta@amix.commodore.com