~ubuntu-branches/ubuntu/lucid/ncbi-tools6/lucid

« back to all changes in this revision

Viewing changes to network/nsclilib/ni_net.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2002-04-04 22:13:09 UTC
  • Revision ID: james.westby@ubuntu.com-20020404221309-vfze028rfnlrldct
Tags: upstream-6.1.20011220a
ImportĀ upstreamĀ versionĀ 6.1.20011220a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*      
 
2
* ===========================================================================
 
3
*
 
4
*                            PUBLIC DOMAIN NOTICE                          
 
5
*               National Center for Biotechnology Information
 
6
*                                                                          
 
7
*  This software/database is a "United States Government Work" under the   
 
8
*  terms of the United States Copyright Act.  It was written as part of    
 
9
*  the author's official duties as a United States Government employee and 
 
10
*  thus cannot be copyrighted.  This software/database is freely available 
 
11
*  to the public for use. The National Library of Medicine and the U.S.    
 
12
*  Government have not placed any restriction on its use or reproduction.  
 
13
*                                                                          
 
14
*  Although all reasonable efforts have been taken to ensure the accuracy  
 
15
*  and reliability of the software and data, the NLM and the U.S.          
 
16
*  Government do not and cannot warrant the performance or results that    
 
17
*  may be obtained by using this software or data. The NLM and the U.S.    
 
18
*  Government disclaim all warranties, express or implied, including       
 
19
*  warranties of performance, merchantability or fitness for any particular
 
20
*  purpose.                                                                
 
21
*                                                                          
 
22
*  Please cite the author in any work or product based on this material.   
 
23
*
 
24
* ===========================================================================
 
25
*
 
26
* File Name:    ni_net.h
 
27
*
 
28
* Author:       Beatty, Gish
 
29
*
 
30
* Version Creation Date:        1/1/92
 
31
*
 
32
* $Revision: 6.2 $
 
33
*
 
34
* File Description: 
 
35
*
 
36
*
 
37
* Modifications:  
 
38
* --------------------------------------------------------------------------
 
39
* Date     Name        Description of modification
 
40
* -------  ----------  -----------------------------------------------------
 
41
* 05-12-92 Epstein     Converted tabs to spaces
 
42
* 01-21-94 Schuler     Added NETP_INET_MACTCP symbol
 
43
*
 
44
* ==========================================================================
 
45
*
 
46
*
 
47
* RCS Modification History:
 
48
* $Log: ni_net.h,v $
 
49
* Revision 6.2  2001/04/05 02:36:22  juran
 
50
* Removed obsolete includes.
 
51
*
 
52
* Revision 6.1  1999/11/23 21:43:30  vakatov
 
53
* [WIN32] Always #define NETP_INET_WSOCK for Win32
 
54
*
 
55
* Revision 6.0  1997/08/25 18:39:09  madden
 
56
* Revision changed to 6.0
 
57
*
 
58
* Revision 5.0  1996/05/28 14:11:55  ostell
 
59
* Set to revision 5.0
 
60
*
 
61
 * Revision 4.0  1995/07/26  13:56:32  ostell
 
62
 * force revision to 4.0
 
63
 *
 
64
 * Revision 1.18  1995/07/05  14:23:58  kans
 
65
 * move #include <sys/select.h> to ncbilcl.r6k
 
66
 *
 
67
 * Revision 1.17  1995/05/17  17:52:48  epstein
 
68
 * add RCS log revision history
 
69
 *
 
70
*/
 
71
 
 
72
#ifndef _NI_NET_
 
73
 
 
74
#if !defined(COMP_MPW) && !defined(OS_VMS) && !defined(COMP_METRO)
 
75
#include <fcntl.h>
 
76
#endif /* skip for COMP_MPW or OS_VMS or COMP_METRO */
 
77
 
 
78
#if defined(OS_MAC) && !defined(NETP_defined)
 
79
#define NETP_INET_MACTCP
 
80
#endif
 
81
 
 
82
#ifdef NETP_INET_MACTCP
 
83
#include <netdb.h>
 
84
#include <s_types.h>
 
85
#include <s_socket.h>
 
86
#include <neti_in.h>
 
87
#include <a_inet.h>
 
88
#define _NI_NET_
 
89
#endif /* NETP_INET_MACTCP */
 
90
 
 
91
#ifdef NETP_INET_NEWT
 
92
#undef TRUE
 
93
#undef FALSE
 
94
#undef NULL
 
95
#include <nmpcip.h>
 
96
#define _NI_NET_
 
97
#endif /* NETP_INET_NEWT */
 
98
 
 
99
#ifdef NETP_INET_PCNFS
 
100
#include <netdb.h>
 
101
#include <sys/socket.h>
 
102
#include <sys/types.h>
 
103
#include <sys/ioctl.h>
 
104
#include <netinet/in.h>
 
105
#include <windows.h>
 
106
#include <in_addr.h>
 
107
#include <sys/nfs_time.h>
 
108
#include <tk_errno.h>
 
109
#define _NI_NET_
 
110
#endif /* NETP_INET_PCNFS */
 
111
 
 
112
/* TGV, Inc. Multinet TCP/IP suite */
 
113
#ifdef NETP_INET_TGV
 
114
#include "Multinet_root:[multinet.include]netdb.h"
 
115
#include "Multinet_root:[multinet.include.sys]types.h"
 
116
#include "Multinet_root:[multinet.include.sys]socket.h"
 
117
#include "Multinet_root:[multinet.include.sys]ioctl.h"
 
118
#include "Multinet_root:[multinet.include.netinet]in.h"
 
119
#include "Multinet_root:[multinet.include.arpa]inet.h"
 
120
/*#include "Multinet_root:[multinet.include.sys]time.h"*/
 
121
#include "Multinet_root:[multinet.include]errno.h"
 
122
#define _NI_NET_
 
123
#endif /* NETP_INET_TGV */
 
124
 
 
125
/* The Wollongong Group, Inc. TCP/IP suite */
 
126
#ifdef NETP_INET_TWG
 
127
#include <netdb.h>
 
128
#include <types.h>
 
129
#include <socket.h>
 
130
/*#include <ioctl.h>*/
 
131
#include <in.h>
 
132
#include <inet.h>
 
133
#include <time.h>
 
134
#include <errno.h>
 
135
#define _NI_NET_
 
136
#endif /* NETP_INET_TWG */
 
137
 
 
138
/* The Wollongong PathWay API 1.0 suite for OpenVMS */
 
139
#ifdef NETP_INET_WPW
 
140
#include <netdb.h>
 
141
#include <sys/types.h>
 
142
#include <sys/socket.h>
 
143
#include <sys/ioctl.h>
 
144
#include <netinet/in.h>
 
145
#include <arpa/inet.h>
 
146
#include <sys/time.h>
 
147
#include <errno.h>
 
148
#define _NI_NET_
 
149
#endif /* NETP_INET_TWG */
 
150
 
 
151
/* DEC TCP/IP for OpenVMS */
 
152
#ifdef NETP_INET_UCX
 
153
#include <netdb.h>
 
154
#include <types.h>
 
155
#include <socket.h>
 
156
#include <in.h>
 
157
#include <inet.h>
 
158
#include <time.h>
 
159
#include <ucx$inetdef.h>
 
160
#include <iodef.h>
 
161
#define _NI_NET_
 
162
#endif /* NETP_INET_UCX */
 
163
 
 
164
 
 
165
#if defined(WIN32)  &&  !defined(_NI_NET_)  &&  !defined(NETP_INET_WSOCK)
 
166
#  define NETP_INET_WSOCK
 
167
#endif
 
168
#ifdef NETP_INET_WSOCK
 
169
#  undef NEAR
 
170
#  undef FAR
 
171
#  undef Beep
 
172
#  undef PASCAL
 
173
#  undef CDECL
 
174
#  undef TRUE
 
175
#  undef FALSE
 
176
#  define STRICT
 
177
#  include <windows.h>
 
178
#  include <winsock.h>
 
179
#  define _NI_NET_
 
180
#endif /* NETP_INET_WSOCK */
 
181
 
 
182
/* default */
 
183
#ifndef _NI_NET_
 
184
#include <netdb.h>
 
185
#include <sys/socket.h>
 
186
#include <sys/types.h>
 
187
#include <sys/ioctl.h>
 
188
#include <netinet/in.h>
 
189
#include <arpa/inet.h>
 
190
#include <sys/time.h>
 
191
#define _NI_NET_
 
192
#endif /* _NI_NET_ */
 
193
 
 
194
   /*** included from ni_lib.c *****/
 
195
 
 
196
#ifdef OS_UNIX
 
197
#include <signal.h>
 
198
#endif /* OS_UNIX */
 
199
#ifdef NETP_INET_MACTCP
 
200
#include <neterrno.h> /* include missing error numbers */
 
201
#endif /* NETP_INET_MACTCP */
 
202
#ifdef OS_VMS
 
203
#include <perror.h>
 
204
#endif /* OS_VMS */
 
205
 
 
206
#ifdef NETP_SOCKS
 
207
#include <socks.h>
 
208
#endif
 
209
 
 
210
  /*** included from ni_msg.c *****/
 
211
 
 
212
#ifdef OS_VMS
 
213
#include <perror.h>
 
214
#endif /* OS_VMS */
 
215
 
 
216
#endif
 
217