Marcel Nowicki
b3888cdab7
this added output of global stats to stdout
2022-02-12 01:40:57 +01:00
Marcel Nowicki
0b0759271a
this successfully implememted gz parsing.
2022-02-12 00:29:59 +01:00
Marcel Nowicki
692ab2ff85
this added OS implementation of zlib. this also prototyped extracting the first 512 bytes of a tar.gz file and displaying the content of the first 100 bytes (name of the first file in the tarball)
2022-02-11 14:53:51 +01:00
Marcel Nowicki
a80f78c36d
this added some small refinements as well as first forays in working with gz files. Added zlib.h. Checked if valid gz file via mgic number.
2022-02-11 03:28:13 +01:00
Marcel Nowicki
0114829d5b
this added output to text file and proper parsing of command line arguments. this also cleaned up some more stuff.
2022-02-10 23:08:59 +01:00
Marcel Nowicki
bf6f224a23
this put console output into its own function
2022-02-10 21:18:44 +01:00
Marcel Nowicki
3b2e3aa2ff
this cleaned up functions and global constants and hid them away in to their header and source files
2022-02-10 20:45:09 +01:00
Marcel Nowicki
2af7cf5adf
this added a check if the given file is a valid tar by checking the magic field for ustar
...
this also cleaned up some stringliterals.
2022-02-10 19:24:38 +01:00
Marcel Nowicki
4b69dee55d
this added proper return statements when a file could not be read.
2022-02-09 22:22:03 +01:00
Marcel Nowicki
f1f60f3001
this added a first rough version of a stat printout
2022-02-09 22:19:08 +01:00
Marcel Nowicki
e3d451edcc
this added a help and usage message
2022-02-09 21:59:52 +01:00
Marcel Nowicki
3c3306f395
Tarstats-pp #1 Prototyping: Parse all items of a tarball
2022-02-09 21:15:15 +01:00
Marcel Nowicki
53eac32e70
Tarstats-pp-1 Prototyping: Parse all items of a tarball
...
- no loop yet. jumped to second item and parsed it's header.
#2
2022-02-07 21:52:48 +01:00
Marcel Nowicki
d916b9cbe3
Tarstats-pp-1 Prototyping: Parse all items of a tarball
...
- no loop yet. jumped to second item and parsed it's header.
2022-02-07 21:46:03 +01:00
Marcel Nowicki
b985fc0c8f
Tarstats-pp-1 Prototyping: Parse all items of a tarball
...
- no loop yet. jumped to second item and parsed it's header.
2022-02-07 21:43:46 +01:00
Marcel Nowicki
2bbfa75a7e
Some git cleanup cleanup
2022-02-06 22:12:14 +01:00
Marcel Nowicki
3cedfc5b27
Prototyping:
...
- Opening a GNU Tar file via comand line argument
- Parse itemname, itemtype and itemsize in bytes of first item in Tar archive
- Print those to stdout.
2022-02-06 13:27:36 +01:00
Marcel Nowicki
529497fe54
- renamed variables for headerbuffer and headersize
2022-02-05 00:15:21 +01:00
Marcel Nowicki
5c1e55fd0b
- success: open tarball
...
- success: read name of first file in archive and print it
2022-02-05 00:06:31 +01:00
Marcel Nowicki
13e1a20daa
- success: open tarball
...
- success: read name of first file in archive and print it
2022-02-05 00:01:25 +01:00
Marcel Nowicki
3b287422fa
Erste Versuche, Problem: tar öffnet nicht
2022-02-04 19:00:29 +01:00
Marcel Nowicki
178989fc78
Initial commit
2022-02-04 18:33:02 +01:00