Commit graph

2595 commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen
e4cd654236 Increase default stack size of new threads to 80 KiB.
This fixes a crash where git has a 64 KiB stack buffer.
2015-12-12 19:28:08 +01:00
Jonas 'Sortie' Termansen
802c12e64a Implement ppoll(2) timeouts. 2015-12-12 19:28:08 +01:00
Jonas 'Sortie' Termansen
0045f18c81 Remove kernel Scheduler::Init(). 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
7185cb33c7 Remove setlocale thread safety.
This interface isn't standardized to be thread safe so nobody can rely on
it. Additionally this only thread secures setlocale, but not all the code
that might depend on the current locale, so it is pointless.
2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
9d6bd9b830 Add stat(1). 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
6dce46c081 Add pstree(1). 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
416c87aed9 Add ps(1). 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
cee24359d8 Add psctl(2). 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
67af95c7ee Update command line parsing to current coding conventions. 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
4e918687ce Add kill(1). 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
716ac0dceb Fix logterminal TERMMODE_LINEBUFFER checking. 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen
cf5c2706b3 Fix unintended extra fork in chroot(1). 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
23810c1a48 Fix snprintf(NULL, 0, ...) undefined behavior. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
15fd58b6a0 Fix tr buffer overrun and shadowed delete array. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
24cf8f42b8 Silence maybe initialized warning in sigsuspend. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
32feba2709 Fix memcpy(dest, NULL, 0) undefined behavior. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
ef36a94912 Fix incorrect flush error check in fputc_unlocked(3). 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
1acf16dea0 Fix kernel makefile finding crtbegin.o and crtend.o when not needed. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
ba4fa25341 Fix mkinitrd creating unaligned structs. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
b8f12a6856 Fix fread/fwrite zero division when size is zero. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
0100b61855 Fix fflush(NULL) flushing input streams. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen
14a47ea15e Decide tix build triplets on Sortix without running cc. 2015-10-28 20:13:37 +01:00
Jonas 'Sortie' Termansen
1080ffa5fb Refactor and improve shell greatly. 2015-10-28 20:13:37 +01:00
Jonas 'Sortie' Termansen
54b80263a2 Add -d option to chroot(1). 2015-10-28 20:13:37 +01:00
Jonas 'Sortie' Termansen
f4995c24f4 Add kernel --init option. 2015-10-28 19:36:33 +01:00
Jonas 'Sortie' Termansen
62b5d45a78 Add kernel command line support. 2015-10-28 19:36:33 +01:00
Jonas 'Sortie' Termansen
fc637c8880 Prevent orphan processes from becoming zombies. 2015-10-28 19:36:33 +01:00
Jonas 'Sortie' Termansen
44d4807fc4 Add ENOMOUNT. 2015-10-28 19:36:33 +01:00
Jonas 'Sortie' Termansen
b2aae6094f Add mkinitrd support for multiple roots. 2015-10-28 16:28:17 +01:00
Jonas 'Sortie' Termansen
3191e18966 Cache only mkinitrd nodes with multiple hardlinks. 2015-10-28 16:28:17 +01:00
Jonas 'Sortie' Termansen
9554bab714 Add editor highlight support for diff. 2015-10-28 16:28:17 +01:00
Jonas 'Sortie' Termansen
09084cf12d Fix format nonliteral in psignal(3). 2015-10-28 16:07:36 +01:00
Jonas 'Sortie' Termansen
91087d9199 Fix iswgraph unicode support. 2015-10-28 16:07:36 +01:00
Jonas 'Sortie' Termansen
bae08f13ef Fix fsmarshall not handling users and groups.
This is an incompatible ABI change.
2015-10-28 16:07:36 +01:00
Jonas 'Sortie' Termansen
8a653584c4 Fix strtol multiplication overflow check. 2015-10-11 23:25:21 +02:00
Jonas 'Sortie' Termansen
f0f82fcb23 Fix tmpfile(3) insecure file creation. 2015-10-11 23:25:21 +02:00
Jonas 'Sortie' Termansen
7c6e6ef317 Fix kernel string copy from user-space. 2015-10-09 16:17:52 +02:00
Jonas 'Sortie' Termansen
2727d9fb50 Fix pipe destruction race condition. 2015-10-09 16:17:52 +02:00
Jonas 'Sortie' Termansen
12b5044bc7 Fix signal delivery during context switch. 2015-10-09 16:17:52 +02:00
Jonas 'Sortie' Termansen
82775c4803 Fix extfs invalid block free on truncation. 2015-10-09 16:17:52 +02:00
Jonas 'Sortie' Termansen
4ad93ec618 Fix mkinitrd(8) default rule boolean parsing. 2015-10-08 00:06:58 +02:00
Jonas 'Sortie' Termansen
6138e94124 Fix colormake not resetting color. 2015-10-06 00:36:17 +02:00
Jonas 'Sortie' Termansen
5cee2e9bc7 Fix shell line rendering use of after free. 2015-10-04 02:16:53 +02:00
Jonas 'Sortie' Termansen
6a177d4d79 Split shell into multiple files. 2015-10-04 02:16:53 +02:00
Jonas 'Sortie' Termansen
a5d050fc49 Add realpath(1). 2015-10-01 22:50:51 +02:00
Jonas 'Sortie' Termansen
875ce1adf7 Fix faccessat(2) not reporting correct permissions. 2015-10-01 22:50:51 +02:00
Jonas 'Sortie' Termansen
4c2a93ea02 Fix munmap(2) shrink from right logic.
This fixes a rather nasty issue where gcc's garbage collection triggered a
munmap call with the effect that it began unmapping huge amounts of kernel
data until the system triple faulted.
2015-10-01 22:50:51 +02:00
Jonas 'Sortie' Termansen
40c2fd12dc Fix logterminal TERMMODE_UNICODE checking. 2015-10-01 22:49:02 +02:00
Jonas 'Sortie' Termansen
6725972e11 Fix LinkInodeInDir return value.
The callers expected it to return an int different than 0 on failure. The
link method returns different than 0 on failure. This actually worked by
lucky coincidence. Change the return type to int and 0 on success, and -1
on failure per popular demand.

Thanks to Meisaka Yukara for spotting this.
2015-09-25 15:01:20 +02:00
Jonas 'Sortie' Termansen
275541383c Fix dtable return value type errors and missing input validation.
Update to current coding conventions while here.

Thanks to Meisaka Yukara for spotting the return value type errors.
2015-09-25 15:01:20 +02:00