Thread: Book on Linux API in C

  1. #1
    Registered User jmpeer's Avatar
    Join Date
    Jan 2010
    Posts
    5

    Book on Linux API in C

    Yo, are there any books that cover the Linux API in C?

    I haven't seen any in the local bookstores or library, but I'm sure there's gotta be at least one good book.
    From my experiences and what I hear, a lot of computer related books tend to be more like observations
    about the subject, rather than the actual instruction of the subject. So please don't reference what you can not actually recommend.
    Last edited by jmpeer; 04-29-2010 at 08:49 PM.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    131

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I'm eagerly awaiting my (used) copy of this to arrive:

    Amazon.com: Professional Linux Kernel Architecture (Wrox Programmer to Programmer) (9780470343432): Wolfgang Mauerer: Books

    So I can't really say if it is as good as it looks yet. I'm presuming by "linux API" you mean the kernel, since linux is an OS kernel, so the kernel API would be "the linux API".

    However, if you just mean a guide to glibc, the C library used on GNU systems, this is the reference manual:

    The GNU C Reference Manual - GNU Project - Free Software Foundation (FSF)

    There's html on line or pdf to download. If you want to download the HTML, something like:
    Code:
     
    wget -r -np -k -p http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html
    should work.
    Last edited by MK27; 04-30-2010 at 10:05 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Registered User jmpeer's Avatar
    Join Date
    Jan 2010
    Posts
    5
    Precisely. It is Linux, the kernel, that has an API. Identifying Linux as a kernel when trying to identify its API is unnecessary.

    That book seems good by looking at it's table of contents.

    But I'm always suspicious of anything that has titles like "Professional" or is by a company that puts out a lot of programming books like "Wrox" or has introductory chapters that are overviews, histories, about setting up, about using enviornments, or about using tools, or when you can flip through any chapter and not see a complete source code example and plenty of smaller bits of code referencing it.

    Those books tend to suck. They're more observational than instructional. You learn ABOUT something, but not how to DO something, implement a concept, unless you were already developing on that level, which, as we go down towards the kernel Linux, a lot of us aren't.

    I was looking at Linux Kernel Programming (3rd edition) and Professional Linux Programming (not as much as the other). I'll see if I can find a pdf of yours to check it out and perhaps just try buying one of these and see how it turns out.
    Last edited by jmpeer; 04-30-2010 at 01:45 PM.

  5. #5
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    I like a couple of books for Linux programming; one of the best for Linux specifically I have found to be "Linux System Programming by Robert Love" a well-known kernel hacker. Another that I like is the Advanced UNIX Programming series (I have vols 1-3) by Stevens. Most of my best Linux books are at work so will have to consult them and get back. Oh yeah would also heavily recommend Programming POSIX Threads, forgot who did it but it is quite good.
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Want to learn Windows API for Game Programming
    By George M. in forum Windows Programming
    Replies: 15
    Last Post: 09-28-2008, 10:26 AM
  2. Replies: 8
    Last Post: 03-10-2008, 12:08 PM
  3. Is Linux Really A Programmers OS?
    By SourceCode in forum A Brief History of Cprogramming.com
    Replies: 43
    Last Post: 04-07-2003, 09:24 PM
  4. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM