Results 1 to 2 of 2
Hi all,
I'm porting a Win32 program into linux.
The program's name is "Serial Wrapper" that is intended to open a handle to a device in COM port and read ...
- 06-28-2010 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 27
I need some win32 API alternatives in linux please?!
Hi all,
I'm porting a Win32 program into linux.
The program's name is "Serial Wrapper" that is intended to open a handle to a device in COM port and read or write some data to it by functions and structures such:
DCB
CreateFile
GetCommState
SetCommState
SetCommMask
WriteFile
ReadFile
SetCommTimeouts
...
but I have problem in replacing them by the appropriate alternatives in linux, because I'm new to linux APIs!
I've searched and found that the related header files are "sys/select.h" and " termios.h", I saw them but they didn't help me so much!!
Please share your experiences with me in this issue...
TIA.
- 06-28-2010 #2
For the file functions you just take the standard C runtime library calls.
Debian GNU/Linux -- You know you want it.


Reply With Quote