lkml.org 
[lkml]   [2004]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.369 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site