Changeset 24fda5e in mainline for uspace/lib/untar/tar.c


Ignore:
Timestamp:
2018-06-05T16:05:16Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18ad56a8, 8404342
Parents:
04051b8e
Message:

separate the TAR extraction to a library to make the code reusable

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/untar/tar.c

    r04051b8e r24fda5e  
    2727 */
    2828
    29 /** @addtogroup untar
     29/** @addtogroup libuntar
    3030 * @{
    3131 */
     
    3838#include <errno.h>
    3939#include <assert.h>
    40 
    41 #include "tar.h"
     40#include "private/tar.h"
    4241
    4342tar_type_t tar_type_parse(const char type)
     
    7170errno_t tar_header_parse(tar_header_t *parsed, const tar_header_raw_t *raw)
    7271{
    73         errno_t rc;
    74 
    7572        if (str_length(raw->filename) == 0) {
    7673                return EEMPTY;
     
    7875
    7976        size_t size;
    80         rc = str_size_t(raw->size, NULL, 8, true, &size);
     77        errno_t rc = str_size_t(raw->size, NULL, 8, true, &size);
    8178        if (rc != EOK) {
    8279                return rc;
Note: See TracChangeset for help on using the changeset viewer.