Refactored external inet code
This commit is contained in:
parent
0c41dc4f20
commit
ac7c9449da
|
@ -30,6 +30,7 @@ set -e
|
|||
|
||||
HDRS='
|
||||
compiler.h
|
||||
mem.h
|
||||
ntimed.h
|
||||
ntimed_endian.h
|
||||
ntimed_platform.h
|
||||
|
@ -37,13 +38,12 @@ HDRS='
|
|||
ntimed_tricks.h
|
||||
ntp.h
|
||||
ntp_tbl.h
|
||||
net_getaddrinfo.h
|
||||
net_poll.h
|
||||
param_instance.h
|
||||
param_tbl.h
|
||||
tz.h
|
||||
udp.h
|
||||
agetaddrinfo.h
|
||||
apoll.h
|
||||
mem.h
|
||||
'
|
||||
|
||||
SRCS='
|
||||
|
@ -51,6 +51,9 @@ SRCS='
|
|||
main_amiga_poll.c
|
||||
main_amiga_sim.c
|
||||
combine_delta.c
|
||||
mem.c
|
||||
net_getaddrinfo.c
|
||||
net_poll.c
|
||||
ntp_filter.c
|
||||
ntp_packet.c
|
||||
ntp_peer.c
|
||||
|
@ -66,9 +69,6 @@ SRCS='
|
|||
todo.c
|
||||
tz.c
|
||||
udp.c
|
||||
agetaddrinfo.c
|
||||
apoll.c
|
||||
mem.c
|
||||
'
|
||||
|
||||
#################################################
|
||||
|
@ -76,6 +76,9 @@ SRCS='
|
|||
SRCS1='
|
||||
main_amiga_client.c
|
||||
combine_delta.c
|
||||
mem.c
|
||||
net_getaddrinfo.c
|
||||
net_poll.c
|
||||
ntp_filter.c
|
||||
ntp_packet.c
|
||||
ntp_peer.c
|
||||
|
@ -86,19 +89,18 @@ SRCS1='
|
|||
pll_std.c
|
||||
suckaddr.c
|
||||
time_amiga.c
|
||||
time_sim.c
|
||||
time_stuff.c
|
||||
todo.c
|
||||
tz.c
|
||||
udp.c
|
||||
agetaddrinfo.c
|
||||
apoll.c
|
||||
mem.c
|
||||
'
|
||||
|
||||
SRCS2='
|
||||
main_amiga_poll.c
|
||||
combine_delta.c
|
||||
mem.c
|
||||
net_getaddrinfo.c
|
||||
net_poll.c
|
||||
ntp_filter.c
|
||||
ntp_packet.c
|
||||
ntp_peer.c
|
||||
|
@ -109,19 +111,18 @@ SRCS2='
|
|||
pll_std.c
|
||||
suckaddr.c
|
||||
time_amiga.c
|
||||
time_sim.c
|
||||
time_stuff.c
|
||||
todo.c
|
||||
tz.c
|
||||
udp.c
|
||||
agetaddrinfo.c
|
||||
apoll.c
|
||||
mem.c
|
||||
'
|
||||
|
||||
SRCS3='
|
||||
main_amiga_sim.c
|
||||
combine_delta.c
|
||||
mem.c
|
||||
net_getaddrinfo.c
|
||||
net_poll.c
|
||||
ntp_filter.c
|
||||
ntp_packet.c
|
||||
ntp_peer.c
|
||||
|
@ -135,9 +136,6 @@ SRCS3='
|
|||
time_stuff.c
|
||||
todo.c
|
||||
udp.c
|
||||
agetaddrinfo.c
|
||||
apoll.c
|
||||
mem.c
|
||||
'
|
||||
#################################################
|
||||
|
||||
|
@ -232,6 +230,6 @@ if $VALID ; then
|
|||
echo "depend:"
|
||||
echo " @echo Dependencies already done"
|
||||
) > Makefile
|
||||
|
||||
echo "Makefile generated"
|
||||
fi
|
||||
|
||||
echo "Makefile generated"
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
#include <netdb.h>
|
||||
|
||||
#include "ntimed.h"
|
||||
#include "agetaddrinfo.h"
|
||||
#include "net_getaddrinfo.h"
|
||||
|
||||
#ifdef ENABLE_PTHREAD
|
||||
#include <pthread.h>
|
|
@ -29,7 +29,7 @@
|
|||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "apoll.h"
|
||||
#include "net_poll.h"
|
||||
|
||||
int poll(struct pollfd *pfds, nfds_t nfds, int timeout)
|
||||
{
|
|
@ -34,8 +34,7 @@
|
|||
#include "ntimed.h"
|
||||
#include "udp.h"
|
||||
#include "ntp.h"
|
||||
|
||||
#include "agetaddrinfo.h"
|
||||
#include "net_getaddrinfo.h"
|
||||
|
||||
struct ntp_peer *
|
||||
NTP_Peer_New(const char *hostname, const void *sa, unsigned salen)
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
#include "ntimed.h"
|
||||
#include "ntp.h"
|
||||
#include "agetaddrinfo.h"
|
||||
#include "net_getaddrinfo.h"
|
||||
|
||||
struct ntp_group {
|
||||
unsigned magic;
|
||||
|
|
Loading…
Reference in New Issue