The Info manual
tells us about variable
The first is the directory for info files installed by my package manager (macports); modify the path according to your own system. The second directory is where we’ll install info files manually.
glibc (“gee lib cee”) is the GNU
libc, the Unix standard C library. Don’t confuse it with
glib, which is a library from the GNOME desktop project.
If you’re not developing for a GNU/Linux system, but you don’t find
info-format documentation for your system’s own
libc, you might still find
the GNU docs useful.
glibc follows the ISO C 99 and POSIX standards, and its
documentation is always careful to point out where a feature is non-standard.
Common Unix variations are covered (e.g. the BSD and SysV styles of signal
Download “Info document (gzipped tar file)” from the GNU website.
install-info libc.info dir
install-info is provided by the texinfo package, which you can install with
your system’s package manager.
dir file contains an entry for every function and constant in
libc. These entries are added to your top-level Info menu. It is easy to remove
these from the top-level menu (you will still be able to find them via Info’s
index command or by searching): The
dir file is plain text, so you can edit
it and remove those entries. Leave the single libc entry under “Libraries”.
Now visit a C file and use
info-lookup-symbol to look up, say,
up to the main sockets node for introductory material.
I’ve found info docs for perl 5.6 (over a decade old now). If you know of a more recent version, or know how to build info files from the latest perl docs, please send me detailed instructions.
And spread the word! It’s a shame that such a well-integrated documentation system hasn’t received more support from popular software distributions.