madsdyd@challenge.dk said:
> Do you by any chance have a reference for the ANSI C standard? (I
> don't, but would really like to have :-( ).
Nah - I'm just guessing and handwaving. It's no fun if you know you're
right :)
> > You're already dealing with a filedescriptor there. The "struct file *"
> > within Linux is entirely different to the 'FILE *' in userspace. >
> I know that, hence my reference to glibc-for-linux. I probably
> shouldn't have posted that piece of code.
The kernel has to do the check. Oopsing if it's given a bad fd would be a
BadThing(tm). For glibc, it's more acceptable just to segfault and die if
the user does silly things - because only the offending process will be
affected.
-- dwmw2- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:16 EST