Where to find API(?)

This is a discussion on Where to find API(?) within the Linux Programming forums, part of the Platform Specific Boards category; Hi, I just started with serial programming and I am following a tutorial. Where can I find a list of ...

  1. #1
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203

    Question Where to find API(?)

    Hi, I just started with serial programming and I am following a tutorial.
    Where can I find a list of each (gcc) header file with its functions, stuctures and explanation of each function and use of the structures. This is because there is a lot of new *nix specific header file like termios.h etc that is not there in standard C which I have learned.
    The tutorial lists all the funtions and constants it uses but I want something like a reference; but not like man pages where I have to know the name of the function/command in the first place, to get its usage.

    Also my /dev/ directory lists a very large number of serial device file; not just ttyS0,1,2,3,4 but up to9 and even new ones like ttya1 etc. What does that indicate? I seem to have only a single 9pin connector at the back of the CPU.I am using Ubuntu 8.04.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It is far from a list of "each header file with it's functions", but "man open" or "man termios" will give you information on those functions - sometimes you need to tell man which section you want, if there are several different things called the same thing, e.g "man 2 open" will show you the system function open, even if there is other "open" functionality to look at elsewhere.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203

    Talking Thanks

    Ok, that's what i missed. I kept on trying stuff like
    Code:
    man open(3)
    man open[2]
    man open2
    and it kept saying not found.
    Thanks!!!!

    OOps! i can't get man 3 termios.
    It should be there... there is only termio and it says to look at termios(3) but it is not there...

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Maybe you haven't installed sufficient documentation packages. You can also google for "man termios" (that's what I just did, as I don't have a linux machine on my work-desk).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    Thanks again!
    Let me see if ihave installed all the docs...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows messenger API
    By GanglyLamb in forum Windows Programming
    Replies: 0
    Last Post: 07-10-2005, 03:52 AM
  2. Find Dialog
    By Lithorien in forum Windows Programming
    Replies: 6
    Last Post: 04-25-2005, 06:28 PM
  3. Programming with API?
    By ew16301 in forum Windows Programming
    Replies: 1
    Last Post: 03-15-2005, 06:37 PM
  4. Won't Return pointer, i can't find why...
    By ss3x in forum C++ Programming
    Replies: 2
    Last Post: 02-28-2002, 08:50 PM
  5. Am I loosing my time with API?
    By jester in forum Windows Programming
    Replies: 1
    Last Post: 12-31-2001, 06:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21