[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: serial and baud rate



How about running setserial and strace together to see what IOCTLs does
setserial use?
(Disclaimer:  I am not next to a Linux box at the moment, so I couldn't
test my own suggestion.)
                                                  --- Omer

On Sun, 13 Dec 1998, Erez Doron wrote:

> Hi
> 
> I'm porting a program i wrote for dos, to linux.
> I use the serial port via /dev/ttyS#
> 
> now i want to change baud rates, how do i do that ?
> how do i set it to non standard baud rates (like 115200/4=28800)
> 
> i do not want to use an external util (like setserial) but do it
> via system calls or ioctl.
> 
> regards
> erez.
> 
>