X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.h;h=c35ba5dd115ccb80f162815a9bd5bc66e2dd50e7;hb=de328a580ab6f5ff4a3237ce21f1ef0b7dd12984;hp=fddc83fbfdf065aa08ce3d8a2ae766b1590ab9b3;hpb=bad4b0006c872e09129cc1128ab24157af38b0cd;p=chaz%2Ftar diff --git a/src/tar.h b/src/tar.h index fddc83f..c35ba5d 100644 --- a/src/tar.h +++ b/src/tar.h @@ -317,6 +317,18 @@ struct tar_stat_info bool skipped; /* The member contents is already read (for GNUTYPE_DUMPDIR) */ char *dumpdir; /* Contents of the dump directory */ + + /* Parent directory, if creating an archive. This is null if the + file is at the top level. */ + struct tar_stat_info *parent; + + /* File descriptor, if creating an archive, and if a directory or a + regular file or a contiguous file. This is AT_FDCWD if it is the + working directory, which is possible only for a dummy parent node + just above the top level. It may be -1 if the file could not be + opened. Zero represents an otherwise-uninitialized value; + standard input is never used here. */ + int fd; }; union block