tty_tty.c (32726) | tty_tty.c (33679) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 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_tty.c 8.2 (Berkeley) 9/23/93 | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 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_tty.c 8.2 (Berkeley) 9/23/93 |
34 * $Id: tty_tty.c,v 1.21 1997/12/05 19:55:39 bde Exp $ | 34 * $Id: tty_tty.c,v 1.22 1998/01/24 02:54:35 eivind Exp $ |
35 */ 36 37/* 38 * Indirect driver for controlling tty. 39 */ 40 41#include "opt_devfs.h" 42 --- 129 unchanged lines hidden (view full) --- 172 struct vnode *ttyvp = cttyvp(p); 173 174 if (ttyvp == NULL) 175 /* try operation to get EOF/failure */ 176 return (seltrue(dev, events, p)); 177 return (VOP_POLL(ttyvp, events, p->p_ucred, p)); 178} 179 | 35 */ 36 37/* 38 * Indirect driver for controlling tty. 39 */ 40 41#include "opt_devfs.h" 42 --- 129 unchanged lines hidden (view full) --- 172 struct vnode *ttyvp = cttyvp(p); 173 174 if (ttyvp == NULL) 175 /* try operation to get EOF/failure */ 176 return (seltrue(dev, events, p)); 177 return (VOP_POLL(ttyvp, events, p->p_ucred, p)); 178} 179 |
180static ctty_devsw_installed = 0; | 180static int ctty_devsw_installed; |
181#ifdef DEVFS 182static void *ctty_devfs_token; 183#endif 184 185static void ctty_drvinit __P((void *unused)); 186static void 187ctty_drvinit(unused) 188 void *unused; --- 16 unchanged lines hidden --- | 181#ifdef DEVFS 182static void *ctty_devfs_token; 183#endif 184 185static void ctty_drvinit __P((void *unused)); 186static void 187ctty_drvinit(unused) 188 void *unused; --- 16 unchanged lines hidden --- |