From 1996aee7f0c6922c6c12f1185e66d3bb3c6ea359 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 7 Feb 2005 13:25:14 +0000 Subject: 2005-02-07 Ralf Corsepius * libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.c, libmisc/untar/untar.h: Various generalizations and fixes. --- cpukit/libmisc/untar/untar.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpukit/libmisc/untar/untar.h') 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 +#include #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 -- cgit v1.2.3