lib/replace/system/network.h

説明を見る。
00001 #ifndef _system_network_h
00002 #define _system_network_h
00003 /* 
00004    Unix SMB/CIFS implementation.
00005 
00006    networking system include wrappers
00007 
00008    Copyright (C) Andrew Tridgell 2004
00009    
00010    This program is free software; you can redistribute it and/or modify
00011    it under the terms of the GNU General Public License as published by
00012    the Free Software Foundation; either version 2 of the License, or
00013    (at your option) any later version.
00014    
00015    This program is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018    GNU General Public License for more details.
00019    
00020    You should have received a copy of the GNU General Public License
00021    along with this program; if not, write to the Free Software
00022    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023 */
00024 
00025 #ifdef HAVE_SYS_SOCKET_H
00026 #include <sys/socket.h>
00027 #endif
00028 
00029 #ifdef HAVE_UNIXSOCKET
00030 #include <sys/un.h>
00031 #endif
00032 
00033 #ifdef HAVE_NETINET_IN_H
00034 #include <netinet/in.h>
00035 #endif
00036 #ifdef HAVE_ARPA_INET_H
00037 #include <arpa/inet.h>
00038 #endif
00039 
00040 #ifdef HAVE_NETDB_H
00041 #include <netdb.h>
00042 #endif
00043 
00044 #ifdef HAVE_NETINET_TCP_H
00045 #include <netinet/tcp.h>
00046 #endif
00047 
00048 /*
00049  * The next three defines are needed to access the IPTOS_* options
00050  * on some systems.
00051  */
00052 
00053 #ifdef HAVE_NETINET_IN_SYSTM_H
00054 #include <netinet/in_systm.h>
00055 #endif
00056 
00057 #ifdef HAVE_NETINET_IN_IP_H
00058 #include <netinet/in_ip.h>
00059 #endif
00060 
00061 #ifdef HAVE_NETINET_IP_H
00062 #include <netinet/ip.h>
00063 #endif
00064 
00065 #ifdef HAVE_NET_IF_H
00066 #include <net/if.h>
00067 #endif
00068 
00069 #ifdef HAVE_UNISTD_H
00070 #include <unistd.h>
00071 #endif
00072 
00073 #ifdef HAVE_SYS_IOCTL_H
00074 #include <sys/ioctl.h>
00075 #endif
00076 
00077 #ifdef HAVE_STROPTS_H
00078 #include <stropts.h>
00079 #endif
00080 
00081 #ifdef SOCKET_WRAPPER
00082 #ifndef SOCKET_WRAPPER_NOT_REPLACE
00083 #define SOCKET_WRAPPER_REPLACE
00084 #endif
00085 #include "lib/socket_wrapper/socket_wrapper.h"
00086 #endif
00087 
00088 #ifdef REPLACE_INET_NTOA
00089 char *rep_inet_ntoa(struct in_addr ip);
00090 #define inet_ntoa rep_inet_ntoa
00091 #endif
00092 
00093 /*
00094  * glibc on linux doesn't seem to have MSG_WAITALL
00095  * defined. I think the kernel has it though..
00096  */
00097 #ifndef MSG_WAITALL
00098 #define MSG_WAITALL 0
00099 #endif
00100 
00101 /*
00102  * Some older systems seem not to have MAXHOSTNAMELEN
00103  * defined.
00104  */
00105 #ifndef MAXHOSTNAMELEN
00106 #define MAXHOSTNAMELEN 254
00107 #endif
00108 
00109 #ifndef INADDR_LOOPBACK
00110 #define INADDR_LOOPBACK 0x7f000001
00111 #endif
00112 
00113 #ifndef INADDR_NONE
00114 #define INADDR_NONE 0xffffffff
00115 #endif
00116 
00117 #endif

Sambaに対してSat Aug 29 21:22:59 2009に生成されました。  doxygen 1.4.7