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 >
Text File  |  1990-02-28  |  3KB  |  74 lines

  1. /*       This software is copyright (C) 1989 by Reimer Mellin        *
  2. *                                                                    *
  3. *        Permission is granted to reproduce and distribute           *
  4. *        this package by any means so long as no fee is charged      *
  5. *        above a nominal handling fee and so long as this            *
  6. *        notice is always included in the copies.                    *
  7. *        Commerical use or incorporation into commercial software    *
  8. *        is prohibited without the written permission of the         *
  9. *        author.                                                     *
  10. *                                                                    *
  11. *        Other rights are reserved except as explicitly granted      *
  12. *        by written permission of the author.                        *
  13. *                Reimer Mellin                                       *
  14. *                                                                    *
  15. *                Sulenstr.8                                          *
  16. *                D-8000 Muenchen 71 (Federal Republic of Germany)    *
  17. *                                                                    *
  18. *           EMAIL:                                                   *
  19. *                mellin@lan.informatik.tu-muenchen.dbp.de            *
  20. *                ram@altger.UUCP                                     *
  21. *                ....!pyramid!tmpmbx!doitcr!ramsys!ram (home)        *
  22. *                                                                    */
  23.  
  24. /*
  25.  * $Id: misc.h_v 1.2.1.1 89/09/04 13:13:15 ram Exp $
  26.  *
  27.  * $Log:    misc.h_v $
  28.  * Revision 1.2.1.1  89/09/04  13:13:15  ram
  29.  * added some comments
  30.  * 
  31.  * Revision 1.2  89/08/31  12:31:38  ram
  32.  * Copyright message added
  33.  * 
  34.  *
  35.  */
  36.  
  37. #define NULL    0
  38.  
  39. #define TRUE    1
  40. #define FALSE   0
  41.  
  42. #define MIN(a,b) ((a)<(b)?(a):(b))
  43. #define MAX(a,b) ((a)>(b)?(a):(b))
  44. #define upchar(ch)  ( ( ch >= 'a' && ch <= 'z' ) ? ( ch - ' ') : ch)
  45.  
  46. #define DEFBUFSIZE  0x200   /* size of Databuffers */
  47. #define LINEBUFSIZ  0x100   /* size of line-editing-buffer */
  48.  
  49. #define PTY     (0)
  50. #define TTY     (1)
  51.  
  52. #define P_CONDEMNED (0x200)
  53.  
  54. #define WAKE(pid,sig)   ( pid != 0 ? (kill(pid,sig),pid = 0) : 0)
  55.  
  56. /* user-changeable options -- see SS_Opt */
  57. #define OPTMAX      (&((struct pty_opt *) 0)->pd_tbl)
  58.  
  59. #ifndef __GNUC__
  60. #define inline
  61. #endif
  62.  
  63. /* returned by getctrlchar() */
  64. #define BSP     1
  65. #define DEL     2
  66. #define EOR     3
  67. #define EOF     4
  68. #define RPR     5
  69. #define DUP     6
  70. #define PSC     7
  71. #define INT     8
  72. #define QUT     9
  73.  
  74.