| /* |
| * Copyright 2023 Google LLC |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| |
| #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_ |