Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 1998 14:56:55 EST
From:      Ed Gold <vegold01@starbase.spd.louisville.edu>
To:        toor@dyson.iquest.net (John S. Dyson)
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: problems with XView and FreeBSD
Message-ID:  <199802241956.OAA28243@starbase.spd.louisville.edu>
In-Reply-To: <199802241655.LAA00660@dyson.iquest.net>; from "John S. Dyson" at Feb 24, 98 11:55 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802241956.OAA28243>