asleepymoon
asleepymoon pushed to main at asleepymoon/minitar 2022-12-01 18:38:03 +00:00
c78566bb27 Split basename parsing into a helper function
asleepymoon pushed to main at asleepymoon/minitar 2022-12-01 18:31:29 +00:00
125ec8f063 Provide strdup ourselves
asleepymoon pushed to main at asleepymoon/minitar 2022-11-30 18:33:52 +00:00
aff867f667 Add references to minitar_find_by_path() in README.md
asleepymoon pushed to main at asleepymoon/minitar 2022-11-30 18:26:32 +00:00
dd3d84be76 Update README.md
asleepymoon commented on issue asleepymoon/Luna#4 2022-11-30 16:50:16 +00:00
More errors

libs/libc/include/errno.h

#ifndef _ERRNO_H
#define _ERRNO_H

/* The…
asleepymoon commented on pull request asleepymoon/Luna#13 2022-11-30 16:39:59 +00:00
WIP: Add fork()

Oh, by the way, the problem (which was solved LONG ago), was that we were setting the child's registers to the registers stored in the parent's Task structure. But we didn't save the parent's…

asleepymoon pushed to restart at asleepymoon/Luna 2022-11-30 16:29:44 +00:00
9c9cb6a05a oopsie
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-30 16:29:12 +00:00
2bc99f2e6e Make log __attribute__(format), so the compiler can warn us of bad format strings
3f40ccd703 Indicate the log level in the serial console
Compare 2 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-30 16:17:07 +00:00
985d45ddfb Switch to logging functions everywhere
d2856d8812 Provide meaningful error numbers
29dad5651d Move __check_failed to Log.cpp so it can be logged across all backends
1d51935d43 Make Result able to return an error string
fc0779a2f9 Add a SystemError module for errno values :)
Compare 7 commits »
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-30 12:35:49 +00:00
9f5fb547f7 Add logging system :)
asleepymoon pushed to restart at asleepymoon/Luna 2022-11-30 11:42:44 +00:00
f1756e6f58 Add unit formatting
552186ad51 Add string_format and vstring_format
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/minitar 2022-11-30 10:21:03 +00:00
577f99cca6 Reorder function declarations in minitar.h
28d1eab1c1 Remove character and block devices from supported entry types
Compare 2 commits »
asleepymoon closed issue asleepymoon/minitar#1 2022-11-30 10:21:03 +00:00
Supported entry types
asleepymoon pushed to main at asleepymoon/minitar 2022-11-30 10:14:42 +00:00
eeb7bccda8 Skip null-terminating a result already null-terminated by strlcpy()
asleepymoon pushed to main at asleepymoon/minitar 2022-11-30 09:36:46 +00:00
e922cfe8b9 read_contents(): shortcircuit if an entry is empty
asleepymoon pushed to main at asleepymoon/minitar 2022-11-23 20:23:03 +00:00
e43f4d9a07 Add the root directory as an include directory for minitar.h
asleepymoon pushed to main at asleepymoon/minitar 2022-11-23 19:59:39 +00:00
7b5e6196a7 Make some functions only used in util.c static
asleepymoon pushed to main at asleepymoon/minitar 2022-11-23 19:57:21 +00:00
f156f8472e attempt_read_entry -> try_to_read_valid_entry
asleepymoon pushed to main at asleepymoon/minitar 2022-11-23 19:56:32 +00:00
cdf1e0bcba Make minitar_read_contents cleaner
asleepymoon pushed to main at asleepymoon/minitar 2022-11-23 19:52:42 +00:00
726afbae15 Update tar.h