From 37fd24a631c23ea7ea8049342ada60e49627d59a Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 8 Feb 1994 21:39:55 +0000 Subject: [PATCH] use normal major numbers for ptys --- etc/etc.sparc/MAKEDEV | 4 ++-- sys/arch/sparc/sparc/conf.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index f0d9dc45cf19..a32db2154c7d 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -168,8 +168,8 @@ pty*) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) - printf("mknod tty%s%x c 21 %d; \ - mknod pty%s%x c 20 %d; ", \ + printf("mknod tty%s%x c 20 %d; \ + mknod pty%s%x c 21 %d; ", \ n, i, b+i, n, i, b+i); }'` umask 77 if [ $class = 1 ]; then diff --git a/sys/arch/sparc/sparc/conf.c b/sys/arch/sparc/sparc/conf.c index 3de8d9066443..ad5c852c6d09 100644 --- a/sys/arch/sparc/sparc/conf.c +++ b/sys/arch/sparc/sparc/conf.c @@ -42,7 +42,7 @@ * @(#)conf.c 8.1 (Berkeley) 6/11/93 * * from: Header: conf.c,v 1.15 93/05/05 09:43:29 torek Exp (LBL) - * $Id: conf.c,v 1.7 1994/02/01 06:01:37 deraadt Exp $ + * $Id: conf.c,v 1.8 1994/02/08 21:41:47 deraadt Exp $ */ #include @@ -284,8 +284,8 @@ struct cdevsw cdevsw[] = cdev_disk_init(NSD,sd), /* 17: scsi disk */ cdev_notdef(), /* 18: should be scsi tape */ cdev_notdef(), /* 19 */ - cdev_ptc_init(NPTY,ptc), /* 20: pseudo-tty master */ - cdev_tty_init(NPTY,pts), /* 21: pseudo-tty slave */ + cdev_tty_init(NPTY,pts), /* 20: pseudo-tty slave */ + cdev_ptc_init(NPTY,ptc), /* 21: pseudo-tty master */ cdev_fb_init(1,fb), /* 22: /dev/fb indirect driver */ cdev_notdef(), /* 23 */ cdev_fd_init(1,fd), /* 24: /dev/std{in,out,err} */