mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Per git log, the last time someone tried to do something with pgrminclude was around 2011. Many (not all) of the "pgrminclude ignore" annotations are of a newer date but seem to have just been copied around during refactorings and file moves and don't seem to reflect an actual need anymore. There have been some parallel experiments with include-what-you-use (IWYU) annotations, but these don't seem to correspond very strongly to pgrminclude annotations, so there is no value in keeping the existing ones even for that kind of thing. So, wipe them all away. We can always add new ones in the future based on actual needs. Discussion: https://www.postgresql.org/message-id/flat/2d4dc7b2-cb2e-49b1-b8ca-ba5f7024f05b%40eisentraut.org
34 lines
909 B
C
34 lines
909 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* ip.h
|
|
* Definitions for IPv6-aware network access.
|
|
*
|
|
* These definitions are used by both frontend and backend code.
|
|
*
|
|
* Copyright (c) 2003-2024, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/common/ip.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef IP_H
|
|
#define IP_H
|
|
|
|
#include <netdb.h>
|
|
#include <sys/socket.h>
|
|
|
|
#include "libpq/pqcomm.h"
|
|
|
|
|
|
extern int pg_getaddrinfo_all(const char *hostname, const char *servname,
|
|
const struct addrinfo *hintp,
|
|
struct addrinfo **result);
|
|
extern void pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai);
|
|
|
|
extern int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen,
|
|
char *node, int nodelen,
|
|
char *service, int servicelen,
|
|
int flags);
|
|
|
|
#endif /* IP_H */
|