3 @@ -29,10 +29,6 @@ auto-str.o: \
4 compile auto-str.c buffer.h exit.h
9 - ./auto-str auto_home `head -1 conf-home` > auto_home.c
14 @@ -221,10 +217,6 @@ compile dd.c dns.h stralloc.h gen_alloc.
19 -choose compile trydrent.c direntry.h1 direntry.h2
20 - ./choose c trydrent direntry.h1 direntry.h2 > direntry.h
23 makelib dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ipq.o dns_mx.o \
24 dns_name.o dns_nd.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o \
25 @@ -508,12 +500,6 @@ systype hasdevtcp.h1 hasdevtcp.h2
26 *) cat hasdevtcp.h1 ;; \
30 -choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \
32 - ./chkshsgr || ( cat warn-shsgr; exit 1 )
33 - ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
36 compile hier.c auto_home.h
38 @@ -534,10 +520,6 @@ instcheck.o: \
39 compile instcheck.c strerr.h error.h exit.h
43 -choose compile load trypoll.c iopause.h1 iopause.h2
44 - ./choose clr trypoll iopause.h1 iopause.h2 > iopause.h
47 compile iopause.c taia.h tai.h uint64.h select.h iopause.h taia.h
49 @@ -590,7 +572,7 @@ warn-auto.sh systype
53 - *) echo 'ranlib "$$main"' ;; \
54 + *) echo '$(if $(TARGET_RANLIB),$(TARGET_RANLIB),ranlib) "$$main"' ;; \
58 @@ -766,10 +748,6 @@ seek_set.o: \
59 compile seek_set.c seek.h
63 -choose compile trysysel.c select.h1 select.h2
64 - ./choose c trysysel select.h1 select.h2 > select.h
67 compile server.c byte.h case.h env.h buffer.h strerr.h ip4.h uint16.h \
68 ndelay.h socket.h uint16.h droproot.h qlog.h uint16.h response.h \
69 @@ -1060,10 +1038,6 @@ uint32_unpack.o: \
70 compile uint32_unpack.c uint32.h
71 ./compile uint32_unpack.c
74 -choose compile load tryulong64.c uint64.h1 uint64.h2
75 - ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h
78 makelib buffer_read.o buffer_write.o error.o error_str.o ndelay_off.o \
79 ndelay_on.o open_read.o open_trunc.o openreadclose.o readclose.o \
83 +const char auto_home[] = "\
89 -gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
90 +$TARGET_CC $TARGET_CFLAGS -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -include errno.h
92 This will be used to compile .c files.
99 This is the dnscache home directory. Programs will be installed in
105 +$TARGET_CC -s $TARGET_LDFLAGS
107 This will be used to link .o files into an executable.
114 +/* sysdep: +dirent */
116 +#include <sys/types.h>
118 +#define direntry struct dirent
124 +/* sysdep: -shortsetgroups */
132 +#define IOPAUSE_POLL
134 +#include <sys/types.h>
137 +typedef struct pollfd iopause_fd;
138 +#define IOPAUSE_READ POLLIN
139 +#define IOPAUSE_WRITE POLLOUT
143 +extern void iopause(iopause_fd *,unsigned int,struct taia *,struct taia *);
152 +/* sysdep: +sysselect */
154 +#include <sys/types.h>
155 +#include <sys/time.h>
156 +#include <sys/select.h>
157 +extern int select();
166 +/* sysdep: -ulong64 */
168 +typedef unsigned long long uint64;