Git Product home page Git Product logo

libtinytar's Introduction

tinytar library

This library provides .tar, .tar.gz (GZip), and .tar.bz2 (BZip2) archive handling, creation, and extraction to the PlayStation 3 using the PSL1GHT SDK.

Features

  • Extract contents from .tar, .tar.gz, and .tar.bz2 files
  • Create .tar, .tar.gz, and .tar.bz2 archives

Source Version

Exports

tar Creation

  • tar(): creates a .tar uncompressed archive
int tar(const char* dstFile, const char* srcPath);
int tarEx(const char* dstFile, const char* srcPath, tar_callback_t callback);
  • tar_gz(): creates a .tar.gz (GZip) compressed archive
int tar_gz(const char* dstFile, const char* srcPath);
int tarEx_gz(const char* dstFile, const char* srcPath, tar_callback_t callback);
  • tar_bz2(): creates a .tar.bz2 (BZip2) compressed archive
int tar_bz2(const char* dstFile, const char* srcPath);
int tarEx_bz2(const char* dstFile, const char* srcPath, tar_callback_t callback);

tar Extraction

  • untar(): extracts contents from a .tar uncompressed archive
int untar(const char* srcFile, const char* dstPath);
int untarEx(const char* srcFile, const char* dstPath, tar_callback_t callback);
  • untar_gz(): extracts contents from a .tar.gz (GZip) compressed archive
int untar_gz(const char* srcFile, const char* dstPath);
int untarEx_gz(const char* srcFile, const char* dstPath, tar_callback_t callback);
  • untar_bz2(): extracts contents from a .tar.bz2 (BZip2) compressed archive
int untar_bz2(const char* srcFile, const char* dstPath);
int untarEx_bz2(const char* srcFile, const char* dstPath, tar_callback_t callback);

Build/Install

Build the library with:

make

Install the library to your PSL1GHT setup with:

make install

Documentation

Sample app

You can find a sample PSL1GHT app using the library here.

License

libuntar is released under the MIT License.

libtinytar's People

Contributors

bucanero avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.