-
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.
-
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
-
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...
-
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
-
Thanks again!
Let me see if ihave installed all the docs...