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

  1. /*
  2.  * Program:    Operating-system dependent routines -- HP/UX version
  3.  *
  4.  * Author:    David L. Miller
  5.  *        Computing and Telecommunications Center
  6.  *        Washington State University Tri-Cities
  7.  *        Richland, WA 99352
  8.  *        Internet: dmiller@beta.tricity.wsu.edu
  9.  *
  10.  * Date:    10 April 1992
  11.  * Last Edited:    28 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 <sys/types.h>
  44. #include <stdlib.h>
  45. #include <sys/dir.h>
  46. #include <sys/fcntl.h>
  47. #include <unistd.h>
  48. #include <time.h>
  49.  
  50.  
  51. /* For flock() emulation */
  52.  
  53. #define LOCK_SH 1
  54. #define LOCK_EX 2
  55. #define LOCK_NB 4
  56. #define LOCK_UN 8
  57.  
  58.  
  59.  
  60. /* Dummy definition overridden by TCP routines */
  61.  
  62. #ifndef TCPSTREAM
  63. #define TCPSTREAM void
  64. #endif
  65.  
  66. /* Function prototypes */
  67.  
  68. void rfc822_date  ();
  69. void *fs_get  ();
  70. void fs_resize  ();
  71. void fs_give  ();
  72. void fatal  ();
  73. char *strcrlfcpy  ();
  74. unsigned long strcrlflen  ();
  75. long server_login  ();
  76. TCPSTREAM *tcp_open  ();
  77. TCPSTREAM *tcp_aopen  ();
  78. char *tcp_getline  ();
  79. long tcp_getbuffer  ();
  80. long tcp_soutr  ();
  81. void tcp_close  ();
  82. char *tcp_host  ();
  83. char *tcp_localhost  ();
  84.  
  85. long gethostid ();
  86. long random ();
  87. void *memmove ();
  88. char *re_comp ();
  89. long re_exec ();
  90. int scandir ();
  91. int flock ();
  92. int gettimeofday ();
  93. int utimes ();
  94.