summaryrefslogtreecommitdiff
path: root/usr/src/head/netdb.h
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2014-08-20 20:04:47 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2014-08-20 20:04:47 +0000
commit5f00496ef2e39b976b062f196ff01a99fd4864a4 (patch)
tree20be9cbc8f4b7ed3e616ce23552728083801e846 /usr/src/head/netdb.h
parentaf59b1a40df03681c1c8129aea7b1f5f52f2bcea (diff)
parent86bb58aec7165f8a0303564575c65e5a2ad58bf1 (diff)
downloadillumos-joyent-release-20140821.tar.gz
[illumos-gate merge]20140821release-20140821
commit 86bb58aec7165f8a0303564575c65e5a2ad58bf1 5095 panic when adding a duplicate dbuf to dn_dbufs commit 60a61f7adabc73a7a0cb70d200ac2a6735f4a6e8 5092 env files don't need to define LOCKNAME by default 5091 illumos.sh env file's LOCKNAME definition is busted commit 5e3f545c431ec4bce3e1b52f3f81bc9befe501f2 4989 removal of ntfsprogs and parted commit ba3594ba9b5dd4c846c472a8d657edcb7c8109ac 5066 remove support for non-ANSI compilation 5068 Remove SCCSID() macro from <macros.h> commit d8ccf998f9c944b8cf27ed840c376f9b79ebce5c 5087 8-bit inline atomic {add,or,and} use wrong reg constraints on x86 Manifests: usr/src/pkg/manifests/SUNWntfsprogs.mf (torch library) usr/src/pkg/manifests/SUNWparted.mf (torch headers) usr/src/pkg/manifests/system-file-system-ntfsprogs.mf usr/src/pkg/manifests/system-storage-parted.mf
Diffstat (limited to 'usr/src/head/netdb.h')
-rw-r--r--usr/src/head/netdb.h82
1 files changed, 2 insertions, 80 deletions
diff --git a/usr/src/head/netdb.h b/usr/src/head/netdb.h
index 8c912d3ffa..b26c26d40b 100644
--- a/usr/src/head/netdb.h
+++ b/usr/src/head/netdb.h
@@ -1,4 +1,6 @@
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -229,7 +231,6 @@ struct servent {
char *s_proto; /* protocol to use */
};
-#ifdef __STDC__
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
struct hostent *gethostbyname_r
(const char *, struct hostent *, char *, int, int *h_errnop);
@@ -353,81 +354,6 @@ void freeipsecalgent(struct ipsecalgent *ptr);
/* END IPsec algorithm prototype definitions */
#endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
-#else /* __STDC__ */
-struct hostent *gethostbyname_r();
-struct hostent *gethostbyaddr_r();
-struct hostent *getipnodebyname();
-struct hostent *getipnodebyaddr();
-void freehostent();
-struct hostent *gethostent_r();
-struct servent *getservbyname_r();
-struct servent *getservbyport_r();
-struct servent *getservent_r();
-struct netent *getnetbyname_r();
-struct netent *getnetbyaddr_r();
-struct netent *getnetent_r();
-struct protoent *getprotobyname_r();
-struct protoent *getprotobynumber_r();
-struct protoent *getprotoent_r();
-int getnetgrent_r();
-int innetgr();
-
-/* Old interfaces that return a pointer to a static area; MT-unsafe */
-struct hostent *gethostbyname();
-struct hostent *gethostbyaddr();
-struct hostent *gethostent();
-struct netent *getnetbyname();
-struct netent *getnetbyaddr();
-struct netent *getnetent();
-struct servent *getservbyname();
-struct servent *getservbyport();
-struct servent *getservent();
-struct protoent *getprotobyname();
-struct protoent *getprotobynumber();
-struct protoent *getprotoent();
-int getnetgrent();
-
-int sethostent();
-int endhostent();
-int setnetent();
-int endnetent();
-int setservent();
-int endservent();
-int setprotoent();
-int endprotoent();
-int setnetgrent();
-int endnetgrent();
-int rcmd();
-int rcmd_af();
-int rexec();
-int rexec_af();
-int rresvport();
-int rresvport_af();
-int rresvport_addr();
-int ruserok();
-/* BIND */
-struct hostent *gethostbyname2();
-void herror();
-char *hstrerror();
-/* IPv6 prototype definitons */
-int getaddrinfo();
-void freeaddrinfo();
-const char *gai_strerror();
-int getnameinfo();
-/* END IPv6 prototype definitions */
-/* End BIND */
-
-#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-/* IPsec algorithm prototype definitions */
-struct ipsecalgent *getalgbyname();
-struct ipsecalgent *getalgbydoi();
-int getdoidomainbyname();
-const char *getdoidomainbynum();
-void freealgent();
-/* END IPsec algorithm prototype definitions */
-#endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
-
-#endif /* __STDC__ */
/*
* Error return codes from gethostbyname() and gethostbyaddr()
@@ -437,11 +363,7 @@ void freealgent();
extern int h_errno;
#ifdef _REENTRANT
-#ifdef __STDC__
extern int *__h_errno(void);
-#else
-extern int *__h_errno();
-#endif /* __STDC__ */
/* Only #define h_errno if there is no conflict with other use */
#ifdef H_ERRNO_IS_FUNCTION