tty.c (3323) | tty.c (3396) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)tty.c 8.8 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)tty.c 8.8 (Berkeley) 1/21/94 |
39 * $Id: tty.c,v 1.7 1994/10/02 17:35:29 phk Exp $ | 39 * $Id: tty.c,v 1.8 1994/10/03 01:12:18 ache Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/ioctl.h> 45#include <sys/proc.h> 46#define TTYDEFCHARS 47#include <sys/tty.h> --- 1427 unchanged lines hidden (view full) --- 1475 ttstart(tp); 1476 if (wait == 0 || curproc->p_siglist != oldsig) { 1477 splx(s); 1478 return (0); 1479 } 1480 timeout((void (*)__P((void *)))wakeup, 1481 (void *)&tp->t_outq, hz); 1482 SET(tp->t_state, TS_ASLEEP); | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/ioctl.h> 45#include <sys/proc.h> 46#define TTYDEFCHARS 47#include <sys/tty.h> --- 1427 unchanged lines hidden (view full) --- 1475 ttstart(tp); 1476 if (wait == 0 || curproc->p_siglist != oldsig) { 1477 splx(s); 1478 return (0); 1479 } 1480 timeout((void (*)__P((void *)))wakeup, 1481 (void *)&tp->t_outq, hz); 1482 SET(tp->t_state, TS_ASLEEP); |
1483 sleep((caddr_t)&tp->t_outq, PZERO - 1); | 1483 (void) tsleep((caddr_t)&tp->t_outq, PZERO - 1, "ttoutq", 0); |
1484 } 1485 splx(s); 1486 return (1); 1487} 1488 1489/* 1490 * Process a write call on a tty device. 1491 */ --- 578 unchanged lines hidden --- | 1484 } 1485 splx(s); 1486 return (1); 1487} 1488 1489/* 1490 * Process a write call on a tty device. 1491 */ --- 578 unchanged lines hidden --- |