1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Refuse to implement gethostent(3).

This commit is contained in:
Jonas 'Sortie' Termansen 2014-10-19 15:05:13 +02:00
parent ba1e0882ec
commit 52abb4d899
5 changed files with 5 additions and 117 deletions

View file

@ -360,14 +360,12 @@ locale/localeconv.o \
locale/setlocale.o \
msr/rdmsr.o \
msr/wrmsr.o \
netdb/endhostent.o \
netdb/endnetent.o \
netdb/endprotoent.o \
netdb/endservent.o \
netdb/freeaddrinfo.o \
netdb/gai_strerror.o \
netdb/getaddrinfo.o \
netdb/gethostent.o \
netdb/getnameinfo.o \
netdb/getnetbyaddr.o \
netdb/getnetbyname.o \
@ -378,7 +376,6 @@ netdb/getprotoent.o \
netdb/getservbyname.o \
netdb/getservbyport.o \
netdb/getservent.o \
netdb/sethostent.o \
netdb/setnetent.o \
netdb/setprotoent.o \
netdb/setservent.o \

View file

@ -1,6 +1,6 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
This file is part of the Sortix C Library.
@ -48,14 +48,7 @@ typedef uint32_t in_addr_t;
typedef __socklen_t socklen_t;
#endif
struct hostent
{
char* h_name;
char** h_aliases;
char** h_addr_list;
int h_addrtype;
int h_length;
};
/* struct hostent will not be implemented. */
struct netent
{
@ -126,7 +119,7 @@ struct addrinfo
#define NI_MAXHOST 1025
#define NI_MAXSERV 32
void endhostent(void);
/* endhostent will not be implemented. */
void endnetent(void);
void endprotoent(void);
void endservent(void);
@ -134,7 +127,7 @@ void freeaddrinfo(struct addrinfo*);
const char* gai_strerror(int);
int getaddrinfo(const char* __restrict, const char* __restrict,
const struct addrinfo* __restrict, struct addrinfo** __restrict);
struct hostent* gethostent(void);
/* gethostent will not be implemented. */
int getnameinfo(const struct sockaddr* __restrict, socklen_t, char* __restrict,
socklen_t, char* __restrict, socklen_t, int);
struct netent* getnetbyaddr(uint32_t, int);
@ -146,7 +139,7 @@ struct protoent* getprotoent(void);
struct servent* getservbyname(const char*, const char*);
struct servent* getservbyport(int, const char*);
struct servent* getservent(void);
void sethostent(int);
/* sethostent will not be implemented. */
void setnetent(int);
void setprotoent(int);
void setservent(int);

View file

@ -1,34 +0,0 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
This file is part of the Sortix C Library.
The Sortix C Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
The Sortix C Library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
netdb/endhostent.cpp
Get network host entry.
*******************************************************************************/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
extern "C" void endhostent(void)
{
fprintf(stderr, "%s is not implemented, aborting.\n", __func__);
abort();
}

View file

@ -1,34 +0,0 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
This file is part of the Sortix C Library.
The Sortix C Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
The Sortix C Library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
netdb/gethostent.cpp
Get network host entry.
*******************************************************************************/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
extern "C" struct hostent* gethostent(void)
{
fprintf(stderr, "%s is not implemented, aborting.\n", __func__);
abort();
}

View file

@ -1,34 +0,0 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
This file is part of the Sortix C Library.
The Sortix C Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
The Sortix C Library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
netdb/sethostent.cpp
Get network host entry.
*******************************************************************************/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
extern "C" void sethostent(int)
{
fprintf(stderr, "%s is not implemented, aborting.\n", __func__);
abort();
}