Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
pty device files.
- X-seq: zsh-workers 11420
- From: Tanaka Akira <akr@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: pty device files.
- Date: 17 May 2000 03:15:42 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I found that FreeBSD may have pty[p-sP-S][0-9a-v].
http://www.jp.freebsd.org/cgi/cvsweb.cgi/src/etc/MAKEDEV.diff?r1=1.65&r2=1.66
I modified default char1 to [p-zP-T] because NetBSD 1.4.2, OpenBSD
2.6, SunOS 4.1.4 may have them at least.
http://cvsweb.netbsd.org/cgi-bin/cvsweb.cgi/basesrc/etc/etc.i386/MAKEDEV.diff?r1=1.53&r2=1.54
Index: Src/Modules/zpty.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zpty.c,v
retrieving revision 1.7
diff -u -r1.7 zpty.c
--- Src/Modules/zpty.c 2000/05/08 11:06:27 1.7
+++ Src/Modules/zpty.c 2000/05/16 18:08:35
@@ -213,13 +213,16 @@
get_pty(int master, int *retfd)
{
-#ifdef __linux
+#if defined(__linux)
static char char1[] = "abcdefghijklmnopqrstuvwxyz";
static char char2[] = "0123456789abcdef";
-#else /* ! __linux */
- static char char1[] = "pq";
+#elif defined(__FreeBSD__)
+ static char char1[] = "pqrsPQRS";
+ static char char2[] = "0123456789abcdefghijklmnopqrstuv";
+#else
+ static char char1[] = "pqrstuvwxyzPQRST";
static char char2[] = "0123456789abcdef";
-#endif /* __linux */
+#endif
static char name[11];
static int mfd, sfd;
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author