Where can I browse the sourcecode for libc online (like doxygen)

Viewed 17790

Sometimes I want to look up the implementations of functions in the stdlib, I've downloaded the sourcecode, but it's quite messy.

Just greping is not really suitable because of the many hits.

Does anyone know a webpage doxygen style that has the documentation.

The same goes for the linux kernel.

Thanks

6 Answers

To help navigate the source to glibc, perhaps try something like ctags or cscope?

Note: I get dumber every time I look at the glibc source, so please be careful! :)

If you are using GNU C (glibc), the functions (beyond the GNU extensions) follow the POSIX standard as far as their arguments, implementation, failure and return values. If you want to peek under the hood of static members, you'll have to look at the code.

Every push (that I can remember) to try and adopt something like Doxygen for glibc was rejected for the following reasons:

  1. Redundant, POSIX already documents almost everything thats exposed, as well as man and info pages.
  2. Too much work initially
  3. More work for maintainers

As far as the kernel goes, Linux does use a system very similar to Doxygen called Kerneldoc.

Related