home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / pico / os_dos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-06  |  2.8 KB  |  110 lines

  1. /*
  2.  * $Id: os_dos.h,v 4.6 1993/11/08 19:12:39 mikes Exp $
  3.  *
  4.  * Program:    Operating system dependent routines - Ultrix 4.1
  5.  *
  6.  *
  7.  * Michael Seibel
  8.  * Networks and Distributed Computing
  9.  * Computing and Communications
  10.  * University of Washington
  11.  * Administration Builiding, AG-44
  12.  * Seattle, Washington, 98195, USA
  13.  * Internet: mikes@cac.washington.edu
  14.  *
  15.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16.  *
  17.  * Copyright 1991-1993  University of Washington
  18.  *
  19.  *  Permission to use, copy, modify, and distribute this software and its
  20.  * documentation for any purpose and without fee to the University of
  21.  * Washington is hereby granted, provided that the above copyright notice
  22.  * appears in all copies and that both the above copyright notice and this
  23.  * permission notice appear in supporting documentation, and that the name
  24.  * of the University of Washington not be used in advertising or publicity
  25.  * pertaining to distribution of the software without specific, written
  26.  * prior permission.  This software is made available "as is", and
  27.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  28.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  29.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  30.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  31.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  32.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  33.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  34.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  35.  *
  36.  * Pine and Pico are trademarks of the University of Washington.
  37.  * No commercial use of these trademarks may be made without prior
  38.  * written permission of the University of Washington.
  39.  *
  40.  */
  41.  
  42. #ifndef    OSDEP_H
  43. #define    OSDEP_H
  44.  
  45. #include    <stdlib.h>
  46. #include    <string.h>
  47. #include    <dos.h>
  48. #include    <direct.h>
  49. #include    <search.h>
  50. #undef    CTRL
  51. #include    <ctype.h>
  52. #include    <sys/types.h>
  53. #include    <sys/stat.h>
  54.  
  55. /* define machine specifics */
  56. #define    IBMPC    1
  57.  
  58. #ifdef    PCTCP
  59. #define    sleep    _sleep
  60. #endif
  61.  
  62. /*
  63.  *  IBM PC ROM BIOS Services used
  64.  */
  65. #define    BIOS_VIDEO    0x10
  66. #define    BIOS_KEYBRD    0x16
  67. #define    BIOS_MOUSE    0x33
  68.  
  69.  
  70. /*
  71.  * type qsort expects
  72.  */
  73. #define    QSType    void
  74. #define QcompType const void
  75.  
  76.  
  77. /*
  78.  * File name separators, char and string
  79.  */
  80. #define    C_FILESEP    '\\'
  81. #define    S_FILESEP    "\\"
  82.  
  83.  
  84. /*
  85.  * What and where the tool that checks spelling is located.  If this is
  86.  * undefined, then the spelling checker is not compiled into pico.
  87.  */
  88. #undef    SPELLER
  89.  
  90.  
  91. #ifdef    maindef
  92. /*    possible names and paths of help files under different OSs    */
  93.  
  94. char *pathname[] = {
  95.     "picorc",
  96.     "pico.hlp",
  97.     "\\usr\\local\\",
  98.     "\\usr\\lib\\",
  99.     ""
  100. };
  101.  
  102. #define    NPNAMES    (sizeof(pathname)/sizeof(char *))
  103.  
  104. jmp_buf got_hup;
  105.  
  106. extern struct KBSTREE *kpadseqs = NULL;
  107.  
  108. #endif
  109. #endif    /* !OSDEP_H */
  110.