source: rtems/cpukit/include/rtems/tar.h @ 585cba9

4.104.114.84.95
Last change on this file since 585cba9 was 4d3b1bb, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/07/05 at 13:16:15

2005-02-07 Ralf Corsepius <ralf.corsepius@…>

  • include/rtems/tar.h: New.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.org/license/LICENSE.
5 *
6 *  $Id$
7 */
8
9/** @file  rtems/tar.h
10 * Wrapper to <tar.h> to accomodate systems not providing <tar.h> (Cygwin).
11 */
12
13#ifndef _RTEMS_TAR_H
14#define _RTEMS_TAR_H
15
16#include <rtems/score/cpuopts.h>
17
18#if RTEMS_USES_TAR_H
19#include <tar.h>
20#else
21/* General definitions */
22#define TMAGIC          "ustar" /* ustar plus null byte. */
23#define TMAGLEN         6       /* Length of the above. */
24#define TVERSION        "00"    /* 00 without a null byte. */
25#define TVERSLEN        2       /* Length of the above. */
26
27/* Typeflag field definitions */
28#define REGTYPE         '0'     /* Regular file. */
29#define AREGTYPE        '\0'    /* Regular file. */
30#define LNKTYPE         '1'     /* Link. */
31#define SYMTYPE         '2'     /* Symbolic link. */
32#define CHRTYPE         '3'     /* Character special. */
33#define BLKTYPE         '4'     /* Block special. */
34#define DIRTYPE         '5'     /* Directory. */
35#define FIFOTYPE        '6'     /* FIFO special. */
36#define CONTTYPE        '7'     /* Reserved. */
37
38/* Mode field bit definitions (octal) */
39#define TSUID           04000   /* Set UID on execution. */
40#define TSGID           02000   /* Set GID on execution. */
41#define TSVTX           01000   /* On directories, restricted deletion flag. */
42#define TUREAD          00400   /* Read by owner. */
43#define TUWRITE         00200   /* Write by owner. */
44#define TUEXEC          00100   /* Execute/search by owner. */
45#define TGREAD          00040   /* Read by group. */
46#define TGWRITE         00020   /* Write by group. */
47#define TGEXEC          00010   /* Execute/search by group. */
48#define TOREAD          00004   /* Read by other. */
49#define TOWRITE         00002   /* Write by other. */
50#define TOEXEC          00001   /* Execute/search by other. */
51#endif /* RTEMS_USES_TAR_H */
52
53#endif /* _RTEMS_TAR_H */
Note: See TracBrowser for help on using the repository browser.