From owner-freebsd-current Tue Feb 24 11:57:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA24395 for freebsd-current-outgoing; Tue, 24 Feb 1998 11:57:11 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from starbase.spd.louisville.edu (vegold01@starbase.spd.louisville.edu [136.165.99.61]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA24389 for ; Tue, 24 Feb 1998 11:57:09 -0800 (PST) (envelope-from vegold01@starbase.spd.louisville.edu) Received: (from vegold01@localhost) by starbase.spd.louisville.edu (8.7.6/8.6.12) id OAA28243; Tue, 24 Feb 1998 14:56:55 -0500 (EST) From: Ed Gold Message-Id: <199802241956.OAA28243@starbase.spd.louisville.edu> Subject: Re: problems with XView and FreeBSD To: toor@dyson.iquest.net (John S. Dyson) Date: Tue, 24 Feb 1998 14:56:55 EST Cc: freebsd-current@FreeBSD.ORG In-Reply-To: <199802241655.LAA00660@dyson.iquest.net>; from "John S. Dyson" at Feb 24, 98 11:55 am X-Mailer: Elm [revision: 212.4] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > V Edward Gold, Jr. said: > > I just recently started playing with an application that was written > > originally on SunOS 4.1.3 and I ported it to FreeBSD 2.2.1 and > > everything was fine. I upgraded to 3.0 and now I experience problems > > apparently caused by using the notify_do_dispatch() call and ANY > > subsequent file I/O. I went ahead and attached the sample program that > > demonstrates this oddity, in case anyone wants to help me locate its > > source/cure. I compile it as follows: > > gcc -o main main.c -I/usr/X11R6/include -g -L/usr/X11R6/lib -lxview > > \ -lX11 -lolgx > > > > while( 1 ) > > { > > char cmd_buffer[1024]; > > sprintf( msg, prompt ); > > write( fileno( stdout ), msg, strlen( msg ) ); > > fflush( stdout ); > > while( read( fileno(stdin), sizeof(cmd_buffer), cmd_buffer ) != 0 ); > > The order of args is wrong ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ > > > } > > > > free( cmd_word ); > > } > > John, I appreciate the reply! Unfortunately, the real problem was that I was being a moron. I wrote up that example incorrectly, but to compound the problem, I was using the xview library from FreeBSD 2.2.1 instead of upgrading to the one from the ports. I recompiled from ports this morning and everything was groovy. Sorry for putting you through this pointless exercise. I also wish to apologize to everyone else for the wasted bandwidth. Thanks again, Ed To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message