Commit Graph

622 Commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen 5e317c9726 Made kernelinfo(1) a little more friendly on bad string name. 2012-03-11 18:14:21 +01:00
Jonas 'Sortie' Termansen 868ed43e05 Removed sortix/mxfs.
It's unbelievable that this piece of dead code survived 8 months of
development on git. It doesn't even work, despit the comment that it
does.
2012-03-11 18:07:01 +01:00
Jonas 'Sortie' Termansen c403c1d798 Greatly improved ls(1). 2012-03-11 17:58:25 +01:00
Jonas 'Sortie' Termansen f01d7951c1 stat(2) now supports directories.
A bit hackily, though.
2012-03-11 17:56:20 +01:00
Jonas 'Sortie' Termansen 6e536ba8f9 Fixed error codes in sortix/fs/devfs. 2012-03-11 17:55:52 +01:00
Jonas 'Sortie' Termansen 245e8bf0e3 Fixed error codes in sortix/fs/initfs. 2012-03-11 17:55:23 +01:00
Jonas 'Sortie' Termansen f45cf8327a Forgot to enable the /bin /dev hack in sortix/fs/ramfs.cpp. 2012-03-11 17:30:13 +01:00
Jonas 'Sortie' Termansen cadac5ce2a Moved the /bin and /dev hack into the kernel.
This makes ls seem less hacky.
2012-03-11 17:25:32 +01:00
Jonas 'Sortie' Termansen dc0f78f6b7 Added copyright headers to benchmarks, games and utilities.
It's all GPLv3 or later.
2012-03-11 15:57:13 +01:00
Jonas 'Sortie' Termansen d9fef09ac3 Added -Ulinux -Dsottix to the cross makefile. 2012-03-11 15:08:03 +01:00
Jonas 'Sortie' Termansen 3de134a3f0 Added build instructions to the README. 2012-03-11 01:42:03 +01:00
Jonas 'Sortie' Termansen 89223ed3ed Added a README. 2012-03-11 00:57:56 +01:00
Jonas 'Sortie' Termansen c2660e5432 Added EBUSY. 2012-03-10 23:18:27 +01:00
Jonas 'Sortie' Termansen f8bcf3117d Added ENOTEMPTY. 2012-03-10 23:12:31 +01:00
Jonas 'Sortie' Termansen bdd8b2a77a Added strnlen(3). 2012-03-10 23:04:49 +01:00
Jonas 'Sortie' Termansen 9ed2031dd2 pager(1) now supports reading from stdin. 2012-03-07 21:06:29 +01:00
Jonas 'Sortie' Termansen cde10097e6 Fixed realloc(3) bug causing buffer overruns. 2012-03-07 20:52:44 +01:00
Jonas 'Sortie' Termansen bd7cb5195a Removed debug string from mxsh(1). 2012-03-07 18:26:02 +01:00
Jonas 'Sortie' Termansen 87248fbce9 Aded kernelinfo(1) as a frontend of kernelinfo(2). 2012-03-07 18:20:40 +01:00
Jonas 'Sortie' Termansen a7658d5b8c uname(1) now uses kernelinfo(2) to determine kernel version. 2012-03-07 18:06:23 +01:00
Jonas 'Sortie' Termansen 8a9a0c58ea Added kernelinfo(2), which reads a kernel information string.
Currently it lets you query the name of the kernel, its version, and the
build timestamp of the kernelinfo.cpp file.
2012-03-07 18:04:59 +01:00
Jonas 'Sortie' Termansen 7d4c79bc8c Improved error message upon line reading failure in head(1) and tail(1). 2012-03-07 15:52:59 +01:00
Jonas 'Sortie' Termansen d6f9505d3b Made getdelim(3) follow POSIX-2008 a bit more closely.
It now reads lines that aren't delimited, but terminated by EOF.
2012-03-07 15:52:07 +01:00
Jonas 'Sortie' Termansen 3cc1f7a687 Made fgetc(3) and fputc(3) use unsigned char internally. 2012-03-07 15:51:25 +01:00
Jonas 'Sortie' Termansen 2722c3f03d Added EINTR. 2012-03-06 13:36:44 +01:00
Jonas 'Sortie' Termansen 9f7175fbc8 Forgot to add fputs(3) to <stdio.h>. 2012-03-06 13:24:10 +01:00
Jonas 'Sortie' Termansen 065ceae509 Added fgets(3). 2012-03-06 13:15:02 +01:00
Jonas 'Sortie' Termansen 6bcb3d7384 Added stat(2) and fstat(2) in the kernel.
It's a bit hacky, but it works.

lstat(2) currently redirects to stat(2).
2012-03-06 13:10:59 +01:00
Jonas 'Sortie' Termansen fa4bd9e7a8 Forgot to add extern "C" to sscanf. 2012-03-05 16:06:15 +01:00
Jonas 'Sortie' Termansen c03738a9f3 Added a stub for sscanf(3).
This stub implements an ugly hack to help port binutils.

Hopefully we'll get a real scanf family of functions soon.
2012-03-05 16:01:43 +01:00
Jonas 'Sortie' Termansen f089a030b4 Added stub for lstat(2). 2012-03-05 15:50:41 +01:00
Jonas 'Sortie' Termansen 4b2c22d480 Added access(2). 2012-03-05 15:46:23 +01:00
Jonas 'Sortie' Termansen cd350620f2 Added fputs(3). 2012-03-05 13:32:42 +01:00
Jonas 'Sortie' Termansen bc38dc5127 Added a stub for environ(3). 2012-03-05 13:20:37 +01:00
Jonas 'Sortie' Termansen 25b33b4755 Fixed broken declaration of mktemp(3) in <stdlib.h>. 2012-03-05 13:10:56 +01:00
Jonas 'Sortie' Termansen 85549b5688 Uncommented warning in <assert.h> to prevent compile errors in binutils.
This is because they treat warnings as errors.
2012-03-05 13:09:00 +01:00
Jonas 'Sortie' Termansen c1affdf6db Added missing extern "C" linkages in libmaxsi/string.cpp. 2012-03-05 13:08:02 +01:00
Jonas 'Sortie' Termansen 7082ac4ac9 Forgot to add extern "C" linkage to mktemp(3). 2012-03-05 13:05:45 +01:00
Jonas 'Sortie' Termansen 5449ae78f4 Added atol(3) and atoll(3). 2012-03-05 12:53:58 +01:00
Jonas 'Sortie' Termansen 422d2fd579 Added qsort(3).
This is a rather slow implementation. Will be fixed soon.
2012-03-05 12:37:59 +01:00
Jonas 'Sortie' Termansen 12e8dd6d81 Added stub for getenv(3). 2012-03-04 23:55:41 +01:00
Jonas 'Sortie' Termansen 00c3aaa919 Added stub for ctime(3). 2012-03-04 23:51:39 +01:00
Jonas 'Sortie' Termansen e2d673294c Added a stub for assert(3). 2012-03-04 23:40:30 +01:00
Jonas 'Sortie' Termansen 7c33b3f10f Always show the declaration of sbrk(2).
This was done because binutils need this to compile.
2012-03-04 23:36:04 +01:00
Jonas 'Sortie' Termansen be98120b49 Added stubs for setjmp(3) and longjmp(3). 2012-03-04 23:15:32 +01:00
Jonas 'Sortie' Termansen 390150839e Added a stub for umask(2). 2012-03-04 23:01:41 +01:00
Jonas 'Sortie' Termansen 6f9b8b2f64 Added stubs for chmod(2) and fchmod(2). 2012-03-04 22:57:44 +01:00
Jonas 'Sortie' Termansen 9b2de25f9b Added strcasecmp(3), strncasecmp(3) and <strings.h>.
Why <strings.h>? Stupid POSIX.
2012-03-04 22:46:24 +01:00
Jonas 'Sortie' Termansen 2b57319c1c Added stub for time(3). 2012-03-04 22:26:27 +01:00
Jonas 'Sortie' Termansen d3c4df72b1 Added st_{a,c,m}time to struct stat. 2012-03-04 22:25:47 +01:00