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

  1. #if    !defined(lint) && !defined(DOS)
  2. static char rcsid_osh[] = "$Id: os_bsd.h,v 4.2 1993/04/15 00:29:08 mikes Exp $";
  3. #endif
  4. /*
  5.  * Program:    Operating system dependent routines - 4.3 bsd
  6.  *
  7.  *
  8.  * Michael Seibel
  9.  * Networks and Distributed Computing
  10.  * Computing and Communications
  11.  * University of Washington
  12.  * Administration Builiding, AG-44
  13.  * Seattle, Washington, 98195, USA
  14.  * Internet: mikes@cac.washington.edu
  15.  *
  16.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  17.  *
  18.  * Copyright 1991-1993  University of Washington
  19.  *
  20.  *  Permission to use, copy, modify, and distribute this software and its
  21.  * documentation for any purpose and without fee to the University of
  22.  * Washington is hereby granted, provided that the above copyright notice
  23.  * appears in all copies and that both the above copyright notice and this
  24.  * permission notice appear in supporting documentation, and that the name
  25.  * of the University of Washington not be used in advertising or publicity
  26.  * pertaining to distribution of the software without specific, written
  27.  * prior permission.  This software is made available "as is", and
  28.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  29.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  30.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  31.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  32.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  33.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  34.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  35.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  36.  *
  37.  * Pine and Pico are trademarks of the University of Washington.
  38.  * No commercial use of these trademarks may be made without prior
  39.  * written permission of the University of Washington.
  40.  *
  41.  */
  42.  
  43. #ifndef    OSDEP_H
  44. #define    OSDEP_H
  45.  
  46. #ifdef    dyn
  47. #include    <strings.h>
  48. #else
  49. #include    <string.h>
  50. #endif
  51. #undef    CTRL
  52. #include    <signal.h>
  53. #include    <ctype.h>
  54. #include    <sys/types.h>
  55. #include    <sys/ioctl.h>        /* to get at the typeahead */
  56. #include    <sys/stat.h>
  57.  
  58. /* Machine/OS definition            */
  59. #define V7      1                       /* V7 UN*X or Coherent or BSD4.2*/
  60. #define JOB_CONTROL    1               /* OS has job control */
  61.  
  62. #ifdef    dyn
  63. #define    strchr    index            /* Dynix doesn't know about strchr */
  64. #define    strrchr    rindex
  65. #endif    /* dyn */
  66.  
  67. extern struct KBSTREE *kpadseqs;
  68. extern int kbseq();
  69.  
  70. #ifdef    termdef
  71. #if    ANSI
  72. #define NROW    25                      /* Screen size.                 */
  73. #define NCOL    80                      /* Edit if you want to.         */
  74. #endif
  75. #else
  76. #if    TERMCAP
  77. extern struct KBSTREE *kpadseqs;
  78. #endif    /* TERMCAP */
  79. #endif
  80.  
  81. #ifdef    maindef
  82. /*    possible names and paths of help files under different OSs    */
  83.  
  84. char *pathname[] = {
  85.     ".picorc",
  86.     "pico.hlp",
  87.     "/usr/local/",
  88.     "/usr/lib/",
  89.     ""
  90. };
  91.  
  92. #define    NPNAMES    (sizeof(pathname)/sizeof(char *))
  93.  
  94. jmp_buf    got_hup;        /* stack environment to handle SIGHUP */
  95. #endif
  96.  
  97. extern int errno;
  98.  
  99.  
  100. #endif    /* OSDEP_H */
  101.