I need some win32 API (related to COM port connection) alternatives in linux please?!

Hi all,

Maybe my request be somewhat irrelevant to this forum, but I believe you
could help me…

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.

“somewhat irrelevant”? How about entirely off topic.

Please take this question to a more appropriate forum.

Peter
OSR