Changeset 24fda5e in mainline for uspace/lib
- Timestamp:
- 2018-06-05T16:05:16Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18ad56a8, 8404342
- Parents:
- 04051b8e
- Location:
- uspace/lib/untar
- Files:
-
- 3 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/untar/private/tar.h
r04051b8e r24fda5e 27 27 */ 28 28 29 /** @addtogroup untar29 /** @addtogroup libuntar 30 30 * @{ 31 31 */ 32 32 /** @file 33 33 */ 34 #ifndef TAR_H_GUARD 35 #define TAR_H_GUARD 34 35 #ifndef TAR_H_ 36 #define TAR_H_ 36 37 37 38 #define TAR_BLOCK_SIZE 512 … … 69 70 } tar_header_t; 70 71 71 72 72 extern errno_t tar_header_parse(tar_header_t *, const tar_header_raw_t *); 73 73 extern tar_type_t tar_type_parse(const char); -
uspace/lib/untar/tar.c
r04051b8e r24fda5e 27 27 */ 28 28 29 /** @addtogroup untar29 /** @addtogroup libuntar 30 30 * @{ 31 31 */ … … 38 38 #include <errno.h> 39 39 #include <assert.h> 40 41 #include "tar.h" 40 #include "private/tar.h" 42 41 43 42 tar_type_t tar_type_parse(const char type) … … 71 70 errno_t tar_header_parse(tar_header_t *parsed, const tar_header_raw_t *raw) 72 71 { 73 errno_t rc;74 75 72 if (str_length(raw->filename) == 0) { 76 73 return EEMPTY; … … 78 75 79 76 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); 81 78 if (rc != EOK) { 82 79 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.