diff options
Diffstat (limited to 'userland/cat')
-rw-r--r-- | userland/cat/Makefile | 10 | ||||
-rwxr-xr-x | userland/cat/cat | bin | 33852 -> 0 bytes | |||
-rw-r--r-- | userland/cat/cat.c | 24 |
3 files changed, 0 insertions, 34 deletions
diff --git a/userland/cat/Makefile b/userland/cat/Makefile deleted file mode 100644 index b45fae9..0000000 --- a/userland/cat/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -CC="/home/anton/opt/cross/bin/i686-elf-gcc" -CFLAGS = -ggdb -ffreestanding -O0 -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough -BINS=cat -all: $(BINS) - -cat.o: cat.c - $(CC) $(CFLAGS) -L../libc/ -lc -c cat.c -I../libc/ - -cat: cat.o - $(CC) -shared -o cat -ffreestanding -nostdlib $(CFLAGS) cat.o -L../libc/ -lc -lgcc #-L../libc/c.a diff --git a/userland/cat/cat b/userland/cat/cat Binary files differdeleted file mode 100755 index 2ba0c4d..0000000 --- a/userland/cat/cat +++ /dev/null diff --git a/userland/cat/cat.c b/userland/cat/cat.c deleted file mode 100644 index b143581..0000000 --- a/userland/cat/cat.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <fcntl.h> -#include <stdio.h> -#include <dirent.h> - -int main(int argc, char **argv) { - DIR *d = opendir("/"); - struct dirent *de = readdir(d); - printf("x : %x\n", de->d_name[0]); - for (;;) - ; - /* - int fd = 0; - if (argc < 2) - goto read_stdin; - for (int i = 1; i < argc; i++) { - if ((fd = open(argv[i], O_RDONLY, 0)) == -1) { - return 1; - } - read_stdin: - for (char c[4096], int rc; (rc = read(fd, c, 4096) > 0);) - write(1, c, rc); - }*/ - return 0; -} |