Commit Graph

225 Commits

Author SHA1 Message Date
Bananymous 3ab62e83d3 LibC: add errno EEXISTS 2023-03-19 04:17:39 +02:00
Bananymous ceb53533be LibC: add fcntl.h with some defines 2023-03-17 21:18:41 +02:00
Bananymous e2707b9416 LibC: Add EBADF errno 2023-03-16 16:22:11 +02:00
Bananymous 4493c9bbe6 LibC: Add ENTOSUP errno 2023-03-16 16:03:51 +02:00
Bananymous 1b7625581d Kernel: Add basic concept of Processes
We now create Shell as a process that has its own threads
2023-03-16 12:17:04 +02:00
Bananymous 10ef3c6a54 LibC: add declarations for malloc and free 2023-03-04 02:59:48 +02:00
Bananymous 53ec66ff86 LibC: strerror now always uses a buffer to which it copies the string 2023-03-02 22:13:08 +02:00
Bananymous 52aa98ba25 Kernel+LibC: Add some errno codes
Kernel now returns ENOMEM and other errnos, so we dont have to write
error messages
2023-03-02 21:10:44 +02:00
Bananymous 5cd97e44e2 LibC: Add strcmp and strncmp 2023-02-23 15:57:33 +02:00
Bananymous 9b8de5025a All: rename every function from UpperCamelCase to snake_case
This was a mess since I didn't know which to use but now I decided
to go with snake_case :)
2023-02-01 21:05:44 +02:00
Bananymous b315fdc27f Kernel: Finally managed to get 64-bit working
I had weird problems with interrupts but everything should work now
2023-01-25 19:19:28 +02:00
Bananymous fd16c1cf58 LibC: Add is*() functions to libc 2023-01-16 20:05:51 +02:00
Bananymous 6b73547989 All: edit gcc flags 2023-01-13 00:04:15 +02:00
Bananymous efd8638a96 Kernel: Improve kernel panic message and rename it 'panic'->'Panic' 2023-01-09 21:57:03 +02:00
Bananymous f4b614aa61 LibC: Add some new functions 2022-12-13 00:51:57 +02:00
Bananymous ac2ba8bc56 LibC: Remove actual printing from putc() since we were panicing anyway 2022-12-10 00:30:00 +02:00
Bananymous c17f61611e Improve buildsystem by making build directory
We now create build directory for kernel and libc so that source
directories are kept more clean.
2022-12-03 18:17:37 +02:00
Bananymous 123382eace Fixes :) 2022-11-15 21:42:14 +02:00
Bananymous 35e21ca4ce Improve integer printing 2022-11-15 16:34:16 +02:00
Bananymous 9e933a5ec5 Add kernel panic function 2022-11-14 18:53:00 +02:00
Bananymous b185ed4fd3 Libc is now written in C++ 2022-11-14 00:31:24 +02:00
Bananymous a1a709974a Add %p to printf 2022-11-13 00:33:45 +02:00
Bananymous 5a3596170c Add strcpy and strncpy 2022-11-12 23:47:06 +02:00
Bananymous 7ad8189e24 Add somewhat functioning printf 2022-11-12 23:36:39 +02:00
Bananymous e6b4866ab0 Initial commit. We have a booting kernel 2022-11-12 21:04:47 +02:00