summaryrefslogtreecommitdiff
path: root/system/include/libc/tar.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libc/tar.h')
-rw-r--r--system/include/libc/tar.h60
1 files changed, 27 insertions, 33 deletions
diff --git a/system/include/libc/tar.h b/system/include/libc/tar.h
index 07b06dd7..be589842 100644
--- a/system/include/libc/tar.h
+++ b/system/include/libc/tar.h
@@ -1,39 +1,33 @@
-/*
- * tar.h
- */
+#ifndef _TAR_H
+#define _TAR_H
-#ifndef _TAR_H
-#define _TAR_H
+#define TSUID 04000
+#define TSGID 02000
+#define TSVTX 01000
+#define TUREAD 00400
+#define TUWRITE 00200
+#define TUEXEC 00100
+#define TGREAD 00040
+#define TGWRITE 00020
+#define TGEXEC 00010
+#define TOREAD 00004
+#define TOWRITE 00002
+#define TOEXEC 00001
-/* General definitions */
-#define TMAGIC "ustar" /* ustar plus null byte. */
-#define TMAGLEN 6 /* Length of the above. */
-#define TVERSION "00" /* 00 without a null byte. */
-#define TVERSLEN 2 /* Length of the above. */
+#define REGTYPE '0'
+#define AREGTYPE '\0'
+#define LNKTYPE '1'
+#define SYMTYPE '2'
+#define CHRTYPE '3'
+#define BLKTYPE '4'
+#define DIRTYPE '5'
+#define FIFOTYPE '6'
+#define CONTTYPE '7'
-/* Typeflag field definitions */
-#define REGTYPE '0' /* Regular file. */
-#define AREGTYPE '\0' /* Regular file. */
-#define LNKTYPE '1' /* Link. */
-#define SYMTYPE '2' /* Symbolic link. */
-#define CHRTYPE '3' /* Character special. */
-#define BLKTYPE '4' /* Block special. */
-#define DIRTYPE '5' /* Directory. */
-#define FIFOTYPE '6' /* FIFO special. */
-#define CONTTYPE '7' /* Reserved. */
+#define TMAGIC "ustar"
+#define TMAGLEN 6
-/* Mode field bit definitions (octal) */
-#define TSUID 04000 /* Set UID on execution. */
-#define TSGID 02000 /* Set GID on execution. */
-#define TSVTX 01000 /* On directories, restricted deletion flag. */
-#define TUREAD 00400 /* Read by owner. */
-#define TUWRITE 00200 /* Write by owner. */
-#define TUEXEC 00100 /* Execute/search by owner. */
-#define TGREAD 00040 /* Read by group. */
-#define TGWRITE 00020 /* Write by group. */
-#define TGEXEC 00010 /* Execute/search by group. */
-#define TOREAD 00004 /* Read by other. */
-#define TOWRITE 00002 /* Write by other. */
-#define TOEXEC 00001 /* Execute/search by other. */
+#define TVERSION "00"
+#define TVERSLEN 2
#endif