Commit 17d0495c authored by Mark Andrews's avatar Mark Andrews
Browse files

160. [cleanup] getnet*() are not going to be implemented at this

			 stage.
parent 5daef09d
160. [cleanup] getnet*() are not going to be implemented at this
stage.
159. [func] Redefinition of config file elements is now an
error (instead of a warning).
......
/*
* Copyright (C) 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#include <config.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <lwres/netdb.h>
#include "assert_p.h"
struct netent *
lwres_getnetbyname(const char *name) {
/* XXX */
UNUSED(name);
return (NULL);
}
struct netent *
lwres_getnetbyaddr(unsigned long net, int type) {
if (type == AF_INET)
return (NULL);
/* XXX */
UNUSED(net);
return (NULL);
}
struct netent *
lwres_getnetent() {
return (NULL);
}
void
lwres_setnetent(int stayopen) {
UNUSED(stayopen);
/* empty */
}
void
lwres_endnetent() {
/* empty */
}
struct netent *
lwres_getnetbyname_r(const char *name, struct netent *resbuf, char *buf,
int buflen)
{
return (NULL);
}
struct netent *
lwres_getnetbyaddr_r(long addr, int type, struct netent *resbuf, char *buf,
int buflen)
{
return (NULL);
}
struct netent *
lwres_getnetent_r(struct netent *resbuf, char *buf, int buflen) {
return (NULL);
}
void
lwres_setnetent_r(int stayopen) {
(void)stayopen;
}
void
lwres_endnetent_r(void) {
/* empty */
}
......@@ -286,7 +286,6 @@ struct addrinfo {
#define getprotoent_r lwres_getprotoent_r
#define setprotoent_r lwres_setprotoent_r
#define endprotoent_r lwres_endprotoent_r
#endif
#ifdef getnetbyname
#undef getnetbyname
......@@ -338,13 +337,14 @@ struct addrinfo {
#undef endnetent_r
#endif
#define endnetent_r lwres_endnetent_r
#endif /* notyet */
#ifdef h_errno
#undef h_errno
#endif
#define h_errno lwres_h_errno
#endif
#endif /* LWRES_NAMESPACE */
LWRES_LANG_BEGINDECLS
......@@ -368,13 +368,13 @@ void lwres_sethostent(int);
/* void lwres_sethostfile(const char *); */
void lwres_freehostent(struct hostent *);
#ifdef notyet
struct netent *lwres_getnetbyaddr(unsigned long, int);
struct netent *lwres_getnetbyname(const char *);
struct netent *lwres_getnetent(void);
void lwres_endnetent(void);
void lwres_setnetent(int);
#ifdef notyet
struct protoent *lwres_getprotobyname(const char *);
struct protoent *lwres_getprotobynumber(int);
struct protoent *lwres_getprotoent(void);
......@@ -401,6 +401,7 @@ struct hostent *lwres_gethostent_r(struct hostent *, char *, int, int *);
void lwres_sethostent_r(int);
void lwres_endhostent_r(void);
#ifdef notyet
struct netent *lwres_getnetbyname_r(const char *, struct netent *,
char *, int);
struct netent *lwres_getnetbyaddr_r(long, int, struct netent *,
......@@ -409,7 +410,6 @@ struct netent *lwres_getnetent_r(struct netent *, char *, int);
void lwres_setnetent_r(int);
void lwres_endnetent_r(void);
#ifdef notyet
struct protoent *lwres_getprotobyname_r(const char *,
struct protoent *, char *, int);
struct protoent *lwres_getprotobynumber_r(int,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment