home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
DRIVERS
/
SRC
/
ptys.lzh
/
misc.h
< prev
next >
Wrap
Text File
|
1990-02-28
|
3KB
|
74 lines
/* This software is copyright (C) 1989 by Reimer Mellin *
* *
* Permission is granted to reproduce and distribute *
* this package by any means so long as no fee is charged *
* above a nominal handling fee and so long as this *
* notice is always included in the copies. *
* Commerical use or incorporation into commercial software *
* is prohibited without the written permission of the *
* author. *
* *
* Other rights are reserved except as explicitly granted *
* by written permission of the author. *
* Reimer Mellin *
* *
* Sulenstr.8 *
* D-8000 Muenchen 71 (Federal Republic of Germany) *
* *
* EMAIL: *
* mellin@lan.informatik.tu-muenchen.dbp.de *
* ram@altger.UUCP *
* ....!pyramid!tmpmbx!doitcr!ramsys!ram (home) *
* */
/*
* $Id: misc.h_v 1.2.1.1 89/09/04 13:13:15 ram Exp $
*
* $Log: misc.h_v $
* Revision 1.2.1.1 89/09/04 13:13:15 ram
* added some comments
*
* Revision 1.2 89/08/31 12:31:38 ram
* Copyright message added
*
*
*/
#define NULL 0
#define TRUE 1
#define FALSE 0
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define upchar(ch) ( ( ch >= 'a' && ch <= 'z' ) ? ( ch - ' ') : ch)
#define DEFBUFSIZE 0x200 /* size of Databuffers */
#define LINEBUFSIZ 0x100 /* size of line-editing-buffer */
#define PTY (0)
#define TTY (1)
#define P_CONDEMNED (0x200)
#define WAKE(pid,sig) ( pid != 0 ? (kill(pid,sig),pid = 0) : 0)
/* user-changeable options -- see SS_Opt */
#define OPTMAX (&((struct pty_opt *) 0)->pd_tbl)
#ifndef __GNUC__
#define inline
#endif
/* returned by getctrlchar() */
#define BSP 1
#define DEL 2
#define EOR 3
#define EOF 4
#define RPR 5
#define DUP 6
#define PSC 7
#define INT 8
#define QUT 9