summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0511a55)
-diff -urN squashfs4.0/squashfs-tools/global.h squashfs4.0.new/squashfs-tools/global.h
---- squashfs4.0/squashfs-tools/global.h 2009-08-27 21:33:03.000000000 +0200
-+++ squashfs4.0.new/squashfs-tools/global.h 2009-08-27 21:36:38.000000000 +0200
-@@ -44,6 +44,11 @@
+--- a/squashfs-tools/global.h
++++ b/squashfs-tools/global.h
+@@ -44,6 +44,11 @@ typedef long long squashfs_fragment_inde
typedef squashfs_inode_t squashfs_inode;
typedef squashfs_block_t squashfs_block;
typedef squashfs_inode_t squashfs_inode;
typedef squashfs_block_t squashfs_block;
#ifndef FNM_EXTMATCH
#define FNM_EXTMATCH 0
#endif
#ifndef FNM_EXTMATCH
#define FNM_EXTMATCH 0
#endif
-diff -urN squashfs4.0/squashfs-tools/mksquashfs.c squashfs4.0.new/squashfs-tools/mksquashfs.c
---- squashfs4.0/squashfs-tools/mksquashfs.c 2009-08-27 21:33:06.000000000 +0200
-+++ squashfs4.0.new/squashfs-tools/mksquashfs.c 2009-08-27 21:37:22.000000000 +0200
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
#ifndef linux
+#ifndef __CYGWIN__
#ifndef linux
+#ifndef __CYGWIN__
#else
#include <endian.h>
#include <sys/sysinfo.h>
#else
#include <endian.h>
#include <sys/sysinfo.h>
+@@ -817,6 +819,7 @@ void sigusr1_handler()
void sigwinch_handler()
{
void sigwinch_handler()
{
struct winsize winsize;
if(ioctl(1, TIOCGWINSZ, &winsize) == -1) {
struct winsize winsize;
if(ioctl(1, TIOCGWINSZ, &winsize) == -1) {
+@@ -826,6 +829,9 @@ void sigwinch_handler()
columns = 80;
} else
columns = winsize.ws_col;
columns = 80;
} else
columns = winsize.ws_col;
+@@ -3853,7 +3859,9 @@ void initialise_threads()
BAD_ERROR("Failed to set signal mask in intialise_threads\n");
signal(SIGUSR1, sigusr1_handler);
BAD_ERROR("Failed to set signal mask in intialise_threads\n");
signal(SIGUSR1, sigusr1_handler);
if(processors == -1) {
#ifndef linux
int mib[2];
if(processors == -1) {
#ifndef linux
int mib[2];
+@@ -3875,6 +3883,7 @@ void initialise_threads()
processors = get_nprocs();
#endif
}
processors = get_nprocs();
#endif
}
if((thread = malloc((2 + processors * 2) * sizeof(pthread_t))) == NULL)
BAD_ERROR("Out of memory allocating thread descriptors\n");
if((thread = malloc((2 + processors * 2) * sizeof(pthread_t))) == NULL)
BAD_ERROR("Out of memory allocating thread descriptors\n");
-diff -urN squashfs4.0/squashfs-tools/read_fs.c squashfs4.0.new/squashfs-tools/read_fs.c
---- squashfs4.0/squashfs-tools/read_fs.c 2009-08-27 21:33:06.000000000 +0200
-+++ squashfs4.0.new/squashfs-tools/read_fs.c 2009-08-27 21:41:54.000000000 +0200
-@@ -40,9 +40,11 @@
+--- a/squashfs-tools/read_fs.c
++++ b/squashfs-tools/read_fs.c
+@@ -39,9 +39,11 @@ extern unsigned int get_guid(unsigned in
#include <sys/mman.h>
#ifndef linux
#include <sys/mman.h>
#ifndef linux
#else
#include <endian.h>
#endif
#else
#include <endian.h>
#endif
-diff -urN squashfs4.0/squashfs-tools/swap.c squashfs4.0.new/squashfs-tools/swap.c
---- squashfs4.0/squashfs-tools/swap.c 2009-03-26 05:40:16.000000000 +0100
-+++ squashfs4.0.new/squashfs-tools/swap.c 2009-08-27 21:44:52.000000000 +0200
+--- a/squashfs-tools/swap.c
++++ b/squashfs-tools/swap.c
#else
#include <endian.h>
#endif
#else
#include <endian.h>
#endif
-diff -urN squashfs4.0/squashfs-tools/unsquashfs.c squashfs4.0.new/squashfs-tools/unsquashfs.c
---- squashfs4.0/squashfs-tools/unsquashfs.c 2009-08-27 21:33:06.000000000 +0200
-+++ squashfs4.0.new/squashfs-tools/unsquashfs.c 2009-08-27 21:41:38.000000000 +0200
-@@ -111,6 +111,7 @@
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -112,6 +112,7 @@ void update_progress_bar();
void sigwinch_handler()
{
void sigwinch_handler()
{
struct winsize winsize;
if(ioctl(1, TIOCGWINSZ, &winsize) == -1) {
struct winsize winsize;
if(ioctl(1, TIOCGWINSZ, &winsize) == -1) {
+@@ -121,6 +122,9 @@ void sigwinch_handler()
columns = 80;
} else
columns = winsize.ws_col;
columns = 80;
} else
columns = winsize.ws_col;
+@@ -1787,7 +1791,9 @@ void initialise_threads(int fragment_buf
if(sigprocmask(SIG_BLOCK, &sigmask, &old_mask) == -1)
EXIT_UNSQUASH("Failed to set signal mask in intialise_threads"
"\n");
if(sigprocmask(SIG_BLOCK, &sigmask, &old_mask) == -1)
EXIT_UNSQUASH("Failed to set signal mask in intialise_threads"
"\n");
if(processors == -1) {
#ifndef linux
int mib[2];
if(processors == -1) {
#ifndef linux
int mib[2];
+@@ -1809,6 +1815,7 @@ void initialise_threads(int fragment_buf
processors = get_nprocs();
#endif
}
processors = get_nprocs();
#endif
}
if((thread = malloc((3 + processors) * sizeof(pthread_t))) == NULL)
EXIT_UNSQUASH("Out of memory allocating thread descriptors\n");
if((thread = malloc((3 + processors) * sizeof(pthread_t))) == NULL)
EXIT_UNSQUASH("Out of memory allocating thread descriptors\n");
-diff -urN squashfs4.0/squashfs-tools/unsquashfs.h squashfs4.0.new/squashfs-tools/unsquashfs.h
---- squashfs4.0/squashfs-tools/unsquashfs.h 2009-08-27 21:33:03.000000000 +0200
-+++ squashfs4.0.new/squashfs-tools/unsquashfs.h 2009-08-27 21:44:17.000000000 +0200
-@@ -46,10 +46,12 @@
+--- a/squashfs-tools/unsquashfs.h
++++ b/squashfs-tools/unsquashfs.h
+@@ -45,10 +45,12 @@
#include <sys/time.h>
#ifndef linux
#include <sys/time.h>
#ifndef linux