Added cabal and vim dir
This commit is contained in:
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network.dyn_hi
Normal file
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network.dyn_hi
Normal file
Binary file not shown.
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network.hi
Normal file
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network.hi
Normal file
Binary file not shown.
Binary file not shown.
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network/BSD.hi
Normal file
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network/BSD.hi
Normal file
Binary file not shown.
Binary file not shown.
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network/Socket.hi
Normal file
BIN
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/Network/Socket.hi
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
180
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/include/HsNet.h
Normal file
180
cabal/lib/x86_64-osx-ghc-7.8.4/network-2.6.0.2/include/HsNet.h
Normal file
@@ -0,0 +1,180 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
*
|
||||
* Definitions for package `net' which are visible in Haskell land.
|
||||
*
|
||||
* ---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef HSNET_H
|
||||
#define HSNET_H
|
||||
|
||||
#include "HsNetworkConfig.h"
|
||||
|
||||
#ifdef NEED_WINVER
|
||||
# define WINVER 0x0501
|
||||
#endif
|
||||
|
||||
/* ultra-evil... */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
#undef PACKAGE_NAME
|
||||
#undef PACKAGE_STRING
|
||||
#undef PACKAGE_TARNAME
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
#ifndef INLINE
|
||||
# if defined(_MSC_VER)
|
||||
# define INLINE extern __inline
|
||||
# elif defined(__GNUC_GNU_INLINE__)
|
||||
# define INLINE extern inline
|
||||
# else
|
||||
# define INLINE inline
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GETADDRINFO
|
||||
# define IPV6_SOCKET_SUPPORT 1
|
||||
#else
|
||||
# undef IPV6_SOCKET_SUPPORT
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
|
||||
#include <winsock2.h>
|
||||
# ifdef HAVE_WS2TCPIP_H
|
||||
# include <ws2tcpip.h>
|
||||
// fix for MingW not defining IPV6_V6ONLY
|
||||
# define IPV6_V6ONLY 27
|
||||
# endif
|
||||
|
||||
extern void shutdownWinSock();
|
||||
extern int initWinSock ();
|
||||
extern const char* getWSErrorDescr(int err);
|
||||
extern void* newAcceptParams(int sock,
|
||||
int sz,
|
||||
void* sockaddr);
|
||||
extern int acceptNewSock(void* d);
|
||||
extern int acceptDoProc(void* param);
|
||||
|
||||
#else
|
||||
|
||||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_FCNTL_H
|
||||
# include <fcntl.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_UIO_H
|
||||
# include <sys/uio.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_TCP_H
|
||||
# include <netinet/tcp.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_UN_H
|
||||
# include <sys/un.h>
|
||||
#endif
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETDB_H
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BSD_SENDFILE
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
#ifdef HAVE_LINUX_SENDFILE
|
||||
#if !defined(__USE_FILE_OFFSET64)
|
||||
#include <sys/sendfile.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
extern int
|
||||
sendFd(int sock, int outfd);
|
||||
|
||||
extern int
|
||||
recvFd(int sock);
|
||||
|
||||
#endif /* HAVE_WINSOCK2_H && !__CYGWIN */
|
||||
|
||||
INLINE char *
|
||||
my_inet_ntoa(
|
||||
#if defined(HAVE_WINSOCK2_H)
|
||||
u_long addr
|
||||
#elif defined(HAVE_IN_ADDR_T)
|
||||
in_addr_t addr
|
||||
#elif defined(HAVE_INTTYPES_H)
|
||||
u_int32_t addr
|
||||
#else
|
||||
unsigned long addr
|
||||
#endif
|
||||
)
|
||||
{
|
||||
struct in_addr a;
|
||||
a.s_addr = addr;
|
||||
return inet_ntoa(a);
|
||||
}
|
||||
|
||||
#ifdef HAVE_GETADDRINFO
|
||||
INLINE int
|
||||
hsnet_getnameinfo(const struct sockaddr* a,socklen_t b, char* c,
|
||||
# if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
|
||||
DWORD d, char* e, DWORD f, int g)
|
||||
# else
|
||||
socklen_t d, char* e, socklen_t f, int g)
|
||||
# endif
|
||||
{
|
||||
return getnameinfo(a,b,c,d,e,f,g);
|
||||
}
|
||||
|
||||
INLINE int
|
||||
hsnet_getaddrinfo(const char *hostname, const char *servname,
|
||||
const struct addrinfo *hints, struct addrinfo **res)
|
||||
{
|
||||
return getaddrinfo(hostname, servname, hints, res);
|
||||
}
|
||||
|
||||
INLINE void
|
||||
hsnet_freeaddrinfo(struct addrinfo *ai)
|
||||
{
|
||||
freeaddrinfo(ai);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_WINSOCK2_H) && !defined(cygwin32_HOST_OS)
|
||||
# define WITH_WINSOCK 1
|
||||
#endif
|
||||
|
||||
#if !defined(mingw32_HOST_OS) && !defined(_WIN32)
|
||||
# define DOMAIN_SOCKET_SUPPORT 1
|
||||
#endif
|
||||
|
||||
#if !defined(CALLCONV)
|
||||
# if defined(WITH_WINSOCK)
|
||||
# define CALLCONV stdcall
|
||||
# else
|
||||
# define CALLCONV ccall
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(IOV_MAX)
|
||||
# define IOV_MAX 1024
|
||||
#endif
|
||||
|
||||
#if !defined(SOCK_NONBLOCK) // Missing define in Bionic libc (Android)
|
||||
# define SOCK_NONBLOCK O_NONBLOCK
|
||||
#endif
|
||||
|
||||
#endif /* HSNET_H */
|
@@ -0,0 +1,166 @@
|
||||
/* include/HsNetworkConfig.h. Generated from HsNetworkConfig.h.in by configure. */
|
||||
/* include/HsNetworkConfig.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the `accept4' function. */
|
||||
/* #undef HAVE_ACCEPT4 */
|
||||
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#define HAVE_ARPA_INET_H 1
|
||||
|
||||
/* Define to 1 if you have a BSDish sendfile(2) implementation. */
|
||||
#define HAVE_BSD_SENDFILE 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `AI_ADDRCONFIG', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_AI_ADDRCONFIG 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `AI_ALL', and to 0 if you don't.
|
||||
*/
|
||||
#define HAVE_DECL_AI_ALL 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `AI_NUMERICSERV', and to 0 if
|
||||
you don't. */
|
||||
#define HAVE_DECL_AI_NUMERICSERV 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `AI_V4MAPPED', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_AI_V4MAPPED 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `IPPROTO_IP', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_IPPROTO_IP 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `IPPROTO_IPV6', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_IPPROTO_IPV6 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `IPPROTO_TCP', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_IPPROTO_TCP 1
|
||||
|
||||
/* Define to 1 if you have the declaration of `IPV6_V6ONLY', and to 0 if you
|
||||
don't. */
|
||||
#define HAVE_DECL_IPV6_V6ONLY 1
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `gai_strerror' function. */
|
||||
#define HAVE_GAI_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the `getaddrinfo' function. */
|
||||
#define HAVE_GETADDRINFO 1
|
||||
|
||||
/* Define to 1 if you have the `gethostent' function. */
|
||||
#define HAVE_GETHOSTENT 1
|
||||
|
||||
/* Define to 1 if you have getpeereid. */
|
||||
#define HAVE_GETPEEREID 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if in_addr_t is available. */
|
||||
#define HAVE_IN_ADDR_T 1
|
||||
|
||||
/* Define to 1 if you have the `ws2_32' library (-lws2_32). */
|
||||
/* #undef HAVE_LIBWS2_32 */
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have a Linux sendfile(2) implementation. */
|
||||
/* #undef HAVE_LINUX_SENDFILE */
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the <netdb.h> header file. */
|
||||
#define HAVE_NETDB_H 1
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#define HAVE_NETINET_IN_H 1
|
||||
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */
|
||||
#define HAVE_NETINET_TCP_H 1
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#define HAVE_READLINK 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if `msg_accrights' is a member of `struct msghdr'. */
|
||||
/* #undef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS */
|
||||
|
||||
/* Define to 1 if `msg_control' is a member of `struct msghdr'. */
|
||||
#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
|
||||
|
||||
/* Define to 1 if `sa_len' is a member of `struct sockaddr'. */
|
||||
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
|
||||
|
||||
/* Define to 1 if you have both SO_PEERCRED and struct ucred. */
|
||||
/* #undef HAVE_STRUCT_UCRED */
|
||||
|
||||
/* Define to 1 if you have the `symlink' function. */
|
||||
#define HAVE_SYMLINK 1
|
||||
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#define HAVE_SYS_SOCKET_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */
|
||||
#define HAVE_SYS_UIO_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/un.h> header file. */
|
||||
#define HAVE_SYS_UN_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the <winsock2.h> header file. */
|
||||
/* #undef HAVE_WINSOCK2_H */
|
||||
|
||||
/* Define to 1 if you have the <ws2tcpip.h> header file. */
|
||||
/* #undef HAVE_WS2TCPIP_H */
|
||||
|
||||
/* Define to 1 if the `getaddrinfo' function needs WINVER set. */
|
||||
/* #undef NEED_WINVER_XP */
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "libraries@haskell.org"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "Haskell network package"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "Haskell network package 2.3.0.14"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "network"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "2.3.0.14"
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user