- 论坛徽章:
- 7
|
root@lab-b100# truss uname -s\r\nexecve(\"/sbin/uname\", 0xFFBFFD14, 0xFFBFFD20) argc = 2\r\nresolvepath(\"/lib/ld.so.1\", \"/lib/ld.so.1\", 1023) = 12\r\nresolvepath(\"/sbin/uname\", \"/sbin/uname\", 1023) = 11\r\nstat(\"/sbin/uname\", 0xFFBFFAF0) = 0\r\nopen(\"/var/ld/ld.config\", O_RDONLY) Err#2 ENOENT\r\nstat(\"./libc.so.1\", 0xFFBFF5A8) Err#2 ENOENT\r\nstat(\"/usr/local/lib/libc.so.1\", 0xFFBFF5A8) Err#2 ENOENT\r\nstat(\"/usr/sfw/lib/libc.so.1\", 0xFFBFF5A8) Err#2 ENOENT\r\nstat(\"/lib/libc.so.1\", 0xFFBFF5A8) = 0\r\nresolvepath(\"/lib/libc.so.1\", \"/lib/libc.so.1\", 1023) = 14\r\nopen(\"/lib/libc.so.1\", O_RDONLY) = 3\r\nmmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000\r\nmmap(0x00010000, 1351680, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF200000\r\nmmap(0xFF200000, 1229381, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF200000\r\nmmap(0xFF33E000, 35801, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1236992) = 0xFF33E000\r\nmmap(0xFF348000, 1576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF348000\r\nmunmap(0xFF32E000, 65536) = 0\r\nmemcntl(0xFF200000, 144964, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0\r\nclose(3) = 0\r\nmmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF390000\r\nmunmap(0xFF3A0000, 32768) = 0\r\ngetcontext(0xFFBFF7E0)\r\ngetrlimit(RLIMIT_STACK, 0xFFBFF7C0) = 0\r\ngetpid() = 29635 [29634]\r\nsetustack(0xFF392A88)\r\numask(033) = 022\r\nuname(0xFFBFF7A0) = 1\r\nbrk(0x00022350) = 0\r\nbrk(0x00024350) = 0\r\nstat(\"/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1\", 0xFFBFEE88) = 0\r\nresolvepath(\"/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1\", \"/platform/sun4u/lib/libc_psr.so.1\", 1023) = 33\r\nmmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3F0000\r\nopen(\"/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1\", O_RDONLY) = 3\r\nmmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000\r\nmunmap(0xFF3A4000, 16384) = 0\r\nclose(3) = 0\r\nioctl(1, TCGETA, 0xFFBFE83C) = 0\r\nfstat64(1, 0xFFBFE758) = 0\r\nSunOS\r\nwrite(1, \" S u n O S\\n\", 6) = 6\r\n_exit(0) \r\n\r\n我感觉是从lib库文件里调出来的。应该不是从文本文件里面读取的 |
|