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

Delete inet_addr(3) and inet_ntoa(3).

This commit is contained in:
Jonas 'Sortie' Termansen 2020-07-26 00:09:53 +02:00
parent 185a9fa221
commit a969564af4
5 changed files with 0 additions and 82 deletions

View file

@ -156,20 +156,12 @@ This function only supports IPv4 and it supports a variety of weird ways to type
IPv4 addresses. Use inet_pton instead, which supports other address families as
well and only support standard address notations.
Soritx currently implements a stub of this function that calls abort(), this is
for compatibility to get some ports to compile (the ports should be patched to
use inet_pton instead).
inet_ntoa
---------
This function only supports IPv4 and it isn't thread safe. Use inet_ntop instead
which is thread safe and supports other address families.
Soritx currently implements a stub of this function that calls abort(), this is
for compatibility to get some ports to compile (the ports should be patched to
use inet_ntop instead).
lockf
-----

View file

@ -327,8 +327,6 @@ wctype/towupper.o \
wctype/wctype.o \
HOSTEDOBJS=\
arpa/inet/inet_addr.o \
arpa/inet/inet_ntoa.o \
blf/blowfish.o \
$(CPUDIR)/fork.o \
$(CPUDIR)/setjmp.o \

View file

@ -1,32 +0,0 @@
/*
* Copyright (c) 2013 Jonas 'Sortie' Termansen.
*
* 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 THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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.
*
* arpa/inet/inet_addr.c
* Internet address manipulation routines.
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
in_addr_t inet_addr(const char* cp)
{
(void) cp;
fprintf(stderr, "%s is not implemented yet, aborting.\n", __func__);
abort();
}

View file

@ -1,32 +0,0 @@
/*
* Copyright (c) 2013 Jonas 'Sortie' Termansen.
*
* 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 THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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.
*
* arpa/inet/inet_ntoa.c
* Internet address manipulation routines.
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
char* inet_ntoa(struct in_addr in)
{
(void) in;
fprintf(stderr, "%s is not implemented yet, aborting.\n", __func__);
abort();
}

View file

@ -28,14 +28,6 @@
extern "C" {
#endif
/* Functions from POSIX that is considered obsolete due to bad design. */
#if __USE_SORTIX || __USE_POSIX
__attribute__((__warning__("inet_addr is deprecated by inet_pton")))
in_addr_t inet_addr(const char*);
__attribute__((__warning__("inet_ntoa is deprecated by inet_ntop")))
char* inet_ntoa(struct in_addr);
#endif
/* Functions from POSIX. */
#if __USE_SORTIX || __USE_POSIX
const char* inet_ntop(int, const void* __restrict, char* __restrict, socklen_t);