21#define USTAR_HEADER_SIZE 512
static const char file_name[]
tests/filesys/base/syn-read.h
ustar_type
Support for the standard Posix "ustar" format.
@ USTAR_REGULAR
Ordinary file.
@ USTAR_EOF
End of archive (not an official value).
@ USTAR_DIRECTORY
Directory.
bool ustar_make_header(const char *file_name, enum ustar_type, int size, char header[USTAR_HEADER_SIZE])
Composes HEADER as a USTAR_HEADER_SIZE (512)-byte archive header in ustar format for a SIZE-byte file...
#define USTAR_HEADER_SIZE
Size of a ustar archive header, in bytes.
const char * ustar_parse_header(const char header[USTAR_HEADER_SIZE], const char **file_name, enum ustar_type *, int *size)
lib/ustar.h