Re: SIGSEGV on fclose.

From: Mads Bondo Dydensborg (madsdyd@challenge.dk)
Date: Thu Jul 13 2000 - 04:46:36 EST


On Thu, 13 Jul 2000, David Woodhouse wrote:

>
> madsdyd@challenge.dk said:
> > The manpage says:
> > ERRORS
> > EBADF The argument stream is not an open stream.
>
> It's _permitted_ to return EBADF. It doesn't don't _have_ to.

Do you by any chance have a reference for the ANSI C standard? (I don't,
but would really like to have :-( ).
>
>
> madsdyd@challenge.dk said:
> > I do not know a lot about the Linux file system, but I found this in
> > fs/open.c:
>
> 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.

Mads

-- 
Mads Bondo Dydensborg.                               madsdyd@challenge.dk
At some point, bits have to go into packets and routers need to make 
decisions on them. Changes at that level is what I want to hear about, not 
strategic company relationships.

- John Carmack, commenting on why he (for now) does not actively support the PowerPlay initiative

- 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