summaryrefslogtreecommitdiffstats
path: root/src/main.c
Commit message (Collapse)AuthorAgeFilesLines
* opk: Manage control file list and listing flagPatrick McDermott2023-04-281-54/+27
| | | | Instead of main() doing so.
* Revert "main: Test gzip writing"Patrick McDermott2023-04-281-58/+222
| | | | This reverts commit 261d5be6b02e73fc0c7973b7319e89af7e574fb0.
* main: Test gzip writingPatrick McDermott2023-04-281-222/+58
|
* main: Set text domain and localePatrick McDermott2023-04-201-2/+14
|
* main, opk: Translate stringsPatrick McDermott2023-04-201-15/+21
|
* main: Print options help in one puts() callPatrick McDermott2023-04-201-37/+31
|
* main: Check for at least one optionPatrick McDermott2023-04-201-0/+6
|
* main: Disable getopt's error outputPatrick McDermott2023-04-201-0/+1
|
* main: Add help output and check for operandPatrick McDermott2023-04-201-4/+78
|
* main: Add version outputPatrick McDermott2023-04-201-2/+19
|
* main: Handle optionsPatrick McDermott2023-04-201-14/+99
| | | | Missing: -h, -V, and -?
* opk: Automatically initialize inner gzip and ustarPatrick McDermott2023-04-191-15/+5
| | | | Simplifies interface to main().
* ustar: Make seek names struct opaquePatrick McDermott2023-04-191-15/+9
| | | | Simplify main() a little and fix memory leak on success.
* main: Fix list free loopPatrick McDermott2023-04-191-4/+4
|
* opk: Print multiple control filesPatrick McDermott2023-04-181-0/+5
|
* ustar: Use linked list instead of varargs in seekPatrick McDermott2023-04-181-2/+17
| | | | Also indicate when all sought member files are found.
* opk: Separate output with newline, so main needn'tPatrick McDermott2023-04-181-3/+0
|
* opk: Split from mainPatrick McDermott2023-04-181-251/+13
|
* main: Drop a macroPatrick McDermott2023-04-181-4/+2
|
* main: Split outer and inner archive initializationPatrick McDermott2023-04-181-67/+103
| | | | | | Thus, we can both read the control file and list data files in one pass through the outer archive. Unlike dpkg-deb, opkg-opk will allow both -I and -c options (commands in dpkg-deb syntax) to be used together.
* main, ustar: Add commentsPatrick McDermott2023-04-181-0/+10
|
* main: Check debian-versionPatrick McDermott2023-04-181-0/+18
|
* main: Set max column widths and free membersPatrick McDermott2023-04-181-5/+46
|
* ustar, main: Dynamically allocate member structsPatrick McDermott2023-04-181-16/+17
| | | | | TODO: Save max strlen()s in first loop and printf() and free() in second loop.
* ustar, main: Show mode and mtimePatrick McDermott2023-04-171-4/+21
|
* ustar, main: Show type, uname, and gnamePatrick McDermott2023-04-171-1/+4
|
* ustar, main: Show size of member filesPatrick McDermott2023-04-171-1/+1
| | | | Also fix integer type (maximum file size is 8^12-1 = 68719476735).
* ustar: Search for multiple member namesPatrick McDermott2023-04-171-2/+3
|
* main: Fix control file namePatrick McDermott2023-04-171-1/+1
|
* main: Improve error messages about inner archivePatrick McDermott2023-04-171-3/+6
|
* main: Uncomment control file readingPatrick McDermott2023-04-151-5/+5
|
* main: Print error messagesPatrick McDermott2023-04-151-0/+10
|
* main: Cast function typePatrick McDermott2023-04-151-1/+3
|
* main: Simplify/improve error handlingPatrick McDermott2023-04-151-18/+25
|
* ustar: Fix read bufferPatrick McDermott2023-04-151-1/+1
|
* [WIP] main: Print control file and list data filesPatrick McDermott2023-04-141-18/+92
|
* Eliminate magic numbersPatrick McDermott2023-04-141-2/+5
|
* gzip, ustar: Add *_free() functionsPatrick McDermott2023-04-141-2/+3
|
* main: List outer archive membersPatrick McDermott2023-04-141-5/+49
|
* main: Free zlib buffersPatrick McDermott2023-04-131-0/+1
|
* main: List archive membersPatrick McDermott2023-04-131-0/+28
|
* Initial commitPatrick McDermott2023-04-121-0/+5