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

  1. /*
  2.  * $Id: os_unix.h,v 4.18 1993/11/08 19:13:10 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    <string.h>
  46.  
  47. #undef    CTRL
  48. #include    <signal.h>
  49.  
  50. #include    <ctype.h>
  51. #include    <types.h>
  52.  
  53. #include    <stat.h>
  54.  
  55. /*
  56.  * type qsort() expects
  57.  */
  58. #if    defined(nxt)
  59. #define    QSType      void
  60. #define QcompType const void
  61. #else
  62. #define    QSType      int
  63. #define QcompType void
  64. #endif
  65.  
  66. /*
  67.  * File name separator, as a char and string
  68.  */
  69. #define    C_FILESEP    '/'
  70. #define    S_FILESEP    "/"
  71.  
  72. /*
  73.  * Place where mail gets delivered (for pico's new mail checking)
  74.  */
  75. #define    MAILDIR        "SYS$LOGIN:"
  76.  
  77.  
  78. /*
  79.  * What and where the tool that checks spelling is located.  If this is
  80.  * undefined, then the spelling checker is not compiled into pico.
  81.  */
  82. #define SPELLER         "$ SPELL"
  83.  
  84. /* memcpy() is no good for overlapping blocks.  If that's a problem, use
  85.  * the memmove() in ../c-client
  86.  */
  87. #define bcopy(a,b,s) memmove (b, a, s)
  88.  
  89. struct  KBSTREE {
  90.     char    value;
  91.         int     func;              /* Routine to handle it         */
  92.     struct    KBSTREE *down; 
  93.     struct    KBSTREE    *left;
  94. };
  95. extern struct KBSTREE *kpadseqs;
  96. extern int kbseq();
  97.  
  98.  
  99. extern char *getcwd(char *, int);
  100.  
  101. #ifdef ANSI_DRIVER
  102. #define    NROW    24
  103. #define    NCOL    80
  104. #endif
  105.  
  106. #endif    /* OSDEP_H */
  107.