3 @@ -36,10 +36,6 @@ auto-str.o: \
4 compile auto-str.c buffer.h readwrite.h exit.h
9 - ./auto-str auto_home `head -1 conf-home` > auto_home.c
14 @@ -305,10 +301,6 @@ fmt_ulong.o: \
15 compile fmt_ulong.c fmt.h
19 -choose compile load tryvfork.c fork.h1 fork.h2
20 - ./choose cl tryvfork fork.h1 fork.h2 > fork.h
23 compile getln.c byte.h getln.h buffer.h stralloc.h gen_alloc.h
25 @@ -317,24 +309,6 @@ getln2.o: \
26 compile getln2.c byte.h getln.h buffer.h stralloc.h gen_alloc.h
30 -choose compile load trysgact.c hassgact.h1 hassgact.h2
31 - ./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h
34 -choose compile load trysgprm.c hassgprm.h1 hassgprm.h2
35 - ./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h
38 -choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \
40 - ./chkshsgr || ( cat warn-shsgr; exit 1 )
41 - ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
44 -choose compile load trywaitp.c haswaitp.h1 haswaitp.h2
45 - ./choose cl trywaitp haswaitp.h1 haswaitp.h2 > haswaitp.h
48 compile hier.c auto_home.h
50 @@ -362,10 +336,6 @@ instcheck.o: \
51 compile instcheck.c strerr.h error.h readwrite.h exit.h
55 -choose compile trypoll.c iopause.h1 iopause.h2
56 - ./choose clr trypoll iopause.h1 iopause.h2 > iopause.h
59 compile iopause.c taia.h tai.h uint64.h select.h iopause.h taia.h
61 @@ -404,7 +374,7 @@ warn-auto.sh systype
65 - *) echo 'ranlib "$$main"' ;; \
66 + *) echo '$(if $(TARGET_RANLIB),$(TARGET_RANLIB),ranlib) "$$main"' ;; \
70 @@ -521,10 +491,6 @@ seek_set.o: \
71 compile seek_set.c seek.h
75 -choose compile trysysel.c select.h1 select.h2
76 - ./choose c trysysel select.h1 select.h2 > select.h
81 @@ -791,10 +757,6 @@ uint32_unpack.o: \
82 compile uint32_unpack.c uint32.h
83 ./compile uint32_unpack.c
86 -choose compile load tryulong64.c uint64.h1 uint64.h2
87 - ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h
90 makelib alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o buffer_2.o \
91 buffer_copy.o buffer_get.o buffer_put.o env.o error.o error_str.o \
95 +const char auto_home[] = "\
102 +$CC $CFLAGS -include errno.h
104 This will be used to compile .c files.
111 This is the ucspi-tcp home directory. Programs will be installed in
119 This will be used to link .o files into an executable.
126 +/* sysdep: +vfork */
135 +/* sysdep: +sigaction */
136 +#define HASSIGACTION 1
140 +/* sysdep: +sigprocmask */
141 +#define HASSIGPROCMASK 1
145 +/* sysdep: -shortsetgroups */
149 +/* sysdep: +waitpid */
150 +#define HASWAITPID 1
158 +#define IOPAUSE_POLL
160 +#include <sys/types.h>
163 +typedef struct pollfd iopause_fd;
164 +#define IOPAUSE_READ POLLIN
165 +#define IOPAUSE_WRITE POLLOUT
169 +extern void iopause(iopause_fd *,unsigned int,struct taia *,struct taia *);
178 +/* sysdep: +sysselect */
180 +#include <sys/types.h>
181 +#include <sys/time.h>
182 +#include <sys/select.h>
183 +extern int select();
192 +/* sysdep: -ulong64 */
194 +typedef unsigned long long uint64;