SerialPort problem in UNIX Squeak 3.0 vm on FreeBSD

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Tue May 22 10:10:36 UTC 2001


On Mon, 21 May 2001, Peter William Lount wrote:

> As for naming ports there seems to be different port names depending
> on the OS and Serial port driver. How about letting someone open a
> port on an actual device name instead of a port number? Each port
> would need the possibility of opening it with a different name as a
> system might have more than one kind of device driver installed. i.e.
> a 16 port serial device plus the basic ports. Also, under unix devices
> have multiple names for accessing the same device in different
> ways.... Sigh...

A simple portable way to do this (short of changing the API) would be to
set environment variables mapping numbers to serial devices, like

	SQUEAK_SERIAL_0="/dev/cuaa0"
        SQUEAK_SERIAL_1="/dev/cuaa1"

The default base ("/dev/cuaa", "/dev/tty" etc) could be figured out by
autoconf.

-- Bert







More information about the Squeak-dev mailing list