home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / pine3.07 / c-client / os_ptx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-13  |  2.8 KB  |  110 lines

  1. /*
  2.  * Program:    Operating-system dependent routines -- PTX version
  3.  *
  4.  * Author:    Donn Cave
  5.  *        University Computing Services, JE-30
  6.  *        University of Washington
  7.  *        Seattle, WA 98195
  8.  *        Internet: donn@cac.washington.edu
  9.  *
  10.  * Date:    10 April 1992
  11.  * Last Edited:    13 May 1992
  12.  *
  13.  * Copyright 1992 by the University of Washington
  14.  *
  15.  *  Permission to use, copy, modify, and distribute this software and its
  16.  * documentation for any purpose and without fee is hereby granted, provided
  17.  * that the above copyright notice appears in all copies and that both the
  18.  * above copyright notice and this permission notice appear in supporting
  19.  * documentation, and that the name of the University of Washington not be
  20.  * used in advertising or publicity pertaining to distribution of the software
  21.  * without specific, written prior permission.  This software is made
  22.  * available "as is", and
  23.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  24.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  25.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  26.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  27.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  28.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  29.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  30.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  31.  *
  32.  */
  33.  
  34. #define MAILFILE "/usr/mail/%s"
  35. #define ACTIVEFILE "/usr/lib/news/active"
  36. #define NEWSSPOOL "/usr/spool/news"
  37. #define NEWSRC strcat (strcpy (tmp,getpwuid (geteuid ())->pw_dir),"/.newsrc")
  38.  
  39. #include <string.h>
  40.  
  41. #define const
  42.  
  43. #include <stdlib.h>
  44. #include <dirent.h>
  45. #include <sys/fcntl.h>
  46. #include <unistd.h>
  47. #include <time.h>
  48. #include <sys/utime.h>
  49.  
  50.  
  51. /* Different names, equivalent things in BSD and SysV */
  52.  
  53. #define L_SET SEEK_SET
  54. #define L_INCR SEEK_CUR
  55. #define L_XTND SEEK_END
  56.  
  57. #define direct dirent
  58.  
  59.  
  60. /* For flock() emulation */
  61.  
  62. #define LOCK_SH 1
  63. #define LOCK_EX 2
  64. #define LOCK_NB 4
  65. #define LOCK_UN 8
  66.  
  67.  
  68. /* For gettimeofday() emulation */
  69.  
  70. struct timezone {
  71.   int tz_minuteswest;        /* of Greenwich */
  72.   int tz_dsttime;        /* type of dst correction to apply */
  73. };
  74.  
  75.  
  76. /* Dummy definition overridden by TCP routines */
  77.  
  78. #ifndef TCPSTREAM
  79. #define TCPSTREAM void
  80. #endif
  81.  
  82. /* Function prototypes */
  83.  
  84. void rfc822_date  ();
  85. void *fs_get  ();
  86. void fs_resize  ();
  87. void fs_give  ();
  88. void fatal  ();
  89. char *strcrlfcpy  ();
  90. unsigned long strcrlflen  ();
  91. long server_login  ();
  92. TCPSTREAM *tcp_open  ();
  93. TCPSTREAM *tcp_aopen  ();
  94. char *tcp_getline  ();
  95. long tcp_getbuffer  ();
  96. long tcp_soutr  ();
  97. void tcp_close  ();
  98. char *tcp_host  ();
  99. char *tcp_localhost  ();
  100.  
  101. long gethostid ();
  102. long random ();
  103. void *memmove ();
  104. char *re_comp ();
  105. long re_exec ();
  106. int scandir ();
  107. int flock ();
  108. int gettimeofday ();
  109. int utimes ();
  110.