diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-07 13:25:14 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-07 13:25:14 +0000 |
commit | 1996aee7f0c6922c6c12f1185e66d3bb3c6ea359 (patch) | |
tree | a3223ce8cbac5a04e065f568ed0a4268b5edee26 /cpukit/libmisc/untar/untar.h | |
parent | 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-1996aee7f0c6922c6c12f1185e66d3bb3c6ea359.tar.bz2 |
2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c,
libmisc/untar/untar.c, libmisc/untar/untar.h:
Various generalizations and fixes.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/untar/untar.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/libmisc/untar/untar.h b/cpukit/libmisc/untar/untar.h index e3f4a59555..64aae14163 100644 --- a/cpukit/libmisc/untar/untar.h +++ b/cpukit/libmisc/untar/untar.h @@ -12,6 +12,7 @@ #define __UNTAR_H__ #include <stddef.h> +#include <rtems/tar.h> #ifdef __cplusplus extern "C" { @@ -26,6 +27,21 @@ extern "C" { int Untar_FromMemory(char *tar_buf, size_t size); int Untar_FromFile(char *tar_name); +/************************************************************************** + * This converts octal ASCII number representations into an + * unsigned long. Only support 32-bit numbers for now. + *************************************************************************/ +extern unsigned long +_rtems_octal2ulong(const char *octascii, size_t len); + +/************************************************************************ + * Compute the TAR checksum and check with the value in + * the archive. The checksum is computed over the entire + * header, but the checksum field is substituted with blanks. + ************************************************************************/ +extern int +_rtems_tar_header_checksum(const char *bufr); + #ifdef __cplusplus } #endif |