Messages in this thread | | | Date | Tue, 9 Nov 2004 11:33:54 +0100 | From | Andries Brouwer <> | Subject | Re: 2.6.10-rc1-mm3 |
| |
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 "pqrstuvwxyzabcde"/"0123456789abcdef" while BSD used "pqrsPQRS"/"0123456789abcdefghijklmnopqrstuv" 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
Andries - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |