Re: SIGSEGV on fclose.

From: David Woodhouse (dwmw2@infradead.org)
Date: Thu Jul 13 2000 - 04:35:32 EST


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.

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.

--
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