projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove unused struct dso members from dynlink.c
[musl]
/
include
/
netdb.h
diff --git
a/include/netdb.h
b/include/netdb.h
index
703a4b2
..
d096c78
100644
(file)
--- a/
include/netdb.h
+++ b/
include/netdb.h
@@
-13,8
+13,7
@@
extern "C" {
#include <bits/alltypes.h>
#endif
#include <bits/alltypes.h>
#endif
-struct addrinfo
-{
+struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_flags;
int ai_family;
int ai_socktype;
@@
-25,8
+24,6
@@
struct addrinfo
struct addrinfo *ai_next;
};
struct addrinfo *ai_next;
};
-#define IPPORT_RESERVED 1024
-
#define AI_PASSIVE 0x01
#define AI_CANONNAME 0x02
#define AI_NUMERICHOST 0x04
#define AI_PASSIVE 0x01
#define AI_CANONNAME 0x02
#define AI_NUMERICHOST 0x04
@@
-62,16
+59,14
@@
const char *gai_strerror(int);
/* Legacy functions follow (marked OBsolete in SUS) */
/* Legacy functions follow (marked OBsolete in SUS) */
-struct netent
-{
+struct netent {
char *n_name;
char **n_aliases;
int n_addrtype;
uint32_t n_net;
};
char *n_name;
char **n_aliases;
int n_addrtype;
uint32_t n_net;
};
-struct hostent
-{
+struct hostent {
char *h_name;
char **h_aliases;
int h_addrtype;
char *h_name;
char **h_aliases;
int h_addrtype;
@@
-80,16
+75,14
@@
struct hostent
};
#define h_addr h_addr_list[0]
};
#define h_addr h_addr_list[0]
-struct servent
-{
+struct servent {
char *s_name;
char **s_aliases;
int s_port;
char *s_proto;
};
char *s_name;
char **s_aliases;
int s_port;
char *s_proto;
};
-struct protoent
-{
+struct protoent {
char *p_name;
char **p_aliases;
int p_proto;
char *p_name;
char **p_aliases;
int p_proto;