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

Re: [MiNT] Detecting dialup connections



On Sun, 26 Sep 1999 14:36:37 +0000, johnnie ligotage wrote:

> > Anyway, would anybody mind if we would recommend from now on "ttyS*" as
> > the names of the serial lines?
> I think this is an excellent idea. :-)

Why? What problems will this solve?

> I'm not quite sure why you would need the modem and serial entries though.

Because that's what MiNT use?

> And for those people that prefer the modem1, serial2, whatever/etc, maybe
> Frank could implement a new mint.cnf directive, that people could use, to
> add sym-links to what they are currently called, LEGACY_PORTS, or

I believe the other way around would be more appropriate. Why change the
names? So it *looks* more like Linux?

> worth striving for if we want to make [Free]MiNT a more useable,
> up-to-date os.

It won't add or improve functionality, it will (IMHO) only make it more
difficult to see which device to use when Joe User wants to use the modem
connected to the port named "Modem" on his Falcon.

What we need (it might even be implemented for all I know, but I haven't
seen it documented anywhere) is a way to detect if *any* device is a serial-
port, possibly with Fcntl. Then you can simply step through /dev and do a
Fcntl on each device. When you've found a serialport, use other opcodes to
retrieve information about supported baudrates, handshake etc. If you can get
the name of the physical connector as well *then* you can call the devices
whatever you like ;-)


/*
** Jo Even Skarstein    http://www.stud.ntnu.no/~josk/
**
**    beer - maria mckee - atari falcon - babylon 5
*/