- 论坛徽章:
- 0
|
刚刚用 strace -v 看过了,可能是在下面这里有差别
下面是 strace -v cp 命令的
open("subdir/a", O_WRONLY|O_CREAT|O_LARGEFILE, 0100644) = 4
fstat64(4, {st_dev=makedev(8, 5), st_ino=426027, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=500, st_blksize=4096, st_blocks=8, st_size=0, st_atime=2007/12/06-17:20:40, st_mtime=2007/12/06-17:20:40, st_ctime=2007/12/06-17:20:40}) = 0
下面是 strace -v mv 命令的
stat64("subdir/", {st_dev=makedev(8, 5), st_ino=426026, st_mode=S_IFDIR|S_ISGID|0755, st_nlink=2, st_uid=500, st_gid=500, st_blksize=4096, st_blocks=16, st_size=4096, st_atime=2007/12/06-17:20:56, st_mtime=2007/12/06-17:20:57, st_ctime=2007/12/06-17:20:57}) = 0
lstat64("a", {st_dev=makedev(8, 5), st_ino=4079630, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=0, st_atime=2007/12/06-17:21:01, st_mtime=2007/12/06-17:21:01, st_ctime=2007/12/06-17:21:01}) = 0
就差别在 fstat64 和 lstat64 这两行上
- NAME
- stat, fstat, lstat - get file status
复制代码
[ 本帖最后由 ailms 于 2007-12-6 17:51 编辑 ] |
|