|
1 |
| -/* Header |
2 |
| -Offset Length Contents |
3 |
| - 0 100 bytes File name ('\0' terminated, 99 maxmum length) |
4 |
| -100 8 bytes File mode (in octal ascii) |
5 |
| -108 8 bytes User ID (in octal ascii) |
6 |
| -116 8 bytes Group ID (in octal ascii) |
7 |
| -124 12 bytes File size (s) (in octal ascii) |
8 |
| -136 12 bytes Modify time (in octal ascii) |
9 |
| -148 8 bytes Header checksum (in octal ascii) |
10 |
| -156 1 bytes Link flag |
11 |
| -157 100 bytes Linkname ('\0' terminated, 99 maxmum length) |
12 |
| -257 8 bytes Magic ("ustar \0") |
13 |
| -265 32 bytes User name ('\0' terminated, 31 maxmum length) |
14 |
| -297 32 bytes Group name ('\0' terminated, 31 maxmum length) |
15 |
| -329 8 bytes Major device ID (in octal ascii) |
16 |
| -337 8 bytes Minor device ID (in octal ascii) |
17 |
| -345 167 bytes Padding |
18 |
| -512 (s+p)bytes File contents (s+p) := (((s) + 511) & ~511), round up to 512 bytes |
19 |
| -*/ |
20 |
| - |
21 |
| - |
22 |
| - |
| 1 | +/* |
| 2 | + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_tar.h,v 1.2 2001/03/19 02:35:29 pjw Exp $ |
| 3 | + * |
| 4 | + * TAR Header |
| 5 | + * |
| 6 | + * Offset Length Contents |
| 7 | + * 0 100 bytes File name ('\0' terminated, 99 maxmum length) |
| 8 | + * 100 8 bytes File mode (in octal ascii) |
| 9 | + * 108 8 bytes User ID (in octal ascii) |
| 10 | + * 116 8 bytes Group ID (in octal ascii) |
| 11 | + * 124 12 bytes File size (s) (in octal ascii) |
| 12 | + * 136 12 bytes Modify time (in octal ascii) |
| 13 | + * 148 8 bytes Header checksum (in octal ascii) |
| 14 | + * 156 1 bytes Link flag |
| 15 | + * 157 100 bytes Linkname ('\0' terminated, 99 maxmum length) |
| 16 | + * 257 8 bytes Magic ("ustar \0") |
| 17 | + * 265 32 bytes User name ('\0' terminated, 31 maxmum length) |
| 18 | + * 297 32 bytes Group name ('\0' terminated, 31 maxmum length) |
| 19 | + * 329 8 bytes Major device ID (in octal ascii) |
| 20 | + * 337 8 bytes Minor device ID (in octal ascii) |
| 21 | + * 345 167 bytes Padding |
| 22 | + * 512 (s+p)bytes File contents (s+p) := (((s) + 511) & ~511), round up to 512 bytes |
| 23 | + */ |
23 | 24 |
|
24 | 25 | /* The linkflag defines the type of file */
|
25 | 26 | #defineLF_OLDNORMAL '\0'/* Normal disk file, Unix compatible */
|
|