Jonas 'Sortie' Termansen
c7c0fc603a
Fixed initial kernel stack being wrong size.
2012-03-17 20:17:12 +01:00
Jonas 'Sortie' Termansen
969c0e8048
Cleaned up sortix/kernel.cpp and it now uses the new coding style.
...
All kernel.cpp code related to jssortix was removed as it is not supported
any longer.
2012-03-17 20:11:37 +01:00
Jonas 'Sortie' Termansen
4f3e22140c
Fixed x64 memory leaks upon process termination.
2012-03-17 18:14:57 +01:00
Jonas 'Sortie' Termansen
0364ce6f55
Added a new COM Port driver.
...
Any detected COM ports available as /dev/comN.
It currently utilizes AGAIN to do polling in user-space. This prevents it
from locking up the whole system and makes it respond to the SIGINT hack.
There is also a more reliable and faster polling-blocking mode, but it locks
up the entire system.
The main interrupt mode is broken, perhaps by a bug in VirtualBox.
2012-03-17 15:48:42 +01:00
Jonas 'Sortie' Termansen
f54cb6ab94
Added EAGAIN and made read(1) and write(1) retry if they get it.
2012-03-17 15:35:45 +01:00
Jonas 'Sortie' Termansen
1ff0321400
Added a stub for Syscall::Yield() which is used by broken code.
...
The whole system call interface is currently stupid.
2012-03-17 15:14:42 +01:00
Jonas 'Sortie' Termansen
798b421d16
Refactored devfs so new devices can easily be added.
2012-03-17 15:11:35 +01:00
Jonas 'Sortie' Termansen
5ec4e33196
Removed the last reference to the old kernel HTTP server.
2012-03-16 16:56:16 +01:00
Jonas 'Sortie' Termansen
fa6d445b0d
Added type(1), a replacement for the "traditional" Sortix cat(1).
...
cat(1) now work as you would expect.
2012-03-16 15:56:09 +01:00
Jonas 'Sortie' Termansen
a353706011
Updated the README.
2012-03-14 15:14:21 +01:00
Jonas 'Sortie' Termansen
e0eabd0e5f
<dirent.h> now declares size_t.
2012-03-12 02:03:46 +01:00
Jonas 'Sortie' Termansen
8399b1a2ee
Made <sys/types.h> more POSIX compliant.
2012-03-12 02:00:00 +01:00
Jonas 'Sortie' Termansen
3cab1113cf
Made EOPNOTSUPP an alias for ENOTSUP.
2012-03-12 01:46:12 +01:00
Jonas 'Sortie' Termansen
2cdeb575f8
Renamed EACCESS to EACCES.
...
Stupid POSIX.
2012-03-12 01:43:00 +01:00
Jonas 'Sortie' Termansen
6de3c462be
Added EMFILE.
2012-03-12 01:37:50 +01:00
Jonas 'Sortie' Termansen
44e2537d7b
Added mode_t to <sys/types.h>.
...
Gonna do something about that header.
2012-03-12 01:31:48 +01:00
Jonas 'Sortie' Termansen
d564574cd0
Added fseterr(3).
2012-03-12 01:31:48 +01:00
Jonas 'Sortie' Termansen
366cc2549a
Added the stdio_ext(3) API.
...
The API is available in <stdio.h> without __ prefix if _SORTIX_SOURCE.
2012-03-12 00:38:48 +01:00
Jonas 'Sortie' Termansen
d033a58b10
Added a hacky definition of MB_CUR_MAX.
2012-03-11 20:49:50 +01:00
Jonas 'Sortie' Termansen
4ad0d360da
Added EILSEQ.
2012-03-11 20:44:57 +01:00
Jonas 'Sortie' Termansen
9fa5690d79
Added time_t declaration to <time.h>.
2012-03-11 20:38:55 +01:00
Jonas 'Sortie' Termansen
5b916b5f63
Added F_SETFL and F_GETFL to fcntl(2).
...
This is a bit of a hacky implementation.
2012-03-11 20:29:00 +01:00
Jonas 'Sortie' Termansen
beb88d0443
Added EPIPE.
2012-03-11 20:11:32 +01:00
Jonas 'Sortie' Termansen
a6a296a971
Fixed bug where pager(1) prints a line too much.
2012-03-11 18:16:55 +01:00
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