From owner-freebsd-hackers Wed Mar 11 10:00:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA19580 for freebsd-hackers-outgoing; Wed, 11 Mar 1998 10:00:21 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cam.grad.kiev.ua (grad-UTC-28k8.ukrtel.net [195.5.25.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA19561 for ; Wed, 11 Mar 1998 10:00:04 -0800 (PST) (envelope-from Ruslan@Shevchenko.kiev.ua) Received: from Shevchenko.kiev.ua (localhost [127.0.0.1]) by cam.grad.kiev.ua (8.8.8/8.8.5) with ESMTP id TAA05712; Wed, 11 Mar 1998 19:56:53 +0200 (EET) Message-ID: <3506D05E.C57B53A@Shevchenko.kiev.ua> Date: Wed, 11 Mar 1998 19:56:50 +0200 From: Ruslan Shevchenko Reply-To: rssh@grad.kiev.ua X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-STABLE i386) MIME-Version: 1.0 To: Zoltan Sebestyen CC: FreeBSD hackers mailinglist Subject: Re: A Question about FreeBSD and Linux(programming) References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Zoltan Sebestyen wrote: > 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? > standart port commands: #ifdef HAVE_TERMIOS #include ?termios.h> #define termio termios #define TCSETATTR TIOSETADDR #define TCGETADDR TIOGETADDR #define ... // +prefix TIO #else #include ?termio.h> #endif P.S: may be include in FreeBSD termio.h, with translation to termios. becouse, it is common problem in porting application from SYSV. I can wrote one, if it would be committed . > Thanks > > -------------------------------------------------------------------------------- > Sebestyen Zoltan It all seems so stupid, > it makes me want to give up. > szoli@digo.inf.elte.hu But why should I give up, > when it all seems so stupid? > > MAKE INSTALL NOT WAR And please avoid Necrosoft Widows > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- @= //RSSH mailto:Ruslan@Shevchenko.Kiev.UA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message