diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-06-20 11:08:06 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-20 11:08:06 +0200 |
| commit | e1f3547e236671697c66e27ba02b6a151e59af04 (patch) | |
| tree | 342e3cfdc26697c7ef4c54346070dc646e3e1362 /inc/tar.h | |
| download | tar-e1f3547e236671697c66e27ba02b6a151e59af04.tar.gz tar-e1f3547e236671697c66e27ba02b6a151e59af04.tar.bz2 tar-e1f3547e236671697c66e27ba02b6a151e59af04.zip | |
Initial commit
Diffstat (limited to 'inc/tar.h')
| -rw-r--r-- | inc/tar.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/inc/tar.h b/inc/tar.h new file mode 100644 index 0000000..29bea4b --- /dev/null +++ b/inc/tar.h @@ -0,0 +1,26 @@ +#ifndef TAR_H +# define TAR_H + +# include <stdio.h> +# include <stdlib.h> +# include <stdbool.h> +# include <unistd.h> +# include <getopt.h> +# include <fcntl.h> + +// https://en.wikipedia.org/wiki/Tar_(computing)?oldformat=true#Header +typedef struct +{ + char file_name[100]; + char file_mode[8]; + char user_id[8]; + char group_id[8]; + char file_size[12]; + char last_time[12]; + char checksum[8]; + char link_indicator[1]; + char link_file_name[100]; +} t_header; + + +#endif // TAR_H |
