From: Andries Brouwer
Date: Tue Nov 09 2004 - 05:36:46 EST
On Mon, Nov 08, 2004 at 09:27:47PM -0800, Andrew Morton wrote:
> As for the limitation of 256 legacy ptys: we should either raise it by
> cooking up new device names or limit it to 256 in config. The latter, I
> guess. Is there a requirement to support more than 256 legacy ptys?
No. glibc uses 256 of them.
To make life interesting they use names
while BSD used
and the first ENOENT terminates the search, so old BSD programs
might see only 16 ptys.
I would be inclined to remove the variable CONFIG_LEGACY_PTY_COUNT,
using 256. If one really wants to use CONFIG_LEGACY_PTYS, that is
the right number. So, in include/linux/tty.h:
- #define NR_PTYS CONFIG_LEGACY_PTY_COUNT
+ #define NR_PTYS 256
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/