summaryrefslogtreecommitdiffstats
path: root/c/src/libmisc/untar/untar.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-06 21:45:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-06 21:45:06 +0000
commitb08d3ed989cf3d4fc8ecf49e2f6781c612edb6d2 (patch)
treeed948f6560763ae363061b480c41ada18dde7a70 /c/src/libmisc/untar/untar.h
parentPatch from Andrew Bray <andy@chaos.org.uk>: (diff)
downloadrtems-b08d3ed989cf3d4fc8ecf49e2f6781c612edb6d2.tar.bz2
Untar support submitted by Jake Janovetz <janovetz@tempest.ece.uiuc.edu>.
Diffstat (limited to '')
-rw-r--r--c/src/libmisc/untar/untar.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/c/src/libmisc/untar/untar.h b/c/src/libmisc/untar/untar.h
new file mode 100644
index 0000000000..d8c5bcfc01
--- /dev/null
+++ b/c/src/libmisc/untar/untar.h
@@ -0,0 +1,25 @@
+/*
+ * Written by: Jake Janovetz <janovetz@tempest.ece.uiuc.edu>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#ifndef __UNTAR_H__
+#define __UNTAR_H__
+
+
+#define UNTAR_SUCCESSFUL 0
+#define UNTAR_FAIL 1
+#define UNTAR_INVALID_CHECKSUM 2
+#define UNTAR_INVALID_HEADER 3
+
+
+int Untar_FromMemory(unsigned char *tar_buf, unsigned long size);
+int Untar_FromFile(char *tar_name);
+
+
+#endif /* __UNTAR_H__ */