Figure out per-file compression/decompression #5
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: stephenseo/SimpleArchiver#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Can use https://justine.lol/cosmopolitan/documentation.html#systemvpe when using Cosmopolitan. Otherwise use
system
on Linux.Apparently, the
__COSMOPOLITAN__
macro is defined when compiled with Cosmopolitan.Linux and MacOS has
system
available. Windows apparently has_spawn
functions. It probably is ideal to use_spawnvpe
which has args similar to Cosmopolitan'ssystemvpe
.The current plan is to use https://justine.lol/cosmopolitan/documentation.html#pipe2 , https://justine.lol/cosmopolitan/documentation.html#posix_spawnp , and https://justine.lol/cosmopolitan/documentation.html#posix_spawn_file_actions_adddup2 for Unix and Cosmopolitan implementations. The Windows implementation will be done later.
In other words, the de/compressor cmds should accept file data from
stdin
and print compressed data tostdout
.As of
be67425d21
, compressing into an archive works. This also set up some stuff for decompressing as well, so it shouldn't be too hard to do the decompressing part.Closing this issue, as the rest is covered by #4 .