Search code examples
cmanpage

Can we view the source for say signal.h file in Linux


Do man pages provide the source code for a particular file like
for example signal.h or is there any way to view it out of the box?
I am using ubuntu from WSL (although that shouldn't make any difference)


Solution

  • Typically, header files are contained at /usr/include/ directory. So if you open /usr/include/signal.h, you will see full header file. Never tried it on WSL, but it should be fine.