c - Efficient way to browse header definitions -
As an example: On my system (Ubuntu 10.04), the Socadar structure is defined in /bits/sockaddr.h Goes
struct sockaddr {_SOCKADDR_COMMON (sa_); /*...*/ four signatures [14]; /*...*/}; And similarly for sockaddr_in, first field name with sin_.
However, in all the examples I see field sin _
structure_name. Sin_family I typedef (I ) Was meant to track, afterwards the headers were included, but failed (I got sa_family_t and so on).
As a more general question: Say, there is a searchable online source where you can search only in a macro or typed head header file - either for a particular Ubuntu distribution, or 'typical' More commonly for Linux installation? Or, of course, a clever way from within the shell of Ubuntu; Or some other idea to be more efficient to do this.
This link is:
Done ... I'll get you the reference for the Linux kernel api browser later (be able to find it online anywhere). For the actual source code, which you can possibly make documents in any way.
Sorry, but I like something as beautiful, as the jQuery API Browser has not come up. It is expected that 'Ubuntu manpage' @ manpage.ubuntu com / manpages / lucid / man7 / netdevice.7.html, for example, may be sufficient for addition to things like Structure Sokadar, you can use the Linux kernel api browser (or Some similarly) because it is related to standard Linux networking protocol headers.
Comments
Post a Comment