Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Looking for resources: like C doc (something like JavaDoc for C on Linux would be cool) for reading files and their attributes?

I'm working on recursively reading in files. I can get a list of files in a directory, with some simple code that uses readdir( DIR* ), but I'm looking for some code that I can, in general, browse through.

I'm kind of new to Linux -- so maybe man pages are the way to go here, but since man pages typically aren't linked together (like hyperlinks), I'm looking for resources that describe relationships between C structs and function for file IO. I'm wondering if I need to go as far as understanding inode stuff?

share|improve this question
Man pages are linked together, the man command typically doesn't allow the links to be interactive. – Ignacio Vazquez-Abrams Mar 27 '12 at 17:40
And I just pressed q to try to close this tab. Thanks :P – Ignacio Vazquez-Abrams Mar 27 '12 at 17:59
up vote 4 down vote accepted

Well-linked one is e.g. GNU libc documentation:


(or its equivalent installed locally)

See "file system interface" from the top page.

Man pages carry hyperlinks but you need proper man browser instead of default one. For console, try pinfo, it provides very simple Lynx-like interface.

share|improve this answer
Sweet, I didn't know about pinfo. – Mat Mar 27 '12 at 18:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.