1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00

11420: Src/Modules/zpty.c: try more pty device files.

This commit is contained in:
Tanaka Akira 2000-05-16 18:16:19 +00:00
parent 6c44d97386
commit 590475e1b7
2 changed files with 11 additions and 4 deletions

@ -1,3 +1,7 @@
2000-05-16 Tanaka Akira <akr@zsh.org>
* 11420: Src/Modules/zpty.c: try more pty device files.
2000-05-16 Bart Schaefer <schaefer@zsh.org>
* 11419: Test/Makefile.in: Interpolate TESTNUM variable in the

@ -213,13 +213,16 @@ static int
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;