From owner-freebsd-hackers Thu Dec 28 09:25:38 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA18301 for hackers-outgoing; Thu, 28 Dec 1995 09:25:38 -0800 (PST) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA18296 for ; Thu, 28 Dec 1995 09:25:36 -0800 (PST) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id LAA07111; Thu, 28 Dec 1995 11:25:02 -0600 From: Joe Greco Message-Id: <199512281725.LAA07111@brasil.moneng.mei.com> Subject: Re: ecu-3.38/POSIX question To: obrien@cs.ucdavis.edu (David E. O'Brien) Date: Thu, 28 Dec 1995 11:25:02 -0600 (CST) Cc: freebsd-hackers@freebsd.org In-Reply-To: <9512280902.AA01712@toadflax.cs.ucdavis.edu> from "David E. O'Brien" at Dec 28, 95 01:02:08 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > 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