diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-04-22 08:55:35 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-04-22 08:55:35 -0700 |
commit | 5d3642b8ef920316693031d2ea34b9def0b1abc5 (patch) | |
tree | 8100890ed5b2e4ecdbde09615e0820346ccc3f41 /sys/cmd/ls | |
parent | e30f8b22069bec1a3fb68f089a9a7198671eb09a (diff) |
chore: rm unfinished projects
Diffstat (limited to 'sys/cmd/ls')
-rw-r--r-- | sys/cmd/ls/ls.c | 36 | ||||
-rw-r--r-- | sys/cmd/ls/rules.mk | 13 |
2 files changed, 0 insertions, 49 deletions
diff --git a/sys/cmd/ls/ls.c b/sys/cmd/ls/ls.c deleted file mode 100644 index 86aaa48..0000000 --- a/sys/cmd/ls/ls.c +++ /dev/null @@ -1,36 +0,0 @@ -#include <u.h> -#include <libn.h> - -static struct Flags { - uchar a : 1; /* show all files */ - uchar r : 1; /* reverse sort */ - uchar v : 1; /* print detailed information */ - uchar h : 1; /* human readable */ - uchar s : 1; /* sort by size */ -} flag; - -static -void -usage(void) -{ - fputs("usage: ls [-ahsrv] [file ...]\n", stderr); - exit(1); -} - -int -main(int argc, char *argv[]) -{ - int i; - ARGBEGIN{ - case 'a': flag.a++; break; - default: - usage(); - }ARGEND; - - switch(argc) { - case 0: - *--argv = ".", ++argc; - /* fallthrough */ - case 1: - } -} diff --git a/sys/cmd/ls/rules.mk b/sys/cmd/ls/rules.mk deleted file mode 100644 index d2990f0..0000000 --- a/sys/cmd/ls/rules.mk +++ /dev/null @@ -1,13 +0,0 @@ -include share/push.mk - -# Local sources -SRCS_$(d) := $(d)/ls.c -BINS_$(d) := $(d)/ls - -include share/paths.mk - -# Local rules -$(BINS_$(d)): $(OBJS_$(d)) $(OBJ_DIR)/libn/libn.a - $(COMPLINK) - -include share/pop.mk |