1
0
mirror of https://frontier.innolan.net/rainlance/amiga-ntimed.git synced 2025-11-20 03:55:33 +00:00

Refactored external inet code

This commit is contained in:
llsth
2015-03-19 12:40:19 +01:00
parent 0c41dc4f20
commit ac7c9449da
8 changed files with 22 additions and 25 deletions

36
configure vendored
View File

@ -30,6 +30,7 @@ set -e
HDRS=' HDRS='
compiler.h compiler.h
mem.h
ntimed.h ntimed.h
ntimed_endian.h ntimed_endian.h
ntimed_platform.h ntimed_platform.h
@ -37,13 +38,12 @@ HDRS='
ntimed_tricks.h ntimed_tricks.h
ntp.h ntp.h
ntp_tbl.h ntp_tbl.h
net_getaddrinfo.h
net_poll.h
param_instance.h param_instance.h
param_tbl.h param_tbl.h
tz.h tz.h
udp.h udp.h
agetaddrinfo.h
apoll.h
mem.h
' '
SRCS=' SRCS='
@ -51,6 +51,9 @@ SRCS='
main_amiga_poll.c main_amiga_poll.c
main_amiga_sim.c main_amiga_sim.c
combine_delta.c combine_delta.c
mem.c
net_getaddrinfo.c
net_poll.c
ntp_filter.c ntp_filter.c
ntp_packet.c ntp_packet.c
ntp_peer.c ntp_peer.c
@ -66,9 +69,6 @@ SRCS='
todo.c todo.c
tz.c tz.c
udp.c udp.c
agetaddrinfo.c
apoll.c
mem.c
' '
################################################# #################################################
@ -76,6 +76,9 @@ SRCS='
SRCS1=' SRCS1='
main_amiga_client.c main_amiga_client.c
combine_delta.c combine_delta.c
mem.c
net_getaddrinfo.c
net_poll.c
ntp_filter.c ntp_filter.c
ntp_packet.c ntp_packet.c
ntp_peer.c ntp_peer.c
@ -86,19 +89,18 @@ SRCS1='
pll_std.c pll_std.c
suckaddr.c suckaddr.c
time_amiga.c time_amiga.c
time_sim.c
time_stuff.c time_stuff.c
todo.c todo.c
tz.c tz.c
udp.c udp.c
agetaddrinfo.c
apoll.c
mem.c
' '
SRCS2=' SRCS2='
main_amiga_poll.c main_amiga_poll.c
combine_delta.c combine_delta.c
mem.c
net_getaddrinfo.c
net_poll.c
ntp_filter.c ntp_filter.c
ntp_packet.c ntp_packet.c
ntp_peer.c ntp_peer.c
@ -109,19 +111,18 @@ SRCS2='
pll_std.c pll_std.c
suckaddr.c suckaddr.c
time_amiga.c time_amiga.c
time_sim.c
time_stuff.c time_stuff.c
todo.c todo.c
tz.c tz.c
udp.c udp.c
agetaddrinfo.c
apoll.c
mem.c
' '
SRCS3=' SRCS3='
main_amiga_sim.c main_amiga_sim.c
combine_delta.c combine_delta.c
mem.c
net_getaddrinfo.c
net_poll.c
ntp_filter.c ntp_filter.c
ntp_packet.c ntp_packet.c
ntp_peer.c ntp_peer.c
@ -135,9 +136,6 @@ SRCS3='
time_stuff.c time_stuff.c
todo.c todo.c
udp.c udp.c
agetaddrinfo.c
apoll.c
mem.c
' '
################################################# #################################################
@ -232,6 +230,6 @@ if $VALID ; then
echo "depend:" echo "depend:"
echo " @echo Dependencies already done" echo " @echo Dependencies already done"
) > Makefile ) > Makefile
fi
echo "Makefile generated" echo "Makefile generated"
fi

View File

@ -60,7 +60,7 @@
#include <netdb.h> #include <netdb.h>
#include "ntimed.h" #include "ntimed.h"
#include "agetaddrinfo.h" #include "net_getaddrinfo.h"
#ifdef ENABLE_PTHREAD #ifdef ENABLE_PTHREAD
#include <pthread.h> #include <pthread.h>

View File

@ -29,7 +29,7 @@
#include <signal.h> #include <signal.h>
#include <errno.h> #include <errno.h>
#include "apoll.h" #include "net_poll.h"
int poll(struct pollfd *pfds, nfds_t nfds, int timeout) int poll(struct pollfd *pfds, nfds_t nfds, int timeout)
{ {

View File

View File

@ -34,8 +34,7 @@
#include "ntimed.h" #include "ntimed.h"
#include "udp.h" #include "udp.h"
#include "ntp.h" #include "ntp.h"
#include "net_getaddrinfo.h"
#include "agetaddrinfo.h"
struct ntp_peer * struct ntp_peer *
NTP_Peer_New(const char *hostname, const void *sa, unsigned salen) NTP_Peer_New(const char *hostname, const void *sa, unsigned salen)

View File

@ -46,7 +46,7 @@
#include "ntimed.h" #include "ntimed.h"
#include "ntp.h" #include "ntp.h"
#include "agetaddrinfo.h" #include "net_getaddrinfo.h"
struct ntp_group { struct ntp_group {
unsigned magic; unsigned magic;

2
udp.c
View File

@ -41,7 +41,7 @@
#include "ntimed.h" #include "ntimed.h"
#include "udp.h" #include "udp.h"
#include "apoll.h" #include "net_poll.h"
struct udp_socket { struct udp_socket {
unsigned magic; unsigned magic;