if (q[-1] == '/') {
if (stack[level - 1] == q - 1 || (stack[level - 1] == q - 2 && q[-2] == '.'))
q = stack[level - 1];
- else if (level >= 2 && stack[level - 1] == q - 3 && q[-3] == '.' && q[-2] == '.')
- q = stack[--level - 1];
+ else if (stack[level - 1] == q - 3 && q[-3] == '.' && q[-2] == '.') {
+ if (level >= 2)
+ q = stack[--level - 1];
+ else
+ stack[level - 1] = q;
+ }
else
stack[level++] = q;
}
DESTDIR=
SUBDIRS=arpa pascal protocols
STD= a.out.h ar.h assert.h ctype.h disktab.h fstab.h gen.h grp.h lastlog.h \
- math.h memory.h mtab.h ndbm.h netdb.h pcc.h pwd.h ranlib.h resolv.h \
- setjmp.h sgtty.h stab.h stdio.h string.h strings.h struct.h syscall.h \
- sysexits.h time.h ttyent.h utmp.h varargs.h vfont.h
+ math.h memory.h mtab.h ndbm.h net.h netdb.h pcc.h pwd.h ranlib.h \
+ resolv.h setjmp.h sgtty.h stab.h stdio.h string.h strings.h struct.h \
+ syscall.h sysexits.h time.h ttyent.h utmp.h varargs.h vfont.h
LINKS= errno.h signal.h syslog.h
MACHINE=vax
MACHDEP=${MACHINE} vaxif vaxmba vaxuba
all:
+# Nick has changed -m 444 to -m 644 below (it is really silly)
install: ${SHARED}
-for i in ${STD}; do \
cmp -s $$i ${DESTDIR}/usr/include/$$i || \
- install -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
+ install -c -m 644 $$i ${DESTDIR}/usr/include/$$i; \
done
-for i in ${SUBDIRS}; do \
if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
fi; \
(cd $$i; for j in *.[ih]; do \
cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
- install -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
+ install -c -m 644 $$j ${DESTDIR}/usr/include/$$i/$$j; \
done); \
done
-cmp -s Makefile.install ${DESTDIR}/usr/include/Makefile || \
- install -c -m 444 Makefile.install ${DESTDIR}/usr/include/Makefile
+ install -c -m 644 Makefile.install ${DESTDIR}/usr/include/Makefile
-for i in ${LINKS}; do \
rm -f ${DESTDIR}/usr/include/$$i; \
ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
+#include <sys/select.h>
#include <sys/time.h>
-#include <sys/types.h>
int select(n, r, w, e, t) fd_set *r, *w, *e; struct timeval *t; {
write(2, "select()\n", 9);