0

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?

  • 1
    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
  • 1
    And I just pressed q to try to close this tab. Thanks :P – Ignacio Vazquez-Abrams Mar 27 '12 at 17:59
4

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

http://info2html.sourceforge.net/cgi-bin/info2html-demo/info2html?%28libc.info.gz%29Top

(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.

  • Sweet, I didn't know about pinfo. – Mat Mar 27 '12 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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