Date: Wed, 21 Feb 2001 15:21:20 +1300 From: Jonathan Chen <jonathan.chen@itouch.co.nz> To: Don Wilde <Don@Silver-Lynx.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tcsetaddr Message-ID: <20010221152120.A10691@itouchnz.itouch> In-Reply-To: <3A930E61.3632A279@Silver-Lynx.com>; from Don@Silver-Lynx.com on Tue, Feb 20, 2001 at 05:40:01PM -0700 References: <3A930E61.3632A279@Silver-Lynx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <termios.h> main () { struct termios buf; tcgetattr (0, &buf); } jonc-~,3.19pm> cc a.c jonc-~,3.19pm> -- Jonathan Chen <jonathan.chen@itouch.co.nz> ---------------------------------------------------------------------- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010221152120.A10691>