Files
rtems/cpukit/libmisc/untar
Joel Sherrill 09220c8129 untar.c: Coverity ID 26151 and reformat
The Coverity issue was an ignored return value from a read()
in a loop which should have been a seek() since the data
read was ignored.

The file itself needed reformatting to conform to RTEMS style.
2015-01-04 13:44:57 -06:00
..

#
#  
#  untar information
#
#  Author: Jake Janovetz 7.6.1999
#

untar.c contains two procedures for extracting files from a UNIX
tar file:

    int Untar_FromMemory(unsigned char *tar_buf, unsigned long size);
    int Untar_FromFile(char *tar_name);

Untar_FromMemory(...) takes its input from a chunk of allocated memory.
This is particularly useful when the tar is stored in Flash memory or
comes from the FTP daemon by way of a hook.

Untar_FromFile(...) is identical except the source is from an existing
file.  The fully qualified filename is passed through char *tar_name.



BUGS: Please email janovetz@uiuc.edu
-----