home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / c-client / osdep_vms.h < prev    next >
C/C++ Source or Header  |  1994-04-07  |  3KB  |  103 lines

  1. #define    readonly    ReadOnly    /*~~~~*/
  2. /*
  3.  * Program:    Operating-system dependent routines -- VMS version.
  4.  *
  5.  * Author:    Mark Crispin
  6.  *        Networks and Distributed Computing
  7.  *        Computing & Communications
  8.  *        University of Washington
  9.  *        Administration Building, AG-44
  10.  *        Seattle, WA  98195
  11.  *
  12.  * Date:    11 May 1989
  13.  * Last Edited:    3 October 1993
  14.  *
  15.  * Copyright 1993 by the University of Washington
  16.  *
  17.  *  Permission to use, copy, modify, and distribute this software and its
  18.  * documentation for any purpose and without fee is hereby granted, provided
  19.  * that the above copyright notice appears in all copies and that both the
  20.  * above copyright notice and this permission notice appear in supporting
  21.  * documentation, and that the name of the University of Washington not be
  22.  * used in advertising or publicity pertaining to distribution of the software
  23.  * without specific, written prior permission.  This software is made
  24.  * available "as is", and
  25.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  26.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  27.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  28.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  29.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  31.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  32.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  33.  *
  34.  */
  35.  
  36. #ifndef __OSDEP_H
  37. #define    __OSDEP_H
  38. /* TCP input buffer */
  39.  
  40. #define BUFLEN 8192
  41.  
  42.  
  43. /* TCP I/O stream (must be before osdep.h is included) */
  44.  
  45. #define TCPSTREAM struct tcp_stream
  46. TCPSTREAM {
  47.   char *host;            /* host name */
  48.   char *localhost;        /* local host name */
  49.   int tcpsi;            /* input socket */
  50.   int tcpso;            /* output socket */
  51.   int ictr;            /* input counter */
  52.   char *iptr;            /* input pointer */
  53.   char ibuf[BUFLEN];        /* input buffer */
  54. };
  55.  
  56. #include <types.h>
  57. #include <time.h>
  58. #include <timeb.h>
  59. #include <sys/types.h>
  60. #include <sys/socket.h>
  61. #ifdef MULTINET
  62. #include <netinet/in.h>
  63. #include <netdb.h>
  64. #endif    /* MULTINET */
  65. #ifdef __ALPHA
  66. #include <ctype.h>
  67. #endif
  68. #include <errno.h>
  69. extern int errno;        /* just in case */
  70. #include "../c-client/mail.h"
  71. #include "../c-client/misc.h"
  72.  
  73. #define MAILFILE "/usr/spool/mail/%s"
  74. #define ACTIVEFILE "/usr/lib/news/active"
  75. #define NEWSSPOOL "/usr/spool/news"
  76. #define NEWSRC strcat (strcpy (tmp,myhomedir ()),".newsrc")
  77.  
  78.  
  79. void rfc822_date  ();
  80. void *fs_get  ();
  81. void fs_resize  ();
  82. void fs_give  ();
  83. unsigned long strcrlfcpy  ();
  84. unsigned long strcrlflen  ();
  85. long server_login  ();
  86. char *myusername ();
  87. char *myhomedir ();
  88. char *lockname  ();
  89. TCPSTREAM *tcp_open  ();
  90. TCPSTREAM *tcp_aopen  ();
  91. char *tcp_getline  ();
  92. long tcp_getbuffer  ();
  93. long tcp_getdata  ();
  94. long tcp_soutr  ();
  95. long tcp_sout  ();
  96. void tcp_close  ();
  97. char *tcp_host  ();
  98. char *tcp_localhost  ();
  99. char *memmove  ();
  100. char *strstr  ();
  101. char *strerror  ();
  102. #endif    /* OSDEP_H */
  103.