为什么在strace中看到太多的lib文件打开,fstat,mmap和close调用

时间:2018-08-30 13:41:26

标签: linux linux-kernel system-calls strace

strace -v -e trace = desc ls

open(“ / etc / ld.so.cache”,O_RDONLY | O_CLOEXEC)= 3

fstat(3,{st_dev = makedev(8,1),st_ino = 1311343,st_mode = S_IFREG | 0644,st_nlink = 1,st_uid = 0,st_gid = 0,st_blksize = 4096,st_blocks = 176,st_size = 88205 ,st_atime = 2018/08 / 30-07:23:57.086001060,st_mtime = 2018/08 / 30-07:23:55.777347107,st_ctime = 2018/08 / 30-07:23:56.357637086})= 0

mmap(NULL,88205,PROT_READ,MAP_PRIVATE,3,0)= 0x7f76831d6000

close(3)= 0

0 个答案:

没有答案