From 52d35904012794bfb97cc17305a38d0da8c7351e Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 15 Dec 2020 00:38:14 +0700 Subject: [PATCH] Remove 1988-era copies of some SunOS headers. (#42) --- bin/makefile-tail | 7 +- inc/sunerrno.h | 121 --------------------------------- inc/sunfilio.h | 27 -------- inc/sunioccom.h | 33 --------- inc/suntermios.h | 119 -------------------------------- inc/sunttold.h | 170 ---------------------------------------------- inc/sunttycom.h | 69 ------------------- inc/sunttydev.h | 29 -------- 8 files changed, 3 insertions(+), 572 deletions(-) delete mode 100755 inc/sunerrno.h delete mode 100755 inc/sunfilio.h delete mode 100755 inc/sunioccom.h delete mode 100755 inc/suntermios.h delete mode 100755 inc/sunttold.h delete mode 100755 inc/sunttycom.h delete mode 100755 inc/sunttydev.h diff --git a/bin/makefile-tail b/bin/makefile-tail index d38da45..7933a83 100755 --- a/bin/makefile-tail +++ b/bin/makefile-tail @@ -356,10 +356,9 @@ $(OBJECTDIR)car-cdr.o : $(SRCDIR)car-cdr.c $(REQUIRED-INCS) $(INCDIR)lispemul. $(OBJECTDIR)chardev.o : $(SRCDIR)chardev.c $(REQUIRED-INCS) $(INCDIR)lispemul.h \ $(INCDIR)lispmap.h $(INCDIR)lspglob.h $(INCDIR)stream.h \ $(INCDIR)lsptypes.h $(INCDIR)address.h $(INCDIR)adr68k.h \ - $(INCDIR)arith.h $(INCDIR)locfile.h \ - $(INCDIR)sunerrno.h $(INCDIR)suntermios.h $(INCDIR)sunfilio.h \ - $(INCDIR)sunioccom.h $(INCDIR)sunttycom.h $(INCDIR)sunttold.h \ - $(INCDIR)sunttydev.h + $(INCDIR)arith.h $(INCDIR)locfile.h $(INCDIR)timeout.h \ + $(INCDIR)dbprint.h $(INCDIR)chardevdefs.h $(INCDIR)byteswapdefs.h \ + $(INCDIR)commondefs.h $(INCDIR)perrnodefs.h $(CC) $(RFLAGS) $(SRCDIR)chardev.c $(INLINE) -o $(OBJECTDIR)chardev$(OEXT) $(OBJECTDIR)rawcolor.o : $(SRCDIR)rawcolor.c $(REQUIRED-INCS) $(INCDIR)lispemul.h \ diff --git a/inc/sunerrno.h b/inc/sunerrno.h deleted file mode 100755 index 2aff1e7..0000000 --- a/inc/sunerrno.h +++ /dev/null @@ -1,121 +0,0 @@ -/* $Id: sunerrno.h,v 1.2 1999/01/03 02:06:24 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)errno.h 2.11 88/02/08 SMI; from UCB 4.1 82/12/28 */ - -/* - * Error codes - */ - -#define sunEPERM 1 /* Not owner */ -#define sunENOENT 2 /* No such file or directory */ -#define sunESRCH 3 /* No such process */ -#define sunEINTR 4 /* Interrupted system call */ -#define sunEIO 5 /* I/O error */ -#define sunENXIO 6 /* No such device or address */ -#define sunE2BIG 7 /* Arg list too long */ -#define sunENOEXEC 8 /* Exec format error */ -#define sunEBADF 9 /* Bad file number */ -#define sunECHILD 10 /* No children */ -#define sunEAGAIN 11 /* No more processes */ -#define sunENOMEM 12 /* Not enough core */ -#define sunEACCES 13 /* Permission denied */ -#define sunEFAULT 14 /* Bad address */ -#define sunENOTBLK 15 /* Block device required */ -#define sunEBUSY 16 /* Mount device busy */ -#define sunEEXIST 17 /* File exists */ -#define sunEXDEV 18 /* Cross-device link */ -#define sunENODEV 19 /* No such device */ -#define sunENOTDIR 20 /* Not a directory*/ -#define sunEISDIR 21 /* Is a directory */ -#define sunEINVAL 22 /* Invalid argument */ -#define sunENFILE 23 /* File table overflow */ -#define sunEMFILE 24 /* Too many open files */ -#define sunENOTTY 25 /* Not a typewriter */ -#define sunETXTBSY 26 /* Text file busy */ -#define sunEFBIG 27 /* File too large */ -#define sunENOSPC 28 /* No space left on device */ -#define sunESPIPE 29 /* Illegal seek */ -#define sunEROFS 30 /* Read-only file system */ -#define sunEMLINK 31 /* Too many links */ -#define sunEPIPE 32 /* Broken pipe */ - -/* math software */ -#define sunEDOM 33 /* Argument too large */ -#define sunERANGE 34 /* Result too large */ - -/* non-blocking and interrupt i/o */ -#define sunEWOULDBLOCK 35 /* Operation would block */ -#define sunEINPROGRESS 36 /* Operation now in progress */ -#define sunEALREADY 37 /* Operation already in progress */ -/* ipc/network software */ - - /* argument errors */ -#define sunENOTSOCK 38 /* Socket operation on non-socket */ -#define sunEDESTADDRREQ 39 /* Destination address required */ -#define sunEMSGSIZE 40 /* Message too long */ -#define sunEPROTOTYPE 41 /* Protocol wrong type for socket */ -#define sunENOPROTOOPT 42 /* Protocol not available */ -#define sunEPROTONOSUPPORT 43 /* Protocol not supported */ -#define sunESOCKTNOSUPPORT 44 /* Socket type not supported */ -#define sunEOPNOTSUPP 45 /* Operation not supported on socket */ -#define sunEPFNOSUPPORT 46 /* Protocol family not supported */ -#define sunEAFNOSUPPORT 47 /* Address family not supported by protocol family */ -#define sunEADDRINUSE 48 /* Address already in use */ -#define sunEADDRNOTAVAIL 49 /* Can't assign requested address */ - - /* operational errors */ -#define sunENETDOWN 50 /* Network is down */ -#define sunENETUNREACH 51 /* Network is unreachable */ -#define sunENETRESET 52 /* Network dropped connection on reset */ -#define sunECONNABORTED 53 /* Software caused connection abort */ -#define sunECONNRESET 54 /* Connection reset by peer */ -#define sunENOBUFS 55 /* No buffer space available */ -#define sunEISCONN 56 /* Socket is already connected */ -#define sunENOTCONN 57 /* Socket is not connected */ -#define sunESHUTDOWN 58 /* Can't send after socket shutdown */ -#define sunETOOMANYREFS 59 /* Too many references: can't splice */ -#define sunETIMEDOUT 60 /* Connection timed out */ -#define sunECONNREFUSED 61 /* Connection refused */ - - /* */ -#define sunELOOP 62 /* Too many levels of symbolic links */ -#define sunENAMETOOLONG 63 /* File name too long */ - -/* should be rearranged */ -#define sunEHOSTDOWN 64 /* Host is down */ -#define sunEHOSTUNREACH 65 /* No route to host */ -#define sunENOTEMPTY 66 /* Directory not empty */ - -/* quotas & mush */ -#define sunEPROCLIM 67 /* Too many processes */ -#define sunEUSERS 68 /* Too many users */ -#define sunEDQUOT 69 /* Disc quota exceeded */ - -/* Network File System */ -#define sunESTALE 70 /* Stale NFS file handle */ -#define sunEREMOTE 71 /* Too many levels of remote in path */ - -/* streams */ -#define sunENOSTR 72 /* Device is not a stream */ -#define sunETIME 73 /* Timer expired */ -#define sunENOSR 74 /* Out of streams resources */ -#define sunENOMSG 75 /* No message of desired type */ -#define sunEBADMSG 76 /* Trying to read unreadable message */ - -/* SystemV IPC */ -#define sunEIDRM 77 /* Identifier removed */ - -/* SystemV Record Locking */ -#define sunEDEADLK 78 /* Deadlock condition. */ -#define sunENOLCK 79 /* No record locks available. */ - -/* RFS */ -#define sunENONET 80 /* Machine is not on the network */ -#define sunERREMOTE 81 /* Object is remote */ -#define sunENOLINK 82 /* the link has been severed */ -#define sunEADV 83 /* advertise error */ -#define sunESRMNT 84 /* srmount error */ -#define sunECOMM 85 /* Communication error on send */ -#define sunEPROTO 86 /* Protocol error */ -#define sunEMULTIHOP 87 /* multihop attempted */ -#define sunEDOTDOT 88 /* Cross mount point (not an error) */ -#define sunEREMCHG 89 /* Remote address changed */ diff --git a/inc/sunfilio.h b/inc/sunfilio.h deleted file mode 100755 index ab1257c..0000000 --- a/inc/sunfilio.h +++ /dev/null @@ -1,27 +0,0 @@ -/* $Id: sunfilio.h,v 1.2 1999/01/03 02:06:25 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)filio.h 1.3 88/02/08 SMI; from UCB ioctl.h 7.1 6/4/86 */ - -/* - * Copyright (c) 1982, 1986 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - */ - -/* - * General file ioctl definitions. - */ -#ifndef _filio_h -#define _filio_h - -#include - -#define sunFIOCLEX _sunIO(f, 1) /* set exclusive use on fd */ -#define sunFIONCLEX _sunIO(f, 2) /* remove exclusive use */ -/* another local */ -#define sunFIONREAD _sunIOR(f, 127, int) /* get # bytes to read */ -#define sunFIONBIO _sunIOW(f, 126, int) /* set/clear non-blocking i/o */ -#define sunFIOASYNC _sunIOW(f, 125, int) /* set/clear async i/o */ -#define sunFIOSETOWN _sunIOW(f, 124, int) /* set owner */ -#define sunFIOGETOWN _sunIOR(f, 123, int) /* get owner */ - -#endif diff --git a/inc/sunioccom.h b/inc/sunioccom.h deleted file mode 100755 index 8feae5d..0000000 --- a/inc/sunioccom.h +++ /dev/null @@ -1,33 +0,0 @@ -/* $Id: sunioccom.h,v 1.2 1999/01/03 02:06:25 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)ioccom.h 1.3 88/02/08 SMI; from UCB ioctl.h 7.1 6/4/86 */ - -/* - * Copyright (c) 1982, 1986 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - */ - -#ifndef _sunIO - -/* - * Ioctl's have the command encoded in the lower word, - * and the size of any in or out parameters in the upper - * word. The high 2 bits of the upper word are used - * to encode the in/out status of the parameter; for now - * we restrict parameters to at most 255 bytes. - */ -#define sunIOCPARM_MASK 0xff /* parameters must be < 256 bytes */ -#define sunIOC_VOID 0x20000000 /* no parameters */ -#define sunIOC_OUT 0x40000000 /* copy out parameters */ -#define sunIOC_IN 0x80000000 /* copy in parameters */ -#define sunIOC_INOUT (sunIOC_IN|sunIOC_OUT) -/* the 0x20000000 is so we can distinguish new ioctl's from old */ -#define _sunIO(x,y) (sunIOC_VOID|('x'<<8)|y) -#define _sunIOR(x,y,t) (sunIOC_OUT|((sizeof(t)&sunIOCPARM_MASK)<<16)|('x'<<8)|y) -#define _sunIORN(x,y,t) (sunIOC_OUT|(((t)&sunIOCPARM_MASK)<<16)|('x'<<8)|y) -#define _sunIOW(x,y,t) (sunIOC_IN|((sizeof(t)&sunIOCPARM_MASK)<<16)|('x'<<8)|y) -#define _sunIOWN(x,y,t) (sunIOC_IN|(((t)&sunIOCPARM_MASK)<<16)|('x'<<8)|y) -/* this should be _sunIORW, but stdio got there first */ -#define _sunIOWR(x,y,t) (sunIOC_INOUT|((sizeof(t)&sunIOCPARM_MASK)<<16)|('x'<<8)|y) - -#endif diff --git a/inc/suntermios.h b/inc/suntermios.h deleted file mode 100755 index 876ecf0..0000000 --- a/inc/suntermios.h +++ /dev/null @@ -1,119 +0,0 @@ -/* $Id: suntermios.h,v 1.2 1999/01/03 02:06:25 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)termios.h 1.8 88/02/08 SMI */ - -#ifndef sun_TERMIOS_ -#define sun_TERMIOS_ - - -/* input modes */ -#define sunIGNBRK 0x00000001 -#define sunBRKINT 0x00000002 -#define sunIGNPAR 0x00000004 -#define sunPARMRK 0x00000008 -#define sunINPCK 0x00000010 -#define sunISTRIP 0x00000020 -#define sunINLCR 0x00000040 -#define sunIGNCR 0x00000080 -#define sunICRNL 0x00000100 -#define sunIUCLC 0x00000200 -#define sunIXON 0x00000400 -#define sunIXANY 0x00000800 -#define sunIXOFF 0x00001000 -#define sunIMAXBEL 0x00002000 - -/* output modes */ -#define sunOPOST 0x00000001 -#define sunOLCUC 0x00000002 -#define sunONLCR 0x00000004 -#define sunOCRNL 0x00000008 -#define sunONOCR 0x00000010 -#define sunONLRET 0x00000020 -#define sunOFILL 0x00000040 -#define sunOFDEL 0x00000080 -#define sunNLDLY 0x00000100 -#define sunNL0 0 -#define sunNL1 0x00000100 -#define sunCRDLY 0x00000600 -#define sunCR0 0 -#define sunCR1 0x00000200 -#define sunCR2 0x00000400 -#define sunCR3 0x00000600 -#define sunTABDLY 0x00001800 -#define sunTAB0 0 -#define sunTAB1 0x00000800 -#define sunTAB2 0x00001000 -#define sunXTABS 0x00001800 -#define sunTAB3 sunXTABS -#define sunBSDLY 0x00002000 -#define sunBS0 0 -#define sunBS1 0x00002000 -#define sunVTDLY 0x00004000 -#define sunVT0 0 -#define sunVT1 0x00004000 -#define sunFFDLY 0x00008000 -#define sunFF0 0 -#define sunFF1 0x00008000 -#define sunPAGEOUT 0x00010000 -#define sunWRAP 0x00020000 - -/* control modes */ -#define sunCBAUD 0x0000000f -#define sunCSIZE 0x00000030 -#define sunCS5 0 -#define sunCS6 0x00000010 -#define sunCS7 0x00000020 -#define sunCS8 0x00000030 -#define sunCSTOPB 0x00000040 -#define sunCREAD 0x00000080 -#define sunPARENB 0x00000100 -#define sunPARODD 0x00000200 -#define sunHUPCL 0x00000400 -#define sunCLOCAL 0x00000800 -#define sunLOBLK 0x00001000 -#define sunCIBAUD 0x000f0000 -#define sunCRTSCTS 0x80000000 - -#define sunIBSHIFT 16 - -/* line discipline 0 modes */ -#define sunISIG 0x00000001 -#define sunICANON 0x00000002 -#define sunXCASE 0x00000004 -#define sunECHO 0x00000008 -#define sunECHOE 0x00000010 -#define sunECHOK 0x00000020 -#define sunECHONL 0x00000040 -#define sunNOFLSH 0x00000080 -#define sunTOSTOP 0x00000100 -#define sunECHOCTL 0x00000200 -#define sunECHOPRT 0x00000400 -#define sunECHOKE 0x00000800 -#define sunDEFECHO 0x00001000 -#define sunFLUSHO 0x00002000 -#define sunPENDIN 0x00004000 /* sigh */ - -/* - * sunIoctl control packet - */ -struct suntermios { - unsigned long sunc_iflag; /* input modes */ - unsigned long sunc_oflag; /* output modes */ - unsigned long sunc_cflag; /* control modes */ - unsigned long sunc_lflag; /* line discipline modes */ - char sunc_line; /* line discipline XXX */ - unsigned char sunc_cc[037]; /* control chars */ -}; - -/* codes 1 through 5 are old "termio" calls */ -#define sunTCXONC _sunIO(T, 6) -#define sunTCFLSH _sunIO(T, 7) -#define sunTCGETS _sunIOR(T, 8, struct suntermios) -#define sunTCSETS _sunIOW(T, 9, struct suntermios) -#define sunTCSETSW _sunIOW(T, 10, struct suntermios) -#define sunTCSETSF _sunIOW(T, 11, struct suntermios) -#define sunTCSNDBRK _sunIO(T, 12) -#define sunTCDRAIN _sunIO(T, 13) - -#include "sunttycom.h" - -#endif diff --git a/inc/sunttold.h b/inc/sunttold.h deleted file mode 100755 index 5c70cf1..0000000 --- a/inc/sunttold.h +++ /dev/null @@ -1,170 +0,0 @@ -/* $Id: sunttold.h,v 1.2 1999/01/03 02:06:26 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)ttold.h 1.6 88/02/08 SMI; from S5R2 6.1 */ - -#ifndef sun_TTOLD_ -#define _sunTTOLD_ - -struct suntchars { - char t_intrc; /* interrupt */ - char t_quitc; /* quit */ - char t_startc; /* start output */ - char t_stopc; /* stop output */ - char t_eofc; /* end-of-file */ - char t_brkc; /* input delimiter (like nl) */ -}; - -struct sunltchars { - char t_suspc; /* stop process signal */ - char t_dsuspc; /* delayed stop process signal */ - char t_rprntc; /* reprint line */ - char t_flushc; /* flush output (toggles) */ - char t_werasc; /* word erase */ - char t_lnextc; /* literal next character */ -}; - -/* - * Structure for TIOCGETP and TIOCSETP ioctls. - */ - -#ifndef _sunSGTTYB_ -#define _sunSGTTYB_ -struct sunsgttyb { - char sunsg_ispeed; /* input speed */ - char sunsg_ospeed; /* output speed */ - char sunsg_erase; /* erase character */ - char sunsg_kill; /* kill character */ - short sunsg_flags; /* mode flags */ -}; -#endif - -#include - -/* - * 4.3BSD tty ioctl commands that are either: - * 1) deprecated - * 2) not implemented (and never were implemented) - * 3) implemented on top of new-style "ioctl"s. - */ -#define sunTIOCGETD _sunIOR(t, 0, int) /* get line discipline */ -#define sunTIOCSETD _sunIOW(t, 1, int) /* set line discipline */ -#define sunTIOCHPCL _sunIO(t, 2) /* hang up on last close */ -#define sunTIOCMODG _sunIOR(t, 3, int) /* get modem state - OBSOLETE */ -#define sunTIOCMODS _sunIOW(t, 4, int) /* set modem state - OBSOLETE */ -#define sunTIOCGETP _sunIOR(t, 8,struct sunsgttyb)/* get parameters -- gtty */ -#define sunTIOCSETP _sunIOW(t, 9,struct sunsgttyb)/* set parameters -- stty */ -#define sunTIOCSETN _sunIOW(t,10,struct sunsgttyb)/* as above, but no flushtty */ -#define sunTIOCEXCL _sunIO(t, 13) /* set exclusive use of tty */ -#define sunTIOCNXCL _sunIO(t, 14) /* reset exclusive use of tty */ -#define sunTIOCFLUSH _sunIOW(t, 16, int) /* flush buffers */ -#define sunTIOCSETC _sunIOW(t,17,struct suntchars)/* set special characters */ -#define sunTIOCGETC _sunIOR(t,18,struct suntchars)/* get special characters */ -#define sunO_TANDEM 0x00000001 /* send stopc on out q full */ -#define sunO_CBREAK 0x00000002 /* half-cooked mode */ -#define sunO_LCASE 0x00000004 /* simulate lower case */ -#define sunO_ECHO 0x00000008 /* echo input */ -#define sunO_CRMOD 0x00000010 /* map \r to \r\n on output */ -#define sunO_RAW 0x00000020 /* no i/o processing */ -#define sunO_ODDP 0x00000040 /* get/send odd parity */ -#define sunO_EVENP 0x00000080 /* get/send even parity */ -#define sunO_ANYP 0x000000c0 /* get any parity/send none */ -#define sunO_NLDELAY 0x00000300 /* \n delay */ -#define sunO_NL0 0x00000000 -#define sunO_NL1 0x00000100 /* tty 37 */ -#define sunO_NL2 0x00000200 /* vt05 */ -#define sunO_NL3 0x00000300 -#define sunO_TBDELAY 0x00000c00 /* horizontal tab delay */ -#define sunO_TAB0 0x00000000 -#define sunO_TAB1 0x00000400 /* tty 37 */ -#define sunO_TAB2 0x00000800 -#define sunO_XTABS 0x00000c00 /* expand tabs on output */ -#define sunO_CRDELAY 0x00003000 /* \r delay */ -#define sunO_CR0 0x00000000 -#define sunO_CR1 0x00001000 /* tn 300 */ -#define sunO_CR2 0x00002000 /* tty 37 */ -#define sunO_CR3 0x00003000 /* concept 100 */ -#define sunO_VTDELAY 0x00004000 /* vertical tab delay */ -#define sunO_FF0 0x00000000 -#define sunO_FF1 0x00004000 /* tty 37 */ -#define sunO_BSDELAY 0x00008000 /* \b delay */ -#define sunO_BS0 0x00000000 -#define sunO_BS1 0x00008000 -#define sunO_ALLDELAY (sunO_NLDELAY|sunO_TBDELAY|sunO_CRDELAY|sunO_VTDELAY|sunO_BSDELAY) -#define sunO_CRTBS 0x00010000 /* do backspacing for crt */ -#define sunO_PRTERA 0x00020000 /* \ ... / erase */ -#define sunO_CRTERA 0x00040000 /* " \b " to wipe out char */ -#define sunO_TILDE 0x00080000 /* hazeltine tilde kludge */ -#define sunO_MDMBUF 0x00100000 /* start/stop output on carrier intr */ -#define sunO_LITOUT 0x00200000 /* literal output */ -#define sunO_TOSTOP 0x00400000 /* SIGSTOP on background output */ -#define sunO_FLUSHO 0x00800000 /* flush output to terminal */ -#define sunO_NOHANG 0x01000000 /* no SIGHUP on carrier drop */ -#define sunO_L001000 0x02000000 -#define sunO_CRTKIL 0x04000000 /* kill line with " \b " */ -#define sunO_PASS8 0x08000000 -#define sunO_CTLECH 0x10000000 /* echo control chars as ^X */ -#define sunO_PENDIN 0x20000000 /* tp->t_rawq needs reread */ -#define sunO_DECCTQ 0x40000000 /* only ^Q starts after ^S */ -#define sunO_NOFLSH 0x80000000 /* no output flush on signal */ -/* locals, from 127 down */ -#define sunTIOCLBIS _sunIOW(t, 127, int) /* bis local mode bits */ -#define sunTIOCLBIC _sunIOW(t, 126, int) /* bic local mode bits */ -#define sunTIOCLSET _sunIOW(t, 125, int) /* set entire local mode word */ -#define sunTIOCLGET _sunIOR(t, 124, int) /* get local modes */ -#define sunLCRTBS (sunO_CRTBS>>16) -#define sunLPRTERA (sunO_PRTERA>>16) -#define sunLCRTERA (sunO_CRTERA>>16) -#define sunLTILDE (sunO_TILDE>>16) -#define sunLMDMBUF (sunO_MDMBUF>>16) -#define sunLLITOUT (sunO_LITOUT>>16) -#define sunLTOSTOP (sunO_TOSTOP>>16) -#define sunLFLUSHO (sunO_FLUSHO>>16) -#define sunLNOHANG (sunO_NOHANG>>16) -#define sunLCRTKIL (sunO_CRTKIL>>16) -#define sunLPASS8 (sunO_PASS8>>16) -#define sunLCTLECH (sunO_CTLECH>>16) -#define sunLPENDIN (sunO_PENDIN>>16) -#define sunLDECCTQ (sunO_DECCTQ>>16) -#define sunLNOFLSH (sunO_NOFLSH>>16) -#define sunTIOCSBRK _sunIO(t, 123) /* set break bit */ -#define sunTIOCCBRK _sunIO(t, 122) /* clear break bit */ -#define sunTIOCSDTR _sunIO(t, 121) /* set data terminal ready */ -#define sunTIOCCDTR _sunIO(t, 120) /* clear data terminal ready */ -#define sunTIOCSLTC _sunIOW(t,117,struct sunltchars)/* set local special chars */ -#define sunTIOCGLTC _sunIOR(t,116,struct sunltchars)/* get local special chars */ -#define sunTIOCSTOP _sunIO(t, 111) /* stop output, like ^S */ -#define sunTIOCSTART _sunIO(t, 110) /* start output, like ^Q */ - -/* - * Sun-specific ioctls, which have been moved to the Sun-specific range. - * The old codes will be kept around for binary compatibility; the - * codes for TIOCCONS and TIOCGSIZE don't collide with the 4.3BSD codes - * because the structure size and copy direction fields are different. - * Unfortunately, the old TIOCSSIZE code does collide with TIOCSWINSZ, - * but they can be disambiguated by checking whether a "struct ttysize" - * structure's "ts_lines" field is greater than 64K or not. If so, - * it's almost certainly a "struct winsize" instead. - */ -#define sun_O_TIOCCONS _sunIO(t, 104) /* get console I/O */ -#define sun_O_TIOCSSIZE _sunIOW(t,103,struct ttysize)/* get tty size */ -#define sun_O_TIOCGSIZE _sunIOR(t,102,struct ttysize)/* get tty size */ - -/* - * Sun-specific ioctls. - */ -#define sunTIOCSETX _sunIOW(t, 34, int) /* set extra modes for S5 compatibility */ -#define sunTIOCGETX _sunIOR(t, 35, int) /* get extra modes for S5 compatibility */ -#define sunNOPOST 0x00000001 /* no processing on output (LITOUT with 7 bits + parity) */ -#define sunNOISIG 0x00000002 /* disable all signal-generating characters */ -#define sunSTOPB 0x00000004 /* two stop bits */ - -#define sunOTTYDISC 0 /* old, v7 std tty driver */ -#define sunNETLDISC 1 /* line discip for berk net */ -#define sunNTTYDISC 2 /* new tty discipline */ -#define sunTABLDISC 3 /* hitachi tablet discipline */ -#define sunNTABLDISC 4 /* gtco tablet discipline */ -#define sunMOUSELDISC 5 /* mouse discipline */ -#define sunKBDLDISC 6 /* up/down keyboard trans (console) */ - -#include - -#endif diff --git a/inc/sunttycom.h b/inc/sunttycom.h deleted file mode 100755 index a2cd297..0000000 --- a/inc/sunttycom.h +++ /dev/null @@ -1,69 +0,0 @@ -/* $Id: sunttycom.h,v 1.2 1999/01/03 02:06:26 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)ttycom.h 1.5 88/02/08 SMI */ - -#ifndef _sunTTYCOM_ -#define _sunTTYCOM_ - -/* - * Window/terminal size structure. - * This information is stored by the kernel - * in order to provide a consistent interface, - * but is not used by the kernel. - * - */ - -#define sunTIOCGWINSZ _sunIOR(t, 104, struct winsize) /* get window size */ -#define sunTIOCSWINSZ _sunIOW(t, 103, struct winsize) /* set window size */ - - -#define sunTIOCSSIZE _sunIOW(t,37,struct ttysize)/* set tty size */ -#define sunTIOCGSIZE _sunIOR(t,38,struct ttysize)/* get tty size */ - -/* - * 4.3BSD and SunOS terminal "ioctl"s with no "termios" equivalents. - * This file is included by and indirectly by - * so that programs that include either one have these "ioctl"s defined. - */ -#define sunTIOCGPGRP _sunIOR(t, 119, int) /* get pgrp of tty */ -#define sunTIOCSPGRP _sunIOW(t, 118, int) /* set pgrp of tty */ -#define sunTIOCOUTQ _sunIOR(t, 115, int) /* output queue size */ -#define sunTIOCSTI _sunIOW(t, 114, char) /* simulate terminal input */ -#define sunTIOCNOTTY _sunIO(t, 113) /* void tty association */ -#define sunTIOCPKT _sunIOW(t, 112, int) /* pty: set/clear packet mode */ -#define sunTIOCPKT_DATA 0x00 /* data packet */ -#define sunTIOCPKT_FLUSHREAD 0x01 /* flush data not yet written to controller */ -#define sunTIOCPKT_FLUSHWRITE 0x02 /* flush data read from controller but not yet processed */ -#define sunTIOCPKT_STOP 0x04 /* stop output */ -#define sunTIOCPKT_START 0x08 /* start output */ -#define sunTIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */ -#define sunTIOCPKT_DOSTOP 0x20 /* now do ^S, ^Q */ -#define sunTIOCPKT_IOCTL 0x40 /* "ioctl" packet */ -#define sunTIOCMSET _sunIOW(t, 109, int) /* set all modem bits */ -#define sunTIOCMBIS _sunIOW(t, 108, int) /* bis modem bits */ -#define sunTIOCMBIC _sunIOW(t, 107, int) /* bic modem bits */ -#define sunTIOCMGET _sunIOR(t, 106, int) /* get all modem bits */ -#define sunTIOCM_LE 0001 /* line enable */ -#define sunTIOCM_DTR 0002 /* data terminal ready */ -#define sunTIOCM_RTS 0004 /* request to send */ -#define sunTIOCM_ST 0010 /* secondary transmit */ -#define sunTIOCM_SR 0020 /* secondary receive */ -#define sunTIOCM_CTS 0040 /* clear to send */ -#define sunTIOCM_CAR 0100 /* carrier detect */ -#define sunTIOCM_CD sunTIOCM_CAR -#define sunTIOCM_RNG 0200 /* ring */ -#define sunTIOCM_RI sunTIOCM_RNG -#define sunTIOCM_DSR 0400 /* data set ready */ - -#define sunTIOCREMOTE _sunIOW(t, 105, int) /* remote input editing */ -#define sunTIOCUCNTL _sunIOW(t, 102, int) /* pty: set/clr usr cntl mode */ - -/* - * Sun-specific ioctls with no "termios" equivalents. - */ -#define sunTIOCTCNTL _sunIOW(t, 32, int) /* pty: set/clr intercept ioctl mode */ -#define sunTIOCSIGNAL _sunIOW(t, 33, int) /* pty: send signal to slave */ -#define sunTIOCCONS _sunIO(t, 36) /* get console I/O */ -#define sunTIOCSSOFTCAR _sunIOW(t, 101, int) /* set soft carrier flag */ -#define sunTIOCGSOFTCAR _sunIOR(t, 100, int) /* get soft carrier flag */ - -#endif diff --git a/inc/sunttydev.h b/inc/sunttydev.h deleted file mode 100755 index e02eb88..0000000 --- a/inc/sunttydev.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id: sunttydev.h,v 1.2 1999/01/03 02:06:26 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ -/* @(#)ttydev.h 2.6 88/02/08 SMI; from UCB 4.3 83/05/18 */ - -/* - * Terminal definitions related to underlying hardware. - */ -#ifndef sun_TTYDEV_ -#define sun_TTYDEV_ - -/* - * Speeds - */ -#define sunB0 0 -#define sunB50 1 -#define sunB75 2 -#define sunB110 3 -#define sunB134 4 -#define sunB150 5 -#define sunB200 6 -#define sunB300 7 -#define sunB600 8 -#define sunB1200 9 -#define sunB1800 10 -#define sunB2400 11 -#define sunB4800 12 -#define sunB9600 13 -#define sunB19200 14 -#define sunB38400 15 -#endif