svr4_termios.c (83366) | svr4_termios.c (92761) |
---|---|
1/* 2 * Copyright (c) 1998 Mark Newton 3 * Copyright (c) 1994 Christos Zoulas 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/* 2 * Copyright (c) 1998 Mark Newton 3 * Copyright (c) 1994 Christos Zoulas 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/compat/svr4/svr4_termios.c 83366 2001-09-12 08:38:13Z julian $ | 28 * $FreeBSD: head/sys/compat/svr4/svr4_termios.c 92761 2002-03-20 05:48:58Z alfred $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/proc.h> 33#include <sys/systm.h> 34#include <sys/file.h> 35#include <sys/filedesc.h> 36#include <sys/termios.h> --- 8 unchanged lines hidden (view full) --- 45#ifndef __CONCAT3 46# if __STDC__ 47# define __CONCAT3(a,b,c) a ## b ## c 48# else 49# define __CONCAT3(a,b,c) a/**/b/**/c 50# endif 51#endif 52 | 29 */ 30 31#include <sys/param.h> 32#include <sys/proc.h> 33#include <sys/systm.h> 34#include <sys/file.h> 35#include <sys/filedesc.h> 36#include <sys/termios.h> --- 8 unchanged lines hidden (view full) --- 45#ifndef __CONCAT3 46# if __STDC__ 47# define __CONCAT3(a,b,c) a ## b ## c 48# else 49# define __CONCAT3(a,b,c) a/**/b/**/c 50# endif 51#endif 52 |
53static u_long bsd_to_svr4_speed __P((u_long, u_long)); 54static u_long svr4_to_bsd_speed __P((u_long, u_long)); 55static void svr4_to_bsd_termios __P((const struct svr4_termios *, 56 struct termios *, int)); 57static void bsd_to_svr4_termios __P((const struct termios *, 58 struct svr4_termios *)); 59static void svr4_termio_to_termios __P((const struct svr4_termio *, 60 struct svr4_termios *)); 61static void svr4_termios_to_termio __P((const struct svr4_termios *, 62 struct svr4_termio *)); | 53static u_long bsd_to_svr4_speed(u_long, u_long); 54static u_long svr4_to_bsd_speed(u_long, u_long); 55static void svr4_to_bsd_termios(const struct svr4_termios *, 56 struct termios *, int); 57static void bsd_to_svr4_termios(const struct termios *, 58 struct svr4_termios *); 59static void svr4_termio_to_termios(const struct svr4_termio *, 60 struct svr4_termios *); 61static void svr4_termios_to_termio(const struct svr4_termios *, 62 struct svr4_termio *); |
63#ifdef DEBUG_SVR4 | 63#ifdef DEBUG_SVR4 |
64static void print_svr4_termios __P((const struct svr4_termios *)); 65static void print_bsd_termios __P((const struct termios *)); | 64static void print_svr4_termios(const struct svr4_termios *); 65static void print_bsd_termios(const struct termios *); |
66#endif /* DEBUG_SVR4 */ 67 68#define undefined_char(a,b) /**/ 69#define undefined_flag1(f,a,b) /**/ 70#define undefined_flag2(f,a,b,c1,t1,c2,t2) /**/ 71#define undefined_flag4(f,a,b,c1,t1,c2,t2,c3,t3,c4,t4) /**/ 72 73#define svr4_to_bsd_char(a,b) \ --- 534 unchanged lines hidden --- | 66#endif /* DEBUG_SVR4 */ 67 68#define undefined_char(a,b) /**/ 69#define undefined_flag1(f,a,b) /**/ 70#define undefined_flag2(f,a,b,c1,t1,c2,t2) /**/ 71#define undefined_flag4(f,a,b,c1,t1,c2,t2,c3,t3,c4,t4) /**/ 72 73#define svr4_to_bsd_char(a,b) \ --- 534 unchanged lines hidden --- |