From ca81364fb1e7a01f6077ae7b573e7b0fbd8ec2e1 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 13 Dec 2007 00:08:59 +0000 Subject: [PATCH] Update posix_openpt(3) to handle 512 ptys. This was missed in the earlier pty(4) changes. MFC after: 3 days --- lib/libc/stdlib/grantpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdlib/grantpt.c b/lib/libc/stdlib/grantpt.c index f6f31b261301..ce6749284151 100644 --- a/lib/libc/stdlib/grantpt.c +++ b/lib/libc/stdlib/grantpt.c @@ -63,10 +63,10 @@ __FBSDID("$FreeBSD$"); /* * The following are range values for pseudo TTY devices. Pseudo TTYs have a - * name of /dev/[pt]ty[p-sP-S][0-9a-v], yielding 256 combinations per major. + * name of /dev/[pt]ty[l-sL-S][0-9a-v], yielding 256 combinations per major. */ #define PT_MAX 256 -#define PT_DEV1 "pqrsPQRS" +#define PT_DEV1 "pqrsPQRSlmnoLMNO" #define PT_DEV2 "0123456789abcdefghijklmnopqrstuv" /*