/ [cpio] / cpio / src / tarhdr.h
To checkout: cvs -d:pserver:anonymous@cvs.gnu.org.ua:/cvsmirror/cpio co cpio/src/tarhdr.h
Puszcza

Contents of /cpio/src/tarhdr.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Wed Jun 27 14:00:00 2007 UTC (14 years, 5 months ago) by gray
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
File MIME type: text/plain
Relicense under GPLv3

1 /* Extended tar header from POSIX.1.
2 Copyright (C) 1992, 2007 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public
15 License along with this program; if not, write to the Free
16 Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301 USA. */
18
19 #ifndef _TARHDR_H
20
21 #define _TARHDR_H 1
22
23 #include <tar.h>
24
25 /* Size of `name' field. */
26 #define TARNAMESIZE 100
27
28 /* Size of `linkname' field. */
29 #define TARLINKNAMESIZE 100
30
31 /* Size of `prefix' field. */
32 #define TARPREFIXSIZE 155
33
34 /* Size of entire tar header. */
35 #define TARRECORDSIZE 512
36
37 struct tar_header
38 {
39 char name[TARNAMESIZE];
40 char mode[8];
41 char uid[8];
42 char gid[8];
43 char size[12];
44 char mtime[12];
45 char chksum[8];
46 char typeflag;
47 char linkname[TARLINKNAMESIZE];
48 char magic[6];
49 char version[2];
50 char uname[32];
51 char gname[32];
52 char devmajor[8];
53 char devminor[8];
54 char prefix[TARPREFIXSIZE];
55 };
56
57 union tar_record
58 {
59 struct tar_header header;
60 char buffer[TARRECORDSIZE];
61 };
62
63 #endif /* tarhdr.h */

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20