RTEMS  5.0.0
Macros | Functions
untar.c File Reference

Untar an ImageFIXME: More...

#include <stdbool.h>
#include <sys/param.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <rtems/untar.h>
#include <rtems/bspIo.h>

Macros

#define MAX_NAME_FIELD_SIZE   99
 

Functions

unsigned long _rtems_octal2ulong (const char *octascii, size_t len)
 
int Untar_FromMemory_Print (void *tar_buf, size_t size, const rtems_printer *printer)
 
int Untar_FromMemory (void *tar_buf, size_t size)
 
int Untar_FromFile_Print (const char *tar_name, const rtems_printer *printer)
 
void Untar_ChunkContext_Init (Untar_ChunkContext *context)
 Initializes the Untar_ChunkContext files out of a part of a block of memory. More...
 
int Untar_FromChunk_Print (Untar_ChunkContext *context, void *chunk, size_t chunk_size, const rtems_printer *printer)
 
int Untar_FromFile (const char *tar_name)
 
int _rtems_tar_header_checksum (const char *bufr)
 

Detailed Description

Untar an Image

FIXME:

  1. Symbolic links are not created.
  2. Untar_FromMemory uses FILE *fp.
  3. How to determine end of archive?