|
rpm 5.3.12
|
Structures used for tar(1) archives. More...

Go to the source code of this file.
Data Structures | |
| struct | tarHeader_s |
| Tar archive header information. More... | |
Defines | |
| #define | TAR_MAGIC "ustar" |
| #define | TAR_VERSION " " |
| #define | TAR_BLOCK_SIZE 512 |
| #define | TAR_MAGIC_LEN 6 |
| #define | TAR_VERSION_LEN 2 |
| #define | TAR_NAME_SIZE 100 |
Typedefs | |
| typedef struct tarHeader_s * | tarHeader |
Functions | |
| int | tarHeaderRead (void *_iosm, struct stat *st) |
| Read tar header from payload. | |
| int | tarHeaderWrite (void *_iosm, struct stat *st) |
| Write tar header to payload. | |
| int | tarTrailerWrite (void *_iosm) |
| Write cpio trailer to payload. | |
Variables | |
| int | _tar_debug |
Structures used for tar(1) archives.
Definition in file tar.h.
| #define TAR_BLOCK_SIZE 512 |
Definition at line 17 of file tar.h.
Referenced by fsmSetup(), iosmSetup(), tarHeaderRead(), and tarHeaderWriteBlock().
| #define TAR_MAGIC "ustar" |
Definition at line 14 of file tar.h.
Referenced by tarHeaderRead(), and tarHeaderWriteBlock().
| #define TAR_VERSION " " |
Definition at line 15 of file tar.h.
Referenced by tarHeaderWriteBlock().
| typedef struct tarHeader_s* tarHeader |
| int tarHeaderRead | ( | void * | _iosm, |
| struct stat * | st | ||
| ) |
Read tar header from payload.
| _iosm | file path and stat info |
| st |
Definition at line 122 of file tar.c.
References _IOSMRC, _tar_debug, tarHeader_s::checksum, tarHeader_s::devMajor, tarHeader_s::devMinor, tarHeader_s::filesize, tarHeader_s::gid, IOSMERR_BAD_HEADER, IOSMERR_BAD_MAGIC, IOSMERR_HDR_TRAILER, tarHeader_s::linkname, iosm_s::lpath, tarHeader_s::magic, major, Makedev, minor, tarHeader_s::mode, tarHeader_s::mtime, tarHeader_s::name, nochksum, iosm_s::path, strntoul(), TAR_BLOCK_SIZE, TAR_MAGIC, tarHeaderReadName(), tarRead(), tarHeader_s::typeflag, tarHeader_s::uid, iosm_s::wrbuf, and xmalloc().
Referenced by fsmSetup(), and iosmSetup().
| int tarHeaderWrite | ( | void * | _iosm, |
| struct stat * | st | ||
| ) |
Write tar header to payload.
| _iosm | file path and stat info |
| st |
Definition at line 386 of file tar.c.
References _iosmNext, _IOSMRC, _tar_debug, tarHeader_s::devMajor, tarHeader_s::devMinor, tarHeader_s::filesize, tarHeader_s::gid, gidToGname(), tarHeader_s::gname, IOSM_PAD, tarHeader_s::linkname, iosm_s::lpath, major, minor, tarHeader_s::mode, tarHeader_s::mtime, tarHeader_s::name, iosm_s::path, iosm_s::rdbuf, S_ISLNK, S_ISSOCK, tarHeaderWriteBlock(), tarHeaderWriteName(), tarHeader_s::typeflag, tarHeader_s::uid, uidToUname(), and tarHeader_s::uname.
Referenced by fsmSetup(), iosmSetup(), and writeLinkedFile().
| int tarTrailerWrite | ( | void * | _iosm | ) |
Write cpio trailer to payload.
| _fsm | file path and stat info |
Definition at line 498 of file tar.c.
References _iosmNext, _IOSMRC, _tar_debug, iosm_s::blksize, IOSM_PAD, and tarWrite().
Referenced by fsmSetup(), and iosmSetup().
| int _tar_debug |
1.7.4