Skip to content

Commit

Permalink
Merge pull request #49 from afxgroup/write
Browse files Browse the repository at this point in the history
Added new multiple platform sigjmp. Added IPV6 headers
  • Loading branch information
afxgroup authored Apr 16, 2022
2 parents a42bd4b + 3172731 commit 591d309
Show file tree
Hide file tree
Showing 24 changed files with 995 additions and 645 deletions.
1 change: 1 addition & 0 deletions GNUmakefile.os4
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ endef
install:
$(DELETE) $(INSTALL_PREFIX)/include/*
$(DELETE) $(INSTALL_PREFIX)/lib/*
$(COPY) LICENSE* $(INSTALL_PREFIX)/
$(COPY) $(OUTPUT_LIB)/* $(INSTALL_PREFIX)/lib/
$(COPY) libauto.a $(INSTALL_PREFIX)/lib/
$(COPY) $(LIB_ROOT)/library/include/* $(INSTALL_PREFIX)/include/
Expand Down
10 changes: 6 additions & 4 deletions libc.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -232,24 +232,24 @@ C_SEARCH := \
search/twalk.o

C_SOCKET := \
socket/freeifaddrs.o \
socket/getifaddrs.o \
socket/if_indextoname.o \
socket/if_nametoindex.o \
socket/accept.o \
socket/bind.o \
socket/bindresvport.o \
socket/bindresvport6.o \
socket/check_daemon.o \
socket/connect.o \
socket/dn_comp.o \
socket/dn_expand.o \
socket/dn_skipname.o \
socket/freeaddrinfo.o \
socket/freeifaddrs.o \
socket/gai_strerror.o \
socket/getaddrinfo.o \
socket/gethostbyaddr.o \
socket/gethostbyname.o \
socket/gethostid.o \
socket/gethostname.o \
socket/getifaddrs.o \
socket/getnameinfo.o \
socket/getnetbyaddr.o \
socket/getnetbyname.o \
Expand All @@ -261,6 +261,8 @@ C_SOCKET := \
socket/getsockname.o \
socket/getsockopt.o \
socket/get_descriptor.o \
socket/if_indextoname.o \
socket/if_nametoindex.o \
socket/inet_addr.o \
socket/inet_aton.o \
socket/inet_lnaof.o \
Expand Down
1 change: 1 addition & 0 deletions library/include/errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ extern int errno;
#define EOVERFLOW 84 /* Value too large to be stored in data type. */
#define EILSEQ 85 /* Encoding error detected */
#define EPROTO 86 /* Protocol error */
#define ECANCELED 87 /* Operation canceled */
#define ENOTSUP 1134 /* Not supported */

__END_DECLS
Expand Down
6 changes: 5 additions & 1 deletion library/include/net/if.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef _NET_IF_H
#define _NET_IF_H

#include <features.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h>
Expand Down Expand Up @@ -121,9 +122,10 @@ struct if_nameindex {
char *if_name; /* null terminated name: "eth0", ... */
};

__BEGIN_DECLS

/* Convert an interface name to an index, and vice versa. */
extern unsigned int if_nametoindex(const char *ifname);

extern char *if_indextoname(unsigned int ifindex, char *ifname);

/* Return a list of all interfaces and their indices. */
Expand All @@ -132,4 +134,6 @@ extern char *if_indextoname(unsigned int ifindex, char *ifname);
/* Free the data returned from if_nameindex. */
//extern void if_freenameindex (struct if_nameindex *ptr);

__END_DECLS

#endif
Loading

0 comments on commit 591d309

Please sign in to comment.