Get rid of par_mksquashfs directory and README

Historical directory, kept around because of limitations
in CVS.  When the repository was moved to git I could have
deleted it, but it never occurred to me to do so, having become
used to 'ignoring' the directory and treating it as if it wasn't there!

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
info: fix prototype definition

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
info: take temporary copy of "ent"

dir_ent may get updated asyncronously while using it.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
progressbar: TIOCGWINSZ ioctl fail message should use ERROR() macro

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
mksquashfs: don't need to pass oldmask into pthread_sigmask(), it's not used later

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
mksquashfs: Get rid of fragment_waiting which is unused

It has been unused since commit 49e4f287beb66a74de3857b5fba77497d9c3753a
in 2008, which replaced code which waited for fragments to be written
to disk before writing a mult-block file, with the much better
"locked fragment" queue.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: add code to implement info thread

This code adds the ability to dump the pathname of the file
being unsquashed when ^\ is hit.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: add code to dump filename when ^\ is hit

This code adds the glue code to unsquashfs to create and talk
to the info thread.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: use pthread_sigmask() instead of sigprocmask()

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: fix typos in pthread_sigmask() failure macro

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: make {disable|enable}_progress_bar contingent on progress flag

By doing this move logic of whether the progress bar is enabled
inside the functions, allowing {disable|enable}_progress_bar to
be called multiply to disable and enable the progress bar without
the caller knowing whether the progress bar is enabled or not.

Previously these functions unconditionally enabled and disabled
the progress bar with the associated logic in the caller.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: add dump_queue()

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: export a couple of functions and globals

needed for the dump_state function in the info thread.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs_info: add dump_state function and enable it

Add a dump_state function which dumps the queue state if
^\ is pressed twice within one second.

Currently only queue state is dumped, dumping of cache state will be
added later.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: rename to_deflate to to_inflate

Unsquashfs uses deflate where it should be using inflate!
This is, obviously, because unsquashfs is decompressing
buffers rather than compressing them.  This is a hang-over from
the early development of unsquashfs, where the code was initially
based on pieces from mksquashfs.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: rename deflate/deflator thread references with inflate/inflator

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: add code to track number of used buffers in cache

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: add dump_cache()

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs: export dump_cache() and a couple of cache globals

needed for the dump_state() function in the info thread.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
unsquashfs_info: add dumping of cache state to dump_state() function

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>