| // Copyright 2023 Google LLC. |
| |
| #ifndef SW_DEVICE_LIB_TAR_H_ |
| #define SW_DEVICE_LIB_TAR_H_ |
| |
| typedef struct tar_header { // byte offset |
| uint8_t name[100]; // 0 |
| uint8_t mode[8]; // 100 |
| uint8_t uid[8]; // 108 |
| uint8_t gid[8]; // 116 |
| uint8_t size[12]; // 124 |
| uint8_t mtime[12]; // 136 |
| uint8_t chksum[8]; // 148 |
| uint8_t typeflag; // 156 |
| uint8_t linkname[100]; // 157 |
| uint8_t magic[6]; // 257 |
| uint8_t version[2]; // 263 |
| uint8_t uname[32]; // 265 |
| uint8_t gname[32]; // 297 |
| uint8_t devmajor[8]; // 329 |
| uint8_t devminor[8]; // 337 |
| uint8_t prefix[155]; // 345 |
| uint8_t reserved[12]; // 500 |
| // 512 |
| } tar_header; |
| |
| #if defined(__cplusplus) |
| extern "C" { |
| #endif |
| |
| #if defined(__cplusplus) |
| } |
| #endif |
| |
| #endif // SW_DEVICE_LIB_TAR_H_ |