From owner-freebsd-hackers Thu Mar 12 19:27:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA07891 for freebsd-hackers-outgoing; Thu, 12 Mar 1998 19:27:04 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA07835 for ; Thu, 12 Mar 1998 19:26:47 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id NAA01566; Fri, 13 Mar 1998 13:56:44 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id NAA08269; Fri, 13 Mar 1998 13:56:44 +1030 (CST) (envelope-from grog) Message-ID: <19980313135643.01194@freebie.lemis.com> Date: Fri, 13 Mar 1998 13:56:43 +1030 From: Greg Lehey To: David Kelly , Zoltan Sebestyen Cc: FreeBSD hackers mailinglist Subject: Re: A Question about FreeBSD and Linux(programming) References: <199803130244.UAA02512@nospam.hiwaay.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199803130244.UAA02512@nospam.hiwaay.net>; from David Kelly on Thu, Mar 12, 1998 at 08:44:46PM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 12 March 1998 at 20:44:46 -0600, David Kelly wrote: > Zoltan Sebestyen writes: >> Hi, >> >> I have to write an application on Linux that deals with the serial port. >> I have installed a Redhat besides the FreeBSD(I didn't erase FBSD it'll >> stay there until the end of the world), but finally gave up to use it. >> Does anyone(for example Doug White ;-) know if the termio functions (like >> tcgetattr tcsetattr tcflush tcdrain) behave on FBSD like on Linux? These should be termios (POSIX.1), not termio (System V). I'm pretty sure that Linux adheres to them. You may find minor differences in the handling of the control characters and the mapping of the timeout and delay parameters to the control characters. > I don't see a specific mention of FreeBSD or Linux in Greg Lehey's book, > "Porting Unix Software" but chapter 15, "Terminal Drivers", pages 269 > thru 306 should prove interesting reading. FreeBSD was in its infancy when I wrote that book. It's mentioned in passing along with the other BSD derivatives on page 7. Linux is mentioned in a number of places where it diverges from UNIX. FreeBSD doesn't really need much mention in this book: the book mainly compares the BSD and System V approaches, and apart from the fact that BSD has since acquired some System Visms (such as poll () and the Three Ugly Sisters), you can assume that FreeBSD is the protoypical BSD described in the book. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message