Re: [Code]: Ascii Pfiles on BSD?

From: Erwin S. Andreasen (erwin@ANDREASEN.COM)
Date: 07/20/98


On Mon, 20 Jul 1998, Henrik Stuart wrote:

> After having spent countless hours putting ascii pfiles into my bpl14 on
> my linux box I eagerly uploaded it to my bsd shell. Terror struck, as
> they wouldn't load, because diskio.c have: struct has no member named
> '_fileno', so I was wondering if any of you guys have ported ascii

I don't know what the person who has made that code is trying to do, but I
guess something like "fp->_fileno" ? That is extremely unportable. To get
the file descriptor of a FILE* you can use the fileno function, i.e.
fileno(fp) will return file descriptor attached to that buffered IO
stream.


--
 =============================================================================
<erwin@andreasen.com>      Herlev, Denmark              UNIX System Programmer
<URL:http://www.abandoned.org/drylock/>     <*>         (not speaking for) DDE
 =============================================================================


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST