Figure out per-file compression/decompression #5

Closed
opened 2024-06-27 01:05:10 +00:00 by stephenseo · 4 comments
Owner
No description provided.
stephenseo added this to the Development Planning project 2024-06-27 01:05:10 +00:00
Author
Owner

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.

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.
Author
Owner

Linux and MacOS has system available. Windows apparently has _spawn functions. It probably is ideal to use _spawnvpe which has args similar to Cosmopolitan's systemvpe.

Linux and MacOS has `system` available. Windows apparently has `_spawn` functions. It probably is ideal to use `_spawnvpe` which has args similar to Cosmopolitan's `systemvpe`.
Author
Owner

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 to stdout.

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 to `stdout`.
Author
Owner

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 .

As of be67425d216812be6527c8313cc6b1a707a7bc1d , 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 .
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stephenseo/SimpleArchiver#5
No description provided.