Date: Thu, 28 Dec 1995 11:25:02 -0600 (CST) From: Joe Greco <jgreco@brasil.moneng.mei.com> To: obrien@cs.ucdavis.edu (David E. O'Brien) Cc: freebsd-hackers@freebsd.org Subject: Re: ecu-3.38/POSIX question Message-ID: <199512281725.LAA07111@brasil.moneng.mei.com> In-Reply-To: <9512280902.AA01712@toadflax.cs.ucdavis.edu> from "David E. O'Brien" at Dec 28, 95 01:02:08 am
next in thread | previous in thread | raw e-mail | index | archive | help
> I'm trying to compile ecu-3.38 under FreeBSD 2.1.0. I am hitting a snag > with ``CBAUD'' in ldserial.c. > > Does anyone know what in the world ``CBAUD'' is? > > I grep'ed around under SunOS 4.1.1 and found: > > /* control modes */ > #ifndef _POSIX_SOURCE > #define CBAUD 0x0000000f > #endif > > Any ideas how I should proceed? > > (yes, I know there is a port of this, but the port is for an eariler > version that isn't on the master site anymore) >From memory, I believe it is the bit mask used for baud rates in c_cflag (i.e. the low nybble is used to select speed). I've run into this in the past and I remember having to code around it somewhat. Typical pseudocode use: getmodes() c_cflag &= ~CBAUD; /* Remove old baud rate */ c_cflag |= B_BAUD_RATE; /* Set new baud rate */ setmodes() ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512281725.LAA07111>