diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-06-22 19:48:39 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-22 19:48:39 +0200 |
| commit | d99f14c2a908b9db8d24180c9681009a4d1c0207 (patch) | |
| tree | 935d334b242e38f70ef1e503446a35f0b66e104c /inc/tar.h | |
| parent | 88ab5a5273e13066ce3f496a690f10d20a278bb4 (diff) | |
| download | tar-d99f14c2a908b9db8d24180c9681009a4d1c0207.tar.gz tar-d99f14c2a908b9db8d24180c9681009a4d1c0207.tar.bz2 tar-d99f14c2a908b9db8d24180c9681009a4d1c0207.zip | |
Added list option and verbose mode
Diffstat (limited to 'inc/tar.h')
| -rw-r--r-- | inc/tar.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -27,6 +27,7 @@ # include <grp.h> # include <pwd.h> +# include <time.h> # include <limits.h> # ifdef __linux__ @@ -91,13 +92,13 @@ int header_parse(char record[RECORD_SIZE], struct stat *statbuf, t_header *hea // fs.c int file_content_write(int fd, int file_fd, struct stat *statbuf); -int file_write(int fd, char file_name[PATH_MAX]); -int directory_write(int fd, char dir_name[PATH_MAX]); +int file_write(int fd, char file_name[PATH_MAX], bool verbose); +int directory_write(int fd, char dir_name[PATH_MAX], bool verbose); // archive.c int archive_dispatch_action(int archive_fd, t_args *args); -int archive_create(int archive_fd, char **files); -int archive_extract(int archive_fd); +int archive_create(int archive_fd, char **files, bool verbose); +int archive_extract(int archive_fd, bool verbose); int archive_get_fd(t_args *args); // record.c @@ -109,4 +110,8 @@ bool record_is_blank(char record[RECORD_SIZE]); // args.c bool args_parse(int argc, char **argv, t_args *args); +// utils.c +void put_file_name(char *file_name); +void put_file_verbose(t_header *header, struct stat *statbuf); + #endif // TAR_H |
