prep \
printf \
printroot \
+ printenv \
proto \
pwd \
pwdauth \
$(CCLD) -o $@ $?
@install -S 4kw $@
+printenv: printenv.c
+ $(CCLD) -o $@ $?
+ @install -S 4kw $@
+
printroot: printroot.c
$(CCLD) -o $@ $?
@install -S 4kw $@
/usr/bin/pr_routes \
/usr/bin/prep \
/usr/bin/printf \
+ /usr/bin/printenv \
/usr/bin/printroot \
/usr/bin/proto \
/usr/bin/pwd \
/usr/bin/printf: printf
install -cs -o bin $? $@
+/usr/bin/printenv: printenv
+ install -cs -o bin $? $@
+
/usr/bin/printroot: printroot
install -cs -o bin $? $@
--- /dev/null
+
+#include <stdio.h>
+
+int main(int argc, char *argv[], char *envp[])
+{
+ int p;
+ for(p = 0; envp[p] && *envp[p]; p++) {
+ printf("%s\n", envp[p]);
+ }
+ return 0;
+}
+