Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Nov 1998 10:11:15 +0300 (MSK)
From:      "Pavel V. Antipov" <pavel@ikar.elect.ru>
To:        dD <nhadi@cbn.net.id>
Cc:        questions@FreeBSD.ORG
Subject:   Re: RS232 Programming
Message-ID:  <Pine.BSF.3.96.981103100704.280A-100000@ikar.elect.ru>
In-Reply-To: <007a01be0612$9f7d9ca0$01010a0a@imq21.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> I've just connected a modem to my PC under FreeBSD O/S.  I need to write a
> program to read from the port any incoming data.  What system calls must I
> use and the sequence of the calls?
> Anyone can help me???.  Thanks in advance.
> 
> regards,
> nurhadi
> 

Hi !

Syscalls:
   open
   read
   write
   close

More see in /usr/include/termios.h or man tcsetattr.
You may change port attributes (speed, parity, etc)


 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981103100704.280A-100000>