Stdio and DragonFly changes
Jonas Trollvik
jontro at gmail.com
Wed Sep 28 04:52:07 PDT 2005
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 at 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 at 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."
>
>
>
More information about the Users
mailing list