From 4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 27 Mar 2012 11:51:08 +0200 Subject: reorganize file structure to match the upstream requirements --- pintos-progos/lib/ustar.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 pintos-progos/lib/ustar.h (limited to 'pintos-progos/lib/ustar.h') diff --git a/pintos-progos/lib/ustar.h b/pintos-progos/lib/ustar.h deleted file mode 100644 index 43a5513..0000000 --- a/pintos-progos/lib/ustar.h +++ /dev/null @@ -1,29 +0,0 @@ -#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 - -/* 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', /* 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 */ -- cgit v1.2.3