Using tar to access files

Nick Withers nick.withers at
Tue Jun 30 05:10:00 UTC 2015

On Tue, 2015-06-30 at 10:09 +0530, Sujay Raj wrote:
> I need to access configurations files the for web server I am porting to
> rtems.
> I create a tar archive , that contains the required folders and files ,
> convert it into c source using rtems-bin2c , ( a header file and a c source
> ) and link them with my project.
> In the init, I call
> sc = Untar_FromMemory((void *)TARFILE_START, (size_t)TARFILE_SIZE);

I'm not familiar with that function but I use rtems_tarfs_load()

other resources off the top of my head.

P.S. It'd probably be best to send help requests like this to the users

> where TARFILE_START is the macro with the name of the array , TARFILE_SIZE
> is the size of the array.
> But when I run the program, I get errors of the form
> "Untar: failed to create file <folder>/<filename>"
> for all the files in the tar archive (there are about 10 files, 10 errors).
> There are no build errors, and since my application recognizes files
> present in the tar archive, I think possibly I am missing to initialize
> something.
> Help would be really appreciated.
> Thanks and Regards,
> Sujay Raj
> _______________________________________________
> devel mailing list
> devel at

More information about the devel mailing list