home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / c-client / os_hpp.h < prev    next >
C/C++ Source or Header  |  1994-01-09  |  3KB  |  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:    11 May 1989
  11.  * Last Edited:    8 September 1993
  12.  *
  13.  * Copyright 1993 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,myhomedir ()),"/.newsrc")
  38. #define NFSKLUDGE
  39.  
  40. #include <string.h>
  41.  
  42. #include <sys/types.h>
  43. #include <stdlib.h>
  44. #include <sys/dir.h>
  45. #include <sys/fcntl.h>
  46. #include <unistd.h>
  47. #include <time.h>
  48. #include <sys/uio.h>        /* needed for writev() prototypes */
  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. unsigned long strcrlfcpy  ();
  74. unsigned long strcrlflen  ();
  75. long server_login  ();
  76. char *myusername ();
  77. char *myhomedir ();
  78. char *lockname  ();
  79. TCPSTREAM *tcp_open  ();
  80. TCPSTREAM *tcp_aopen  ();
  81. char *tcp_getline  ();
  82. long tcp_getbuffer  ();
  83. long tcp_getdata  ();
  84. long tcp_soutr  ();
  85. long tcp_sout  ();
  86. void tcp_close  ();
  87. char *tcp_host  ();
  88. char *tcp_localhost  ();
  89.  
  90. long gethostid ();
  91. long random ();
  92. int flock ();
  93. int utimes ();
  94.