diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-17 11:10:10 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-17 11:22:07 (EDT) |
commit | deecdb9aa40e64b62ad594a97cc5d941a27a576e (patch) | |
tree | 7da38b3e02470ea84a92f351dcdd4c1ef0fc7e90 /src/ustar.h | |
parent | 0f96542e7c0f0555b2b2ef7ac52c574a616fa7b2 (diff) |
ustar, main: Show size of member files
Also fix integer type (maximum file size is 8^12-1 = 68719476735).
Diffstat (limited to 'src/ustar.h')
-rw-r--r-- | src/ustar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ustar.h b/src/ustar.h index de782b8..4015639 100644 --- a/src/ustar.h +++ b/src/ustar.h @@ -20,6 +20,8 @@ #ifndef OPKG_OPK_USTAR_H_ #define OPKG_OPK_USTAR_H_ +#include <stdint.h> + #define OPKG_OPK_USTAR_RECORD_SIZE 512 #define OPKG_OPK_USTAR_NAME_MAX_LEN 257 /* prefix[155] + '/' + name[100] + '\0' */ @@ -27,7 +29,8 @@ struct opkg_opk_ustar; struct opkg_opk_ustar_member { - char name[OPKG_OPK_USTAR_NAME_MAX_LEN]; + char name[OPKG_OPK_USTAR_NAME_MAX_LEN]; + int64_t size; }; struct opkg_opk_ustar * |