Re: [PATCH 1/2] avoid OPEN_MAX in SCM_MAX_FD

From: Linus Torvalds
Date: Tue Mar 13 2007 - 21:16:06 EST




On Tue, 13 Mar 2007, Roland McGrath wrote:
>
> Ok, fine. But PATH_MAX is a real constant that has some meaning in the
> kernel. It's perfectly correct to use PATH_MAX as a constant on a system
> like Linux that defines it and means what it says. Conversely, OPEN_MAX
> has no useful relationship with anything the kernel is doing at all.

Sure. I'm just saying that some people may use OPEN_MAX the way I know
people use PATH_MAX - whether it's what you're supposed to or not.

I do agree that PATH_MAX is much more appropriate to be used that way, and
is more likely to have "real" meaning, I just worry.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/