Finding open file descriptors for a process linux ( C code )?

后端 未结 6 1259
遇见更好的自我
遇见更好的自我 2020-12-08 01:02

I wanted to find all fds opened for a process in linux.

Can I do it with glib library functions ?

6条回答
  •  鱼传尺愫
    2020-12-08 01:34

    fstat command lists all running processes of the system and their open descriptors furthermore it lists what type of descriptor it is (file, socket, pipe, etc) and tries to give a hint of what the descriptor is reading or writing on such as what filesystem and what inode number on that file system

提交回复
热议问题