Bananymous
0adf24fcad
LibC: Add dummy setjmp.h
2023-05-10 23:00:53 +03:00
Bananymous
80e13965d9
LibC: Add dummy locale.h
2023-05-10 22:58:07 +03:00
Bananymous
5f89f083a2
LibC: add math.h with floorl
2023-05-10 22:35:42 +03:00
Bananymous
480d92fce5
LibC: add better error string support
2023-05-10 02:22:31 +03:00
Bananymous
49fe3d0d4f
LibC: add probably functional *printf
...
I wrote a general printf function that takes an putc function
pointer. We can use this to implement all the printf family
functions. I haven't done thorough testing with this, but it seems
to be functional for the most part
2023-05-10 02:00:28 +03:00
Bananymous
054c5450df
LibC: syscall() now returns -1 on error and updates errno
2023-05-07 01:51:39 +03:00
Bananymous
e1a6e7c3ac
LibC: add proper stdlib.h header
...
Function declarations taken from the posix specifications
2023-04-27 15:14:03 +03:00
Bananymous
3537d53d5c
LibC: add link to posix stdio.h
2023-04-27 14:16:25 +03:00
Bananymous
cd74b2167d
LibC: Write mostly functioning stdio
2023-04-23 14:32:37 +03:00
Bananymous
3f9d6f0311
LibC: add needed stubs to build executables with our compiler
2023-04-12 17:53:02 +03:00
Bananymous
aa2aee684b
Kernel: remove message from BAN::Error
...
We don't store the error message anymore in BAN::Error.
Instead we store a error code that can be mapped into a string.
This allows BAN::Error to only take 4 bytes instead of 128.
We should also make some kernel initialization just panic instead
of returning errors since they are required for succesfull boot
anyway.
2023-04-11 23:25:21 +03:00
Bananymous
a5830c5424
LibC: add stubs for a lot of functions
2023-04-05 23:58:40 +03:00
Bananymous
b6896a6d85
LibC: sys/types uses 'typedef' instead of 'using'
2023-04-05 15:03:24 +03:00
Bananymous
67ff01e915
LibC: Add errno ENOTTY
2023-04-05 02:47:37 +03:00
Bananymous
63e863ad35
LibC: Add unistd.h with STD{IN,OUT,ERR}_FILENO definitions
2023-04-05 00:59:48 +03:00
Bananymous
86d777e2eb
LibC: add device macros in sys/sysmacros.h
2023-04-03 10:59:15 +03:00
Bananymous
cd0d10b64e
LibC: add ENOBUFS errno
2023-03-29 10:58:25 +03:00
Bananymous
32c3aca52f
LibC: add dirent.h
2023-03-25 02:08:33 +02:00
Bananymous
9fd17ef73c
LibC: Add stat structure
2023-03-24 18:08:22 +02:00
Bananymous
1be8b2f514
LibC: add more typedefs to sys/types
2023-03-23 19:24:12 +02:00
Bananymous
d6e4430692
LibC: add errno NAMETOOLONG
2023-03-23 14:48:42 +02:00
Bananymous
cf2be54e8f
LibC: add errno ENOTEMPTY
2023-03-19 05:43:40 +02:00
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
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
fd16c1cf58
LibC: Add is*() functions to libc
2023-01-16 20:05:51 +02:00
Bananymous
f4b614aa61
LibC: Add some new functions
2022-12-13 00:51:57 +02:00
Bananymous
123382eace
Fixes :)
2022-11-15 21:42:14 +02:00
Bananymous
b185ed4fd3
Libc is now written in C++
2022-11-14 00:31:24 +02:00
Bananymous
5a3596170c
Add strcpy and strncpy
2022-11-12 23:47:06 +02:00
Bananymous
e6b4866ab0
Initial commit. We have a booting kernel
2022-11-12 21:04:47 +02:00