Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    For the file functions you just take the standard C runtime library calls.
    Debian GNU/Linux -- You know you want it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...