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

monkeyking picture monkeyking · Dec 30, 2009 · Viewed 17.1k times · Source

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

Answer

Jacopo picture Jacopo · Aug 25, 2010

You should check if your distribution is using the vanilla GLIBC or the EGLIBC fork (Debian and Ubuntu have switched to EGLIBC EDIT: they switched back around 2014).

Anyway, the repository browser for GLIBC is at http://sourceware.org/git/?p=glibc.git

http://code.woboq.org/userspace/glibc/, posted by @guruz below, is a good alternative.

The source is a bit complicated by the presence of multiple versions of the same files.