Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bff/bff_huffman_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define PACK_HEADER_LENGTH 1
#define HTREE_MAXLEVEL 24

Expand Down
1 change: 1 addition & 0 deletions src/cramfs-2.x/mkcramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <string.h>
#include <stdarg.h>
#include <linux/cramfs_fs.h>
#include <sys/sysmacros.h>
#include <zlib.h>

/* Exit codes used by mkfs-type programs */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <dirent.h>
#include <string.h>
#include <zlib.h>
#include <sys/sysmacros.h>
#ifdef __MACOSX__
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-2.0-nb4/nb4-unsquashfs/nb4-unsquash.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <time.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#if defined(__GNUC__) && !defined(__MACOSX__)
#include <endian.h>
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-2.2-r2-7z/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <signal.h>
#include <setjmp.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-2.2-r2-7z/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.0-e2100/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <signal.h>
#include <setjmp.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.0-e2100/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <sys/mman.h>
#include <pthread.h>
#include <math.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include "global.h"
#include "sqlzma.h"
#include "sqmagic.h"
#include <sys/sysmacros.h>

#include <stdlib.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <sys/mman.h>
#include <pthread.h>
#include <math.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include "global.h"
#include "sqlzma.h"
#include "sqmagic.h"
#include <sys/sysmacros.h>

#include <stdlib.h>

Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.2-r2-rtn12/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <sys/mman.h>
#include <pthread.h>
#include <math.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.2-r2-rtn12/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.2-r2-wnr1000/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <sys/mman.h>
#include <pthread.h>
#include <math.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.2-r2-wnr1000/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.2-r2/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <sys/mman.h>
#include <pthread.h>
#include <math.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.2-r2/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <math.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <time.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <math.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <time.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.3/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <math.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.3/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <time.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <math.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#include "LzmaEnc.h"
#include "Alloc.h"
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-3.4-cisco/squashfs-tools/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <math.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <math.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <math.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/sysmacros.h>

#include <sys/sysctl.h>

Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.0-lzma/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <math.h>
#include <regex.h>
#include <fnmatch.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.0-lzma/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* unsquashfs.c
*/

#include <sys/sysmacros.h>
#include "unsquashfs.h"
#include "squashfs_swap.h"
#include "squashfs_compat.h"
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.0-realtek/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <regex.h>
#include <fnmatch.h>
#include <sys/wait.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.0-realtek/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* unsquashfs.c
*/

#include <sys/sysmacros.h>
#include "unsquashfs.h"
#include "squashfs_swap.h"
#include "squashfs_compat.h"
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.2-official/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <regex.h>
#include <fnmatch.h>
#include <sys/wait.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.2-official/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* unsquashfs.c
*/

#include <sys/sysmacros.h>
#include "unsquashfs.h"
#include "squashfs_swap.h"
#include "squashfs_compat.h"
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.2/squashfs-tools/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <regex.h>
#include <fnmatch.h>
#include <sys/wait.h>
#include <sys/sysmacros.h>

#ifndef linux
#ifndef __CYGWIN__
Expand Down
1 change: 1 addition & 0 deletions src/others/squashfs-4.2/squashfs-tools/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* unsquashfs.c
*/

#include <sys/sysmacros.h>
#include "unsquashfs.h"
#include "squashfs_swap.h"
#include "squashfs_compat.h"
Expand Down
1 change: 1 addition & 0 deletions src/squashfs-2.1-r2/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <signal.h>
#include <setjmp.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>

#include "mksquashfs.h"
#include <squashfs_fs.h>
Expand Down
2 changes: 2 additions & 0 deletions src/squashfs-2.1-r2/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/squashfs-3.0-lzma-damn-small-variant/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <signal.h>
#include <setjmp.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
2 changes: 2 additions & 0 deletions src/squashfs-3.0-lzma-damn-small-variant/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#include <string.h>
#include <zlib.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/squashfs-3.0/mksquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <signal.h>
#include <setjmp.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>

/* jc */
//#define SQUASHFS_TRACE
Expand Down
1 change: 1 addition & 0 deletions src/squashfs-3.0/unsquashfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <zlib.h>
#include <sys/mman.h>
#include <utime.h>
#include <sys/sysmacros.h>

#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
Expand Down
1 change: 1 addition & 0 deletions src/uncramfs-lzma/lzma-uncramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/fcntl.h>
#include <sys/sysmacros.h>
#include <stdlib.h>

// Application libraries
Expand Down
3 changes: 2 additions & 1 deletion src/uncramfs/uncramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// C things
#include <stdio.h>
//#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

Expand All @@ -21,6 +21,7 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/fcntl.h>
#include <sys/sysmacros.h>

// Application libraries
#include <zlib.h>
Expand Down