DragonFly BSD
DragonFly users List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Stdio and DragonFly changes


From: Jonas Trollvik <jontro@xxxxxxxxx>
Date: Wed, 28 Sep 2005 13:49:53 +0200

Cant this be done with select or an ioctl?
As far as I understand the application shouldnt depend on the fields
in FILE since these might change. That's one of the reasons
sizeof(FILE) is disallowed.

-Jonas

On 9/28/05, Dave Hayes <dave@xxxxxxxxxxx> wrote:
> I'm looking at a codefragment like this:
>
>    if (stdin->_bf._size > 0)
>        return 1;
>
> DragonFly's FILE struct has no _bf record. I think this code is
> trying to see if anything is in the stdin buffer. What would the
> proper way be on DragonFly? I'm thinking:
>
>    if (stdin->_lbfsize > 0)
>        return 1;
>
> as a wild uneducated guess.
> ------
> Dave Hayes - Consultant - Altadena CA, USA - dave@xxxxxxxxxxx
> >>> The opinions expressed above are entirely my own <<<
>
> To me, it's a good idea to always carry two sacks of
> something when you walk around. That way, if anybody says,
> "Hey, can you give me a hand?" You can say, "Sorry, got
> these sacks."
>
>
>




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]