X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.h;h=055cdfda735f18838821dcf44f2219cfeccece9d;hb=0f9b299745d3dcccb8948a54e5b89a44c5902ca7;hp=449a93882678861c3479e30b6e0b9a504560702a;hpb=8d6e47cc7fcfb6781b82ba60b8eb823c7fdc7013;p=chaz%2Ftar diff --git a/src/tar.h b/src/tar.h index 449a938..055cdfd 100644 --- a/src/tar.h +++ b/src/tar.h @@ -253,7 +253,9 @@ enum archive_format USTAR_FORMAT, /* POSIX.1-1988 (ustar) format */ POSIX_FORMAT, /* POSIX.1-2001 format */ STAR_FORMAT, /* Star format defined in 1994 */ - GNU_FORMAT /* POSIX format with GNU extensions */ + GNU_FORMAT /* Same as OLDGNU_FORMAT with one exception: + see FIXME note for to_chars() function + (create.c:189) */ }; /* Information about a sparse file. */ @@ -278,9 +280,16 @@ struct tar_stat_info char *gname; /* group name of owner */ struct stat stat; /* regular filesystem stat */ + /* Nanosecond parts of file timestamps (if available) */ + unsigned long atime_nsec; + unsigned long mtime_nsec; + unsigned long ctime_nsec; + off_t archive_file_size; /* Size of file as stored in the archive. Equals stat.st_size for non-sparse files */ + bool is_sparse; /* Is the file sparse */ + size_t sparse_map_avail; /* Index to the first unused element in sparse_map array. Zero if the file is not sparse */