From owner-freebsd-questions Tue Feb 20 18:21:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id D771137B401 for ; Tue, 20 Feb 2001 18:21:32 -0800 (PST) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.2/8.11.1) id f1L2LKk12199; Wed, 21 Feb 2001 15:21:20 +1300 (NZDT) (envelope-from jonc) Date: Wed, 21 Feb 2001 15:21:20 +1300 From: Jonathan Chen To: Don Wilde Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tcsetaddr Message-ID: <20010221152120.A10691@itouchnz.itouch> References: <3A930E61.3632A279@Silver-Lynx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A930E61.3632A279@Silver-Lynx.com>; from Don@Silver-Lynx.com on Tue, Feb 20, 2001 at 05:40:01PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Feb 20, 2001 at 05:40:01PM -0700, Don Wilde wrote: > Hi, folks - > > I'm trying to use tcsetaddr and tcgetaddr as Stevens does in Adv. Unix > System Prog., chapter 11, on a 4.2-STABLE system, but my compile fails > on link, saying that these are 'undefined references'. I looked around, > and I see the main.c function for getty using it. What am I missing? You've spelled it wrong. It's tcsetattr(3), tcgetattr(3). jonc-~,3.19pm> cat a.c #include main () { struct termios buf; tcgetattr (0, &buf); } jonc-~,3.19pm> cc a.c jonc-~,3.19pm> -- Jonathan Chen ---------------------------------------------------------------------- Do not take life too seriously. You will never get out of it alive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message