Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | opk/read: Fix device number lengths | Patrick McDermott | 2023-06-17 | 1 | -0/+6 |
| | | | | log10(1) == 0 | ||||
* | main: Add -s option | Patrick McDermott | 2023-06-17 | 1 | -2/+15 |
| | |||||
* | opk/write: Fix temporary archive file name buffer | Patrick McDermott | 2023-06-17 | 1 | -1/+1 |
| | |||||
* | opk/write: Handle specials overrides | Patrick McDermott | 2023-05-28 | 1 | -0/+22 |
| | |||||
* | opk/write: Simplify goto blocks | Patrick McDermott | 2023-05-28 | 1 | -39/+23 |
| | | | | Also fixes "warning: label ‘out0’ defined but not used". | ||||
* | opk/write: Fix path length handling, add virt path | Patrick McDermott | 2023-05-28 | 3 | -40/+47 |
| | |||||
* | opk/write: Clarify variable names | Patrick McDermott | 2023-05-28 | 1 | -15/+18 |
| | |||||
* | opk: Read specials file | Patrick McDermott | 2023-05-17 | 3 | -0/+27 |
| | |||||
* | specials: Read and search special files list | Patrick McDermott | 2023-05-17 | 3 | -0/+171 |
| | | | | specials.txt is a temporary example file. | ||||
* | opk/read: Ignore -Wmaybe-uninitialized false pos | Patrick McDermott | 2023-05-12 | 1 | -0/+6 |
| | |||||
* | opk/read: Indent other pragmas | Patrick McDermott | 2023-05-12 | 1 | -3/+3 |
| | |||||
* | opk/read: Make GCC 12 analyzer STFU | Patrick McDermott | 2023-05-12 | 1 | -0/+40 |
| | | | | | | What a mess. Fixes most of analyzer*.log (thousands of lines of error messages). | ||||
* | opk/read: Only extract and/or print regular files | Patrick McDermott | 2023-05-12 | 1 | -0/+14 |
| | |||||
* | opk/read: List device major and minor numbers | Patrick McDermott | 2023-05-12 | 1 | -7/+41 |
| | |||||
* | ustar: Provide devmajor and devminor in listing | Patrick McDermott | 2023-05-12 | 2 | -1/+16 |
| | |||||
* | opk/write: Reflow some lines | Patrick McDermott | 2023-05-12 | 1 | -7/+4 |
| | |||||
* | opk/write: Write block, char, and FIFO headers | Patrick McDermott | 2023-05-12 | 1 | -3/+35 |
| | |||||
* | ustar: Support writing device major and minor | Patrick McDermott | 2023-05-12 | 3 | -11/+15 |
| | |||||
* | opk/read: Fix possible FD leak | Patrick McDermott | 2023-05-11 | 1 | -0/+1 |
| | |||||
* | gzip: Add pure attribute | Patrick McDermott | 2023-05-11 | 1 | -1/+1 |
| | |||||
* | opk/write: Error-check lstat() and rename var | Patrick McDermott | 2023-05-11 | 1 | -15/+20 |
| | |||||
* | opk/write: Add root directories to inner archives | Patrick McDermott | 2023-05-11 | 1 | -0/+20 |
| | |||||
* | dirent: Add trailing '/' to directories | Patrick McDermott | 2023-05-11 | 3 | -14/+18 |
| | |||||
* | dirent: Remove test code | Patrick McDermott | 2023-05-10 | 1 | -29/+0 |
| | |||||
* | dirent: Fix separators and length limits | Patrick McDermott | 2023-05-10 | 1 | -29/+48 |
| | |||||
* | dirent: Re-add and update test code | Patrick McDermott | 2023-05-10 | 1 | -0/+30 |
| | | | | This reverts commit 50f9ee989f89fd47a5f554d9967e8abedd6bd938. | ||||
* | opk/write: Build control and data archives | Patrick McDermott | 2023-05-10 | 2 | -10/+369 |
| | |||||
* | gzip: Separate last compression from freeing | Patrick McDermott | 2023-05-08 | 3 | -3/+19 |
| | |||||
* | gzip: Count and report bytes written | Patrick McDermott | 2023-05-07 | 2 | -0/+12 |
| | |||||
* | opk/write: Store outer ustar uname/gname in vars | Patrick McDermott | 2023-05-07 | 1 | -3/+7 |
| | |||||
* | opk/write: Fix comments | Patrick McDermott | 2023-05-07 | 1 | -2/+2 |
| | |||||
* | Revert "gzip: Test code" | Patrick McDermott | 2023-05-07 | 1 | -82/+0 |
| | | | | This reverts commit 075f39b18619274bd5ae78a516a93df268b9ef7e. | ||||
* | gzip: Test code | Patrick McDermott | 2023-05-07 | 1 | -0/+82 |
| | |||||
* | gzip: Write compressed output to file directly | Patrick McDermott | 2023-05-07 | 3 | -54/+22 |
| | |||||
* | gzip: Split init functions | Patrick McDermott | 2023-05-07 | 2 | -46/+47 |
| | |||||
* | ustar: Make mtime unsigned | Patrick McDermott | 2023-05-07 | 4 | -6/+6 |
| | |||||
* | ustar: Add linkname size macro | Patrick McDermott | 2023-05-07 | 1 | -7/+8 |
| | |||||
* | dirent: Handle NULL buffers, remove function | Patrick McDermott | 2023-05-04 | 2 | -53/+6 |
| | |||||
* | ustar: Treat octets as unsigned in chksum | Patrick McDermott | 2023-05-03 | 1 | -6/+6 |
| | | | | | | Per POSIX. Complement of commit 619f09be066777b8296acf93bd6b51771ca64bd2. | ||||
* | ustar: Document assumptions and improve safety | Patrick McDermott | 2023-05-03 | 1 | -3/+14 |
| | |||||
* | opk/read: Separate error handling | Patrick McDermott | 2023-05-03 | 1 | -8/+20 |
| | | | | Only free member if opkg_opk_ustar_list() succeeds. | ||||
* | ustar: Improve compatibility of written headers | Patrick McDermott | 2023-05-02 | 1 | -10/+40 |
| | |||||
* | ustar: Treat octets as unsigned in chksum | Patrick McDermott | 2023-05-02 | 1 | -4/+4 |
| | | | | Per POSIX. | ||||
* | ustar: Fill header with zeroes before populating | Patrick McDermott | 2023-05-02 | 1 | -9/+4 |
| | |||||
* | gzip: Fix flushing | Patrick McDermott | 2023-05-02 | 3 | -8/+20 |
| | | | | | | deflate() apparently must be called with avail_in=0 and Z_FINISH after processing all input, not with Z_FINISH on the last non-empty input buffer. | ||||
* | Revert "gzip: Test code" | Patrick McDermott | 2023-05-02 | 1 | -103/+0 |
| | | | | This reverts commit 12277cad55c6d3910dbc24ab32baf405f8970d64. | ||||
* | gzip: Test code | Patrick McDermott | 2023-05-02 | 1 | -0/+103 |
| | |||||
* | gzip: Preserve gzip header | Patrick McDermott | 2023-05-02 | 1 | -9/+9 |
| | | | | | | zlib doesn't copy it anywhere between deflateSetHeader() and deflate(), so we need to make sure it doesn't get corrupted on the stack in the meantime. | ||||
* | ustar: Move SOURCE_DATE_EPOCH code to opk/write | Patrick McDermott | 2023-04-30 | 3 | -26/+30 |
| | | | | | | This way it runs only once (without resorting to static variables) across all headers in all ustar archives. Also, opk/write now prints an informative error message. | ||||
* | ustar: Set mtime in written header | Patrick McDermott | 2023-04-30 | 1 | -0/+23 |
| |