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

  1. /*
  2.  * Program:    Operating-system dependent routines -- A/UX version
  3.  *
  4.  * Author:    Mark Crispin
  5.  *        Networks and Distributed Computing
  6.  *        Computing & Communications
  7.  *        University of Washington
  8.  *        Administration Building, AG-44
  9.  *        Seattle, WA  98195
  10.  *        Internet: MRC@CAC.Washington.EDU
  11.  *
  12.  * Date:    11 May 1989
  13.  * Last Edited:    13 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. #define MAILFILE "/usr/mail/%s"
  37. #define ACTIVEFILE "/usr/lib/news/active"
  38. #define NEWSSPOOL "/usr/spool/news"
  39. #define NEWSRC strcat (strcpy (tmp,myhomedir ()),"/.newsrc")
  40. #define NFSKLUDGE
  41.  
  42. #include <sys/types.h>
  43. #include <sys/dir.h>
  44. #include <stdlib.h>
  45. #include <strings.h>
  46. #include <sys/uio.h>        /* needed for writev() prototypes */
  47. #include <time.h>
  48.  
  49. extern void *malloc ();
  50. extern void *realloc ();
  51.  
  52. extern int errno;
  53.  
  54.  
  55. /* Dummy definition overridden by TCP routines */
  56.  
  57. #ifndef TCPSTREAM
  58. #define TCPSTREAM void
  59. #endif
  60.  
  61. /* Function prototypes */
  62.  
  63. void rfc822_date  ();
  64. void *fs_get  ();
  65. void fs_resize  ();
  66. void fs_give  ();
  67. void fatal  ();
  68. unsigned long strcrlfcpy  ();
  69. unsigned long strcrlflen  ();
  70. long server_login  ();
  71. char *myusername ();
  72. char *myhomedir ();
  73. char *lockname  ();
  74. TCPSTREAM *tcp_open  ();
  75. TCPSTREAM *tcp_aopen  ();
  76. char *tcp_getline  ();
  77. long tcp_getbuffer  ();
  78. long tcp_getdata  ();
  79. long tcp_soutr  ();
  80. long tcp_sout  ();
  81. void tcp_close  ();
  82. char *tcp_host  ();
  83. char *tcp_localhost  ();
  84. char *strerror ();
  85. char *memmove ();
  86.