- 论坛徽章:
- 7
|
root@lab-b100# truss uname -s
execve("/sbin/uname", 0xFFBFFD14, 0xFFBFFD20) argc = 2
resolvepath("/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
resolvepath("/sbin/uname", "/sbin/uname", 1023) = 11
stat("/sbin/uname", 0xFFBFFAF0) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
stat("./libc.so.1", 0xFFBFF5A8) Err#2 ENOENT
stat("/usr/local/lib/libc.so.1", 0xFFBFF5A8) Err#2 ENOENT
stat("/usr/sfw/lib/libc.so.1", 0xFFBFF5A8) Err#2 ENOENT
stat("/lib/libc.so.1", 0xFFBFF5A8) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
mmap(0x00010000, 1351680, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF200000
mmap(0xFF200000, 1229381, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF200000
mmap(0xFF33E000, 35801, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1236992) = 0xFF33E000
mmap(0xFF348000, 1576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF348000
munmap(0xFF32E000, 65536) = 0
memcntl(0xFF200000, 144964, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF390000
munmap(0xFF3A0000, 32768) = 0
getcontext(0xFFBFF7E0)
getrlimit(RLIMIT_STACK, 0xFFBFF7C0) = 0
getpid() = 29635 [29634]
setustack(0xFF392A88)
umask(033) = 022
uname(0xFFBFF7A0) = 1
brk(0x00022350) = 0
brk(0x00024350) = 0
stat("/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1", 0xFFBFEE88) = 0
resolvepath("/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1", "/platform/sun4u/lib/libc_psr.so.1", 1023) = 33
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3F0000
open("/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
munmap(0xFF3A4000, 16384) = 0
close(3) = 0
ioctl(1, TCGETA, 0xFFBFE83C) = 0
fstat64(1, 0xFFBFE758) = 0
SunOS
write(1, " S u n O S\n", 6) = 6
_exit(0)
我感觉是从lib库文件里调出来的。应该不是从文本文件里面读取的 |
|