开发者

Simple tar implementation?

开发者 https://www.devze.com 2023-01-12 10:12 出处:网络
Hallo, I\'m looking for a real开发者_如何学编程ly simple and easily hackable tar library for C or C++. Ideally it should have a permissive license (BSD/LGPL) and not have a ton of Unix/Windows OS dep

Hallo,

I'm looking for a real开发者_如何学编程ly simple and easily hackable tar library for C or C++. Ideally it should have a permissive license (BSD/LGPL) and not have a ton of Unix/Windows OS dependencies, as I plan to use it from an embedded RTOS...

Any ideas?


I haven't used it myself, but have you tried libtar? It is written in C and BSD licensed.


The tar format is pretty simple. Have you considered writing your own tar library?


Take a look at the tar tool that comes on NetBSD.

It is actually a compound tool of pax, tar, and cpio, I believe you'll learn most from that.

http://people.freebsd.org/~kientzle/libarchive/

0

精彩评论

暂无评论...
验证码 换一张
取 消