Commit Graph

14 Commits

Author SHA1 Message Date
Bananymous 1abf787596 LibC: Add errno for unknown error 2023-09-28 12:06:17 +03:00
Bananymous faf14b880e LibC: Rewrite all the headers.
We now have more or less posix issue 2018 conforming libc headers.

This was a really time consuming and boring operation but it had to
be done.

Now we get to actually start implementing libc :)
2023-05-26 22:31:21 +03:00
Bananymous 508d6311de LibC: define all errnos and strerror{name,desk}_np 2023-05-11 00:34:03 +03:00
Bananymous 054c5450df LibC: syscall() now returns -1 on error and updates errno 2023-05-07 01:51:39 +03:00
Bananymous cd74b2167d LibC: Write mostly functioning stdio 2023-04-23 14:32:37 +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 67ff01e915 LibC: Add errno ENOTTY 2023-04-05 02:47:37 +03:00
Bananymous cd0d10b64e LibC: add ENOBUFS errno 2023-03-29 10:58:25 +03: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 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 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