Debian Codegraph @

share/libc/tar.h

raw
1 /**************************************************************************/
2 /* */
3 /* This file is part of Frama-C. */
4 /* */
5 /* Copyright (C) 2007-2022 */
6 /* CEA (Commissariat à l'énergie atomique et aux énergies */
7 /* alternatives) */
8 /* */
9 /* you can redistribute it and/or modify it under the terms of the GNU */
10 /* Lesser General Public License as published by the Free Software */
11 /* Foundation, version 2.1. */
12 /* */
13 /* It is distributed in the hope that it will be useful, */
14 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
15 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
16 /* GNU Lesser General Public License for more details. */
17 /* */
18 /* See the GNU Lesser General Public License version 2.1 */
19 /* for more details (enclosed in the file licenses/LGPLv2.1). */
20 /* */
21 /**************************************************************************/
22
23 #ifndef __FC_TAR
24 #define __FC_TAR
25
26 #define TMAGIC "ustar"
27 #define TMAGLEN 6
28 #define TVERSION "00"
29 #define TVERSLEN 2
30
31 #define REGTYPE '0'
32 #define AREGTYPE '\0'
33 #define LNKTYPE '1'
34 #define SYMTYPE '2'
35 #define CHRTYPE '3'
36 #define BLKTYPE '4'
37 #define DIRTYPE '5'
38 #define FIFOTYPE '6'
39 #define CONTTYPE '7'
40
41 #define TSUID 04000
42 #define TSGID 02000
43 #define TSVTX 01000
44 #define TUREAD 00400
45 #define TUWRITE 00200
46 #define TUEXEC 00100
47 #define TGREAD 00040
48 #define TGWRITE 00020
49 #define TGEXEC 00010
50 #define TOREAD 00004
51 #define TOWRITE 00002
52 #define TOEXEC 00001
53
54 #endif