Amiga 3000UX first impressions
Rich Skrenta
skrenta at amix.commodore.com
Fri Jan 18 06:43:39 AEST 1991
In article <5187 at auspex.auspex.com>, guy at 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 at amix.commodore.com
More information about the Comp.unix.amiga
mailing list