1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-13 12:22:55 +03:00

Back out V6 code, caused postmaster startup failure.

This commit is contained in:
Bruce Momjian
2002-12-06 04:37:05 +00:00
parent 4bfd1ad9e0
commit 38ffbb95d5
13 changed files with 276 additions and 645 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq.h,v 1.53 2002/12/06 03:46:32 momjian Exp $
* $Id: libpq.h,v 1.54 2002/12/06 04:37:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,7 +19,6 @@
#include "lib/stringinfo.h"
#include "libpq/libpq-be.h"
#include "libpq/v6util.h"
/* ----------------
* PQArgBlock

View File

@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.71 2002/12/06 03:46:33 momjian Exp $
* $Id: pqcomm.h,v 1.72 2002/12/06 04:37:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -47,7 +47,6 @@ typedef union SockAddr
{
struct sockaddr sa;
struct sockaddr_in in;
struct sockaddr_in6 in6;
struct sockaddr_un un;
} SockAddr;

View File

@@ -1,17 +0,0 @@
#ifndef V6UTIL_H
#define V6UTIL_H
void freeaddrinfo2(int hint_ai_family, struct addrinfo *ai);
int getaddrinfo2(const char* hostname, const char* servname,
const struct addrinfo* hintp, struct addrinfo **result);
char* SockAddr_ntop(const SockAddr* sa, char* dst, size_t cnt, int v4conv);
int SockAddr_pton(SockAddr* sa, const char* src, size_t cnt);
int isAF_INETx(const SockAddr* sa);
int isAF_INETx2(int family);
int rangeSockAddr(const SockAddr* addr, const SockAddr* netaddr, const SockAddr* netmask);
int rangeSockAddrAF_INET(const SockAddr* addr, const SockAddr* netaddr,
const SockAddr* netmask);
int rangeSockAddrAF_INET6(const SockAddr* addr, const SockAddr* netaddr,
const SockAddr* netmask);
void convSockAddr6to4(const SockAddr* src, SockAddr* dst);
#endif /* V6UTIL_H */