Commit Graph

38 Commits

Author SHA1 Message Date
73c4dce573
fix: Functions implemented in tar.c are no longer implemented in the README 2023-06-18 21:09:35 +02:00
845b357bef
Update README.md 2023-02-04 19:04:29 +01:00
599cac5811
feat: Add support for symbolic links
All the pieces were in place, we just needed to put them together.

Sorry, but sub-500 LoC isn't gonna work anymore...
2023-01-26 22:12:42 +01:00
bacc971007
docs: Add build instructions 2023-01-12 20:45:46 +01:00
8e16524e1c
docs: Add a note about examples to README.md 2023-01-12 20:06:22 +01:00
e758012948
feat: Add two examples 2023-01-12 20:04:28 +01:00
5be3c7d684
Enable syntax highlighting for the sample program 2023-01-12 19:34:33 +01:00
07c156c30b
docs: Move API docs to docs/API.md and link there from README 2023-01-12 19:15:53 +01:00
a790b6f960
docs: Clarify some sentences 2023-01-12 19:13:31 +01:00
087b099917
Documentation update 2022-12-31 12:57:24 +01:00
39d5ee5b9a
Remove dependency on strtoul() and strtoull() by making our own specialized parse_octal() function 2022-12-31 12:40:21 +01:00
d018d128a0
Optionally ignore unsupported types instead of panicking 2022-12-30 11:13:21 +01:00
56d43f98ac
Mention the fact that it is faster than GNU tar
At least, according to my benchmarking tool that I just created for exactly this purpose :)
2022-12-25 16:57:49 +01:00
7d4e774cf7
Rewrite the entire API just to eliminate heap allocations
Just bumping minor because nobody uses this and I don't want to jump up to 2.0.0
2022-12-25 14:33:47 +01:00
89bc990725
More optimization and heap elimination 2022-12-25 13:31:11 +01:00
23c313d9cf
Get rid of libgen.h in favor of our own basename :) 2022-12-25 12:51:35 +01:00
4ab1cd42c9 Update README.md 2022-12-01 18:39:03 +00:00
125ec8f063 Provide strdup ourselves 2022-12-01 19:30:51 +01:00
aff867f667 Add references to minitar_find_by_path() in README.md 2022-11-30 19:32:21 +01:00
dd3d84be76 Update README.md 2022-11-30 19:25:55 +01:00
28d1eab1c1 Remove character and block devices from supported entry types
Closes #1.
2022-11-30 11:20:13 +01:00
400a51893e Update README.md 2022-11-23 20:50:40 +01:00
fd85cf1c6a Full path is now metadata->path and basename metadata->name
Shouldn't have rushed to 1.0.0 so quickly. Oh well, I guess I can allow 1.1.0...
2022-11-23 18:32:10 +01:00
d123c49946 Do not automatically read an entry's contents, leave it up to the user
This API change modifies minitar_read_entry to skip over the file's contents and instead store the current read position in the entry.

struct minitar_entry no longer has a ptr field, but has a position field (of type fpos_t) for internal use.

minitar_free_entry no longer frees entry->ptr.

A new function has been added, minitar_read_contents().
It reads a certain number of bytes from an entry (which is capped to the entry's size) into a user-provided buffer.
This function can be called at any time provided it is called with a valid archive stream and entry.
This is achieved by calling fgetpos() to store the start of the entry's contents in the entry's position field while reading it.
Then minitar_read_contents() will store the current position, rewind to the entry's position, read the chosen number of bytes from the archive, and then rewind back to the current position.

Since this is a breaking change, it needs a major version bump. Since there was no version, I bumped it to 1.0.0 :)
2022-11-21 20:20:37 +01:00
363c01d6f8 Update README.md 2022-11-06 13:58:41 +00:00
97da894c0f Make naming consistent across all files 2022-11-06 14:21:32 +01:00
4401b1ca3a Update README.md 2022-11-06 14:18:36 +01:00
7af3cfdfa0 Correct C++ signature 2022-11-06 12:39:17 +01:00
53723e6e2f Document how to override the default panic function 2022-11-06 12:34:49 +01:00
bdb500b290 Remove unnecessary line in header 2022-11-06 12:16:04 +01:00
aeb1767028 Document types in README 2022-11-06 12:11:40 +01:00
ae70e11b12 State the license in the README 2022-11-06 11:56:40 +01:00
15531b2c52 Fix typo =D 2022-11-06 11:51:47 +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
c05a8e1b07 Document the API in the README 2022-11-06 11:06:01 +01:00
0952af15b4 Basic file listing :) 2022-11-05 20:10:48 +01:00
10159e1acc Initial commit 2022-11-05 17:25:26 +00:00