Commit Graph

65 Commits

Author SHA1 Message Date
6c696c67b1 Revert previous commit, but using strtoul(l) everywhere
I'm pretty sure every field in a tar header is unsigned octal...
2022-11-21 19:07:49 +01:00
30c7c0ad57 Determine the signedness of standard types 2022-11-21 19:01:12 +01:00
2aed955e94 Use const pointers when possible 2022-11-21 17:38:08 +01:00
df26e6d772 Rename minitar_read_file to minitar_read_file_contents 2022-11-06 14:23:35 +01:00
97da894c0f Make naming consistent across all files 2022-11-06 14:21:32 +01:00
28085731f1 Not all 0-sized reads are errors
If you requested 0 bytes, the kernel gives you 0 bytes back
2022-11-06 14:14:06 +01:00
fd32be351e Remove unnecessary include 2022-11-06 12:46:07 +01:00
f2fdf726ce Add a way to override the panic function 2022-11-06 12:24:13 +01:00
a3d3cddeb3 Add functions to search for specific files or file types 2022-11-06 11:51:03 +01:00
8507f57bc1 Add minitar_rewind() 2022-11-06 11:22:27 +01:00
6c916ad861 Add .clang-format 2022-11-06 11:02:26 +01:00
6e0b65aaa8 Open the tar archive in binary mode, for systems that require it 2022-11-06 10:37:09 +01:00
baf8318c29 Read file contents and store them in entry->ptr 2022-11-06 10:33:37 +01:00
0952af15b4 Basic file listing :) 2022-11-05 20:10:48 +01:00
61b122fcf5 Initial groundwork 2022-11-05 18:52:51 +01:00