19 lines
480 B
C
19 lines
480 B
C
#include <drivers/tar/tar.h>
|
|
#include <std/util.h>
|
|
#include <drivers/device/device.h>
|
|
/*
|
|
struct tar_header* tar_seek(int fd, char filename[100]) {
|
|
unsigned int i;
|
|
unsigned int addr;
|
|
|
|
for (i = 0; ; i++)
|
|
{
|
|
struct tar_header *header = (struct tar_header *)read(fd, addr);
|
|
if (header->filename == filename) return header;
|
|
|
|
unsigned int size = getsize(header->size);
|
|
addr += ((size / 512) + 1);
|
|
if (size % 512) addr++;
|
|
}
|
|
}
|
|
*/ |