Identifying which Linux system library contains a function

前端 未结 6 713
误落风尘
误落风尘 2020-12-20 14:30

I am using a dev system where I have to specify the lib name when accessing a function inside it.

I\'ve used functions like open() before, and somehow found out that

6条回答
  •  一向
    一向 (楼主)
    2020-12-20 14:58

    This is one way to do it:

    tomislav@malik:~$ cd /usr/lib
    tomislav@malik:/usr/lib$ grep "lstat()" *
    Binary file libperl.so.5.10 matches
    Binary file libperl.so.5.10.0 matches
    tomislav@malik:/usr/lib$ 
    

提交回复
热议问题