ustar - /* Directory. */ USTAR_EOF = -1 /* End of archive...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef __LIB_USTAR_H #define __LIB_USTAR_H /* Support for the standard Posix "ustar" format. See the documentation of the "pax" utility in [SUSv3] for the the "ustar" format specification. */ #include <stdbool.h> /* Type of a file entry in an archive. The values here are the bytes that appear in the file format. Only types of interest to Pintos are listed here. */ enum ustar_type { USTAR_REGULAR = '0', /* Ordinary file. */ USTAR_DIRECTORY = '5',
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: /* Directory. */ USTAR_EOF = -1 /* End of archive (not an official value). */ }; /* Size of a ustar archive header, in bytes. */ #define USTAR_HEADER_SIZE 512 bool ustar_make_header (const char *file_name, enum ustar_type, int size, char header[USTAR_HEADER_SIZE]); const char *ustar_parse_header (const char header[USTAR_HEADER_SIZE], const char **file_name, enum ustar_type *, int *size); #endif /* lib/ustar.h */...
View Full Document

This note was uploaded on 02/19/2010 for the course EE 142 taught by Professor John during the Spring '04 term at Abraham Baldwin Agricultural College.

Ask a homework question - tutors are online