summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-10-01 20:13:13 -0400
committerJakob Kaivo <jkk@ung.org>2019-10-01 20:13:13 -0400
commit94d2ec943df855e7f156b3ca09c89461e86b2cea (patch)
tree1ad8d134d96a1e322e6a90bce94e710368ef40c0 /src
initial commit
Diffstat (limited to 'src')
-rw-r--r--src/Makefile29
-rw-r--r--src/ar.c2
-rw-r--r--src/asa.c2
-rw-r--r--src/basename.c2
-rw-r--r--src/bc.c2
-rw-r--r--src/cal.c2
-rw-r--r--src/cat.c2
-rw-r--r--src/chgrp.c2
-rw-r--r--src/chmod.c2
-rw-r--r--src/chown.c2
-rw-r--r--src/cksum.c2
-rw-r--r--src/cmp.c2
-rw-r--r--src/cp.c2
-rw-r--r--src/crontab.c2
-rw-r--r--src/ctags.c2
-rw-r--r--src/date.c2
-rw-r--r--src/dd.c2
-rw-r--r--src/dirname.c2
-rw-r--r--src/du.c2
-rw-r--r--src/ed.c9
-rw-r--r--src/env.c2
-rw-r--r--src/ex.c2
-rw-r--r--src/expand.c2
-rw-r--r--src/file.c3
-rw-r--r--src/getconf.c2
-rw-r--r--src/grep.c2
-rw-r--r--src/head.c2
-rw-r--r--src/iconv.c2
-rw-r--r--src/id.c2
-rw-r--r--src/link.c2
-rw-r--r--src/ln.c2
-rw-r--r--src/locale.c2
-rw-r--r--src/logger.c2
-rw-r--r--src/logname.c2
-rw-r--r--src/ls.c2
-rw-r--r--src/mkdir.c2
-rw-r--r--src/mkfifo.c2
-rw-r--r--src/more.c2
-rw-r--r--src/nice.c2
-rw-r--r--src/nohup.c2
-rw-r--r--src/od.c2
-rw-r--r--src/paste.c2
-rw-r--r--src/pathchk.c2
-rw-r--r--src/printf.c2
-rw-r--r--src/renice.c2
-rw-r--r--src/rm.c2
-rw-r--r--src/rmdir.c2
-rw-r--r--src/sh.c37
-rw-r--r--src/sleep.c2
-rw-r--r--src/split.c2
-rw-r--r--src/strings.c2
-rw-r--r--src/stty.c2
-rw-r--r--src/sum.c2
-rw-r--r--src/tail.c2
-rw-r--r--src/tee.c2
-rw-r--r--src/tput.c2
-rw-r--r--src/tr.c2
-rw-r--r--src/uname.c2
-rw-r--r--src/unlink.c2
-rw-r--r--src/uudecode.c2
-rw-r--r--src/uuencode.c2
-rw-r--r--src/wc.c2
-rw-r--r--src/who.c2
-rw-r--r--src/write.c2
64 files changed, 198 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..56c54ca
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,29 @@
+.POSIX:
+
+all: bosix
+
+OBJS= ar.o asa.o \
+ basename.o \
+ cal.o cat.o chgrp.o chmod.o chown.o cksum.o cmp.o cp.o crontab.o ctags.o \
+ date.o dd.o dirname.o du.o \
+ ed.o env.o ex.o expand.o \
+ file.o \
+ getconf.o grep.o \
+ head.o \
+ iconv.o id.o \
+ link.o ln.o locale.o logger.o logname.o ls.o \
+ mkdir.o mkfifo.o more.o \
+ nice.o nohup.o \
+ od.o \
+ paste.o pathchk.o printf.o \
+ renice.o rm.o rmdir.o \
+ sh.o sleep.o split.o strings.o stty.o sum.o \
+ tail.o tee.o tput.o tr.o \
+ uname.o unlink.o uudecode.o uuencode.o \
+ wc.o who.o write.o
+
+bosix: $(OBJS)
+ $(CC) -o $@ $(OBJS) -ll -ly
+
+clean:
+ rm -f bosix *.o
diff --git a/src/ar.c b/src/ar.c
new file mode 100644
index 0000000..851c34c
--- /dev/null
+++ b/src/ar.c
@@ -0,0 +1,2 @@
+#define main ar_main
+#include "../ar/ar.c"
diff --git a/src/asa.c b/src/asa.c
new file mode 100644
index 0000000..d56384e
--- /dev/null
+++ b/src/asa.c
@@ -0,0 +1,2 @@
+#define main asa_main
+#include "../asa/asa.c"
diff --git a/src/basename.c b/src/basename.c
new file mode 100644
index 0000000..60fc367
--- /dev/null
+++ b/src/basename.c
@@ -0,0 +1,2 @@
+#define main basename_main
+#include "../basename/basename.c"
diff --git a/src/bc.c b/src/bc.c
new file mode 100644
index 0000000..1c975a9
--- /dev/null
+++ b/src/bc.c
@@ -0,0 +1,2 @@
+#define main bc_main
+#include "../bc/bc.c"
diff --git a/src/cal.c b/src/cal.c
new file mode 100644
index 0000000..49acecd
--- /dev/null
+++ b/src/cal.c
@@ -0,0 +1,2 @@
+#define main cal_main
+#include "../cal/cal.c"
diff --git a/src/cat.c b/src/cat.c
new file mode 100644
index 0000000..e16ab54
--- /dev/null
+++ b/src/cat.c
@@ -0,0 +1,2 @@
+#define main cat_main
+#include "../cat/cat.c"
diff --git a/src/chgrp.c b/src/chgrp.c
new file mode 100644
index 0000000..1fbc006
--- /dev/null
+++ b/src/chgrp.c
@@ -0,0 +1,2 @@
+#define main chgrp_main
+#include "../chgrp/chgrp.c"
diff --git a/src/chmod.c b/src/chmod.c
new file mode 100644
index 0000000..d59a326
--- /dev/null
+++ b/src/chmod.c
@@ -0,0 +1,2 @@
+#define main chmod_main
+#include "../chmod/chmod.c"
diff --git a/src/chown.c b/src/chown.c
new file mode 100644
index 0000000..4beef3f
--- /dev/null
+++ b/src/chown.c
@@ -0,0 +1,2 @@
+#define main chown_main
+#include "../chown/chown.c"
diff --git a/src/cksum.c b/src/cksum.c
new file mode 100644
index 0000000..67b1a59
--- /dev/null
+++ b/src/cksum.c
@@ -0,0 +1,2 @@
+#define main cksum_main
+#include "../cksum/cksum.c"
diff --git a/src/cmp.c b/src/cmp.c
new file mode 100644
index 0000000..53290d6
--- /dev/null
+++ b/src/cmp.c
@@ -0,0 +1,2 @@
+#define main cmp_main
+#include "../cmp/cmp.c"
diff --git a/src/cp.c b/src/cp.c
new file mode 100644
index 0000000..b321c1a
--- /dev/null
+++ b/src/cp.c
@@ -0,0 +1,2 @@
+#define main cp_main
+#include "../cp/cp.c"
diff --git a/src/crontab.c b/src/crontab.c
new file mode 100644
index 0000000..62b4c62
--- /dev/null
+++ b/src/crontab.c
@@ -0,0 +1,2 @@
+#define main crontab_main
+#include "../crontab/crontab.c"
diff --git a/src/ctags.c b/src/ctags.c
new file mode 100644
index 0000000..ff6ed49
--- /dev/null
+++ b/src/ctags.c
@@ -0,0 +1,2 @@
+#define main ctags_main
+#include "../ctags/ctags.c"
diff --git a/src/date.c b/src/date.c
new file mode 100644
index 0000000..d69170d
--- /dev/null
+++ b/src/date.c
@@ -0,0 +1,2 @@
+#define main date_main
+#include "../date/date.c"
diff --git a/src/dd.c b/src/dd.c
new file mode 100644
index 0000000..c9f840b
--- /dev/null
+++ b/src/dd.c
@@ -0,0 +1,2 @@
+#define main dd_main
+#include "../dd/dd.c"
diff --git a/src/dirname.c b/src/dirname.c
new file mode 100644
index 0000000..85c46b5
--- /dev/null
+++ b/src/dirname.c
@@ -0,0 +1,2 @@
+#define main dirname_main
+#include "../dirname/dirname.c"
diff --git a/src/du.c b/src/du.c
new file mode 100644
index 0000000..6a4f47c
--- /dev/null
+++ b/src/du.c
@@ -0,0 +1,2 @@
+#define main du_main
+#include "../du/du.c"
diff --git a/src/ed.c b/src/ed.c
new file mode 100644
index 0000000..3283657
--- /dev/null
+++ b/src/ed.c
@@ -0,0 +1,9 @@
+#define main ed_main
+#include "../ed/ed.c"
+#include "../ed/commands.c"
+#include "../ed/env.c"
+#include "../ed/input.c"
+#include "../ed/io.c"
+#include "../ed/re.c"
+#include "../ed/signals.c"
+#include "../ed/stubs.c"
diff --git a/src/env.c b/src/env.c
new file mode 100644
index 0000000..04e1838
--- /dev/null
+++ b/src/env.c
@@ -0,0 +1,2 @@
+#define main env_main
+#include "../env/env.c"
diff --git a/src/ex.c b/src/ex.c
new file mode 100644
index 0000000..c8f74e3
--- /dev/null
+++ b/src/ex.c
@@ -0,0 +1,2 @@
+#define main ex_main
+#include "../ex/ex.c"
diff --git a/src/expand.c b/src/expand.c
new file mode 100644
index 0000000..e7aaf30
--- /dev/null
+++ b/src/expand.c
@@ -0,0 +1,2 @@
+#define main expand_main
+#include "../expand/expand.c"
diff --git a/src/file.c b/src/file.c
new file mode 100644
index 0000000..369adde
--- /dev/null
+++ b/src/file.c
@@ -0,0 +1,3 @@
+#define main file_main
+#include "../file/file.c"
+#include "../file/magic.c"
diff --git a/src/getconf.c b/src/getconf.c
new file mode 100644
index 0000000..411cc1b
--- /dev/null
+++ b/src/getconf.c
@@ -0,0 +1,2 @@
+#define main getconf_main
+#include "../getconf/getconf.c"
diff --git a/src/grep.c b/src/grep.c
new file mode 100644
index 0000000..c77eab5
--- /dev/null
+++ b/src/grep.c
@@ -0,0 +1,2 @@
+#define main grep_main
+#include "../grep/grep.c"
diff --git a/src/head.c b/src/head.c
new file mode 100644
index 0000000..7f34a0f
--- /dev/null
+++ b/src/head.c
@@ -0,0 +1,2 @@
+#define main head_main
+#include "../head/head.c"
diff --git a/src/iconv.c b/src/iconv.c
new file mode 100644
index 0000000..f9c1052
--- /dev/null
+++ b/src/iconv.c
@@ -0,0 +1,2 @@
+#define main iconv_main
+#include "../iconv/iconv.c"
diff --git a/src/id.c b/src/id.c
new file mode 100644
index 0000000..1a50ad2
--- /dev/null
+++ b/src/id.c
@@ -0,0 +1,2 @@
+#define main id_main
+#include "../id/id.c"
diff --git a/src/link.c b/src/link.c
new file mode 100644
index 0000000..a92bf3f
--- /dev/null
+++ b/src/link.c
@@ -0,0 +1,2 @@
+#define main link_main
+#include "../link/link.c"
diff --git a/src/ln.c b/src/ln.c
new file mode 100644
index 0000000..498e689
--- /dev/null
+++ b/src/ln.c
@@ -0,0 +1,2 @@
+#define main ln_main
+#include "../ln/ln.c"
diff --git a/src/locale.c b/src/locale.c
new file mode 100644
index 0000000..626f264
--- /dev/null
+++ b/src/locale.c
@@ -0,0 +1,2 @@
+#define main locale_main
+#include "../locale/locale.c"
diff --git a/src/logger.c b/src/logger.c
new file mode 100644
index 0000000..5d81d91
--- /dev/null
+++ b/src/logger.c
@@ -0,0 +1,2 @@
+#define main logger_main
+#include "../logger/logger.c"
diff --git a/src/logname.c b/src/logname.c
new file mode 100644
index 0000000..662b5dd
--- /dev/null
+++ b/src/logname.c
@@ -0,0 +1,2 @@
+#define main logname_main
+#include "../logname/logname.c"
diff --git a/src/ls.c b/src/ls.c
new file mode 100644
index 0000000..d6af9ff
--- /dev/null
+++ b/src/ls.c
@@ -0,0 +1,2 @@
+#define main ls_main
+#include "../ls/ls.c"
diff --git a/src/mkdir.c b/src/mkdir.c
new file mode 100644
index 0000000..928f6ec
--- /dev/null
+++ b/src/mkdir.c
@@ -0,0 +1,2 @@
+#define main mkdir_main
+#include "../mkdir/mkdir.c"
diff --git a/src/mkfifo.c b/src/mkfifo.c
new file mode 100644
index 0000000..089a62f
--- /dev/null
+++ b/src/mkfifo.c
@@ -0,0 +1,2 @@
+#define main mkfifo_main
+#include "../mkfifo/mkfifo.c"
diff --git a/src/more.c b/src/more.c
new file mode 100644
index 0000000..cbc0f3c
--- /dev/null
+++ b/src/more.c
@@ -0,0 +1,2 @@
+#define main more_main
+#include "../more/more.c"
diff --git a/src/nice.c b/src/nice.c
new file mode 100644
index 0000000..f9684f2
--- /dev/null
+++ b/src/nice.c
@@ -0,0 +1,2 @@
+#define main nice_main
+#include "../nice/nice.c"
diff --git a/src/nohup.c b/src/nohup.c
new file mode 100644
index 0000000..6a77df6
--- /dev/null
+++ b/src/nohup.c
@@ -0,0 +1,2 @@
+#define main nohup_main
+#include "../nohup/nohup.c"
diff --git a/src/od.c b/src/od.c
new file mode 100644
index 0000000..553596c
--- /dev/null
+++ b/src/od.c
@@ -0,0 +1,2 @@
+#define main od_main
+#include "../od/od.c"
diff --git a/src/paste.c b/src/paste.c
new file mode 100644
index 0000000..230c765
--- /dev/null
+++ b/src/paste.c
@@ -0,0 +1,2 @@
+#define main paste_main
+#include "../paste/paste.c"
diff --git a/src/pathchk.c b/src/pathchk.c
new file mode 100644
index 0000000..0d68a70
--- /dev/null
+++ b/src/pathchk.c
@@ -0,0 +1,2 @@
+#define main pathchk_main
+#include "../pathchk/pathchk.c"
diff --git a/src/printf.c b/src/printf.c
new file mode 100644
index 0000000..42b2190
--- /dev/null
+++ b/src/printf.c
@@ -0,0 +1,2 @@
+#define main unused_main
+#include "../printf/printf.c"
diff --git a/src/renice.c b/src/renice.c
new file mode 100644
index 0000000..8c77a14
--- /dev/null
+++ b/src/renice.c
@@ -0,0 +1,2 @@
+#define main renice_main
+#include "../renice/renice.c"
diff --git a/src/rm.c b/src/rm.c
new file mode 100644
index 0000000..5e8e86e
--- /dev/null
+++ b/src/rm.c
@@ -0,0 +1,2 @@
+#define main rm_main
+#include "../rm/rm.c"
diff --git a/src/rmdir.c b/src/rmdir.c
new file mode 100644
index 0000000..48f18e7
--- /dev/null
+++ b/src/rmdir.c
@@ -0,0 +1,2 @@
+#define main rmdir_main
+#include "../rmdir/rmdir.c"
diff --git a/src/sh.c b/src/sh.c
new file mode 100644
index 0000000..4c35370
--- /dev/null
+++ b/src/sh.c
@@ -0,0 +1,37 @@
+#include "../sh/alias.c"
+#include "../sh/bg.c"
+#include "../sh/builtins.c"
+#include "../sh/cd.c"
+#include "../sh/command.c"
+#include "../sh/dot.c"
+#include "../sh/eval.c"
+#include "../sh/exec.c"
+#include "../sh/exit.c"
+#include "../sh/export.c"
+#include "../sh/false.c"
+#include "../sh/fc.c"
+#include "../sh/fg.c"
+#include "../sh/getopts.c"
+#include "../sh/hash.c"
+#include "../sh/init.c"
+#include "../sh/interactive.c"
+#include "../sh/jobs.c"
+#include "../sh/kill.c"
+#include "../sh/main.c"
+#include "../sh/newgrp.c"
+#include "../sh/parse.c"
+#include "../sh/pwd.c"
+#include "../sh/read.c"
+#include "../sh/readonly.c"
+#include "../sh/set.c"
+#include "../sh/sh.tab.c"
+#include "../sh/sh.yy.c"
+#include "../sh/shift.c"
+#include "../sh/times.c"
+#include "../sh/trap.c"
+#include "../sh/true.c"
+#include "../sh/type.c"
+#include "../sh/ulimit.c"
+#include "../sh/umask.c"
+#include "../sh/unset.c"
+#include "../sh/wait.c"
diff --git a/src/sleep.c b/src/sleep.c
new file mode 100644
index 0000000..f01a068
--- /dev/null
+++ b/src/sleep.c
@@ -0,0 +1,2 @@
+#define main sleep_main
+#include "../sleep/sleep.c"
diff --git a/src/split.c b/src/split.c
new file mode 100644
index 0000000..09b291c
--- /dev/null
+++ b/src/split.c
@@ -0,0 +1,2 @@
+#define main split_main
+#include "../split/split.c"
diff --git a/src/strings.c b/src/strings.c
new file mode 100644
index 0000000..ffa3c50
--- /dev/null
+++ b/src/strings.c
@@ -0,0 +1,2 @@
+#define main strings_main
+#include "../strings/strings.c"
diff --git a/src/stty.c b/src/stty.c
new file mode 100644
index 0000000..6a3a5a0
--- /dev/null
+++ b/src/stty.c
@@ -0,0 +1,2 @@
+#define main stty_main
+#include "../stty/stty.c"
diff --git a/src/sum.c b/src/sum.c
new file mode 100644
index 0000000..8d9f5b6
--- /dev/null
+++ b/src/sum.c
@@ -0,0 +1,2 @@
+#define main sum_main
+#include "../sum/sum.c"
diff --git a/src/tail.c b/src/tail.c
new file mode 100644
index 0000000..8386925
--- /dev/null
+++ b/src/tail.c
@@ -0,0 +1,2 @@
+#define main tail_main
+#include "../tail/tail.c"
diff --git a/src/tee.c b/src/tee.c
new file mode 100644
index 0000000..f1790a1
--- /dev/null
+++ b/src/tee.c
@@ -0,0 +1,2 @@
+#define main tee_main
+#include "../tee/tee.c"
diff --git a/src/tput.c b/src/tput.c
new file mode 100644
index 0000000..79cd1ec
--- /dev/null
+++ b/src/tput.c
@@ -0,0 +1,2 @@
+#define main tput_main
+#include "../tput/tput.c"
diff --git a/src/tr.c b/src/tr.c
new file mode 100644
index 0000000..723d796
--- /dev/null
+++ b/src/tr.c
@@ -0,0 +1,2 @@
+#define main tr_main
+#include "../tr/tr.c"
diff --git a/src/uname.c b/src/uname.c
new file mode 100644
index 0000000..300b797
--- /dev/null
+++ b/src/uname.c
@@ -0,0 +1,2 @@
+#define main uname_main
+#include "../uname/uname.c"
diff --git a/src/unlink.c b/src/unlink.c
new file mode 100644
index 0000000..d9c8550
--- /dev/null
+++ b/src/unlink.c
@@ -0,0 +1,2 @@
+#define main unlink_main
+#include "../unlink/unlink.c"
diff --git a/src/uudecode.c b/src/uudecode.c
new file mode 100644
index 0000000..117b32e
--- /dev/null
+++ b/src/uudecode.c
@@ -0,0 +1,2 @@
+#define main uudecode_main
+#include "../uudecode/uudecode.c"
diff --git a/src/uuencode.c b/src/uuencode.c
new file mode 100644
index 0000000..4f1327e
--- /dev/null
+++ b/src/uuencode.c
@@ -0,0 +1,2 @@
+#define main uuencode_main
+#include "../uuencode/uuencode.c"
diff --git a/src/wc.c b/src/wc.c
new file mode 100644
index 0000000..0e0b5c3
--- /dev/null
+++ b/src/wc.c
@@ -0,0 +1,2 @@
+#define main wc_main
+#include "../wc/wc.c"
diff --git a/src/who.c b/src/who.c
new file mode 100644
index 0000000..816aa7d
--- /dev/null
+++ b/src/who.c
@@ -0,0 +1,2 @@
+#define main who_main
+#include "../who/who.c"
diff --git a/src/write.c b/src/write.c
new file mode 100644
index 0000000..f44a7bd
--- /dev/null
+++ b/src/write.c
@@ -0,0 +1,2 @@
+#define main write_main
+#include "../write/write.c"