pty.c (36735) | pty.c (37683) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)tty_pty.c 8.4 (Berkeley) 2/20/95 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)tty_pty.c 8.4 (Berkeley) 2/20/95 |
34 * $Id: tty_pty.c,v 1.51 1998/02/25 06:19:15 bde Exp $ | 34 * $Id: tty_pty.c,v 1.52 1998/06/07 17:11:43 dfr Exp $ |
35 */ 36 37/* 38 * Pseudo-teletype Driver 39 * (Actually two drivers, requiring two entries in 'cdevsw') 40 */ 41#include "pty.h" /* XXX */ 42#include "opt_compat.h" --- 767 unchanged lines hidden (view full) --- 810 ptc_devsw_installed = 1; 811#ifdef DEVFS 812 for ( i = 0 ; i<NPTY ; i++ ) { 813 j = i / 32; 814 k = i % 32; 815 devfs_token_pts[i] = 816 devfs_add_devswf(&pts_cdevsw,i, 817 DV_CHR,0,0,0666, | 35 */ 36 37/* 38 * Pseudo-teletype Driver 39 * (Actually two drivers, requiring two entries in 'cdevsw') 40 */ 41#include "pty.h" /* XXX */ 42#include "opt_compat.h" --- 767 unchanged lines hidden (view full) --- 810 ptc_devsw_installed = 1; 811#ifdef DEVFS 812 for ( i = 0 ; i<NPTY ; i++ ) { 813 j = i / 32; 814 k = i % 32; 815 devfs_token_pts[i] = 816 devfs_add_devswf(&pts_cdevsw,i, 817 DV_CHR,0,0,0666, |
818 "tty%c%n",jnames[j],k); | 818 "tty%c%r",jnames[j],k); |
819 devfs_token_ptc[i] = 820 devfs_add_devswf(&ptc_cdevsw,i, 821 DV_CHR,0,0,0666, | 819 devfs_token_ptc[i] = 820 devfs_add_devswf(&ptc_cdevsw,i, 821 DV_CHR,0,0,0666, |
822 "pty%c%n",jnames[j],k); | 822 "pty%c%r",jnames[j],k); |
823 } 824#endif 825 } 826} 827 828SYSINIT(ptcdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR_C,ptc_drvinit,NULL) | 823 } 824#endif 825 } 826} 827 828SYSINIT(ptcdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR_C,ptc_drvinit,NULL) |