src/xml.c \
src/xpress_compress.c \
src/xpress_decompress.c \
+ include/wimlib/alloca.h \
include/wimlib/apply.h \
include/wimlib/assert.h \
include/wimlib/avl_tree.h \
#include <stdbool.h>
#include <stddef.h>
-#include <inttypes.h> /* for uintptr_t */
+#include <stdint.h> /* for uintptr_t */
#ifdef __GNUC__
# define AVL_INLINE inline __attribute__((always_inline))
#define _WIMLIB_DECOMPRESS_COMMON_H
#include "wimlib/compiler.h"
-#include "wimlib/endianness.h"
#include "wimlib/types.h"
#include "wimlib/unaligned.h"
#ifndef _WIMLIB_ENCODING_H
#define _WIMLIB_ENCODING_H
+#include <string.h>
+
#include "wimlib/error.h"
#include "wimlib/util.h"
#include "wimlib/types.h"
-#include <string.h>
-
extern void
iconv_global_init(void);
#ifndef _WIMLIB_FILE_IO_H
#define _WIMLIB_FILE_IO_H
+#include <stdbool.h>
#include <stddef.h>
#include <sys/types.h>
-#include <stdbool.h>
/* Wrapper around a file descriptor that keeps track of offset (including in
* pipes, which don't support lseek()) and a cached flag that tells whether the
#ifndef __WIN32__
# include <glob.h>
#else
-
-#include <wchar.h>
#include <stddef.h>
+#include <wchar.h>
typedef struct {
size_t gl_pathc;
#ifndef _WIMLIB_HEADER_H
#define _WIMLIB_HEADER_H
+#include <limits.h>
+
#include "wimlib/resource.h"
#include "wimlib/types.h"
-#include <limits.h>
-
/* Length of "Globally Unique ID" field in WIM header. */
#define WIM_GUID_LEN 16
#ifndef _WIMLIB_INTEGRITY_H
#define _WIMLIB_INTEGRITY_H
-#include "wimlib/types.h"
#include <sys/types.h>
+#include "wimlib/types.h"
+
#define WIM_INTEGRITY_OK 0
#define WIM_INTEGRITY_NOT_OK -1
#define WIM_INTEGRITY_NONEXISTENT -2
#include "wimlib/lz_mf.h"
-extern const struct lz_mf_ops lz_null_ops;
-extern const struct lz_mf_ops lz_hash_chains_ops;
-extern const struct lz_mf_ops lz_binary_trees_ops;
extern const struct lz_mf_ops lz_lcp_interval_tree_ops;
extern const struct lz_mf_ops lz_linked_suffix_array_ops;
#ifndef _MATCHFINDER_COMMON_H
#define _MATCHFINDER_COMMON_H
-#include "wimlib/types.h"
-
#include <string.h>
+#include "wimlib/types.h"
+
#ifndef MATCHFINDER_MAX_WINDOW_ORDER
# error "MATCHFINDER_MAX_WINDOW_ORDER must be defined!"
#endif
#ifndef _WIMLIB_SHA1_H
#define _WIMLIB_SHA1_H
+#include <string.h>
+
#include "wimlib/types.h"
#include "wimlib/util.h"
-#include <string.h>
-
#define SHA1_HASH_SIZE 20
extern const u8 zero_hash[SHA1_HASH_SIZE];
#ifndef _WIMLIB_TYPES_H
#define _WIMLIB_TYPES_H
-#include "wimlib_tchar.h"
-#include "wimlib/compiler.h"
-
#include <inttypes.h>
#include <stdbool.h>
#include <stddef.h>
+#include "wimlib_tchar.h"
+#include "wimlib/compiler.h"
+
#ifndef _NTFS_TYPES_H
/* Unsigned integer types of exact size in bits */
typedef uint8_t u8;
#ifndef _WIMBOOT_H_
#define _WIMBOOT_H_
-#include "wimlib/win32_common.h"
+#include "wimlib/header.h"
#include "wimlib/sha1.h"
#include "wimlib/types.h"
-#include "wimlib/header.h"
+#include "wimlib/win32_common.h"
struct wim_lookup_table_entry;
#ifndef _WIMLIB_WIN32_COMMON_H
#define _WIMLIB_WIN32_COMMON_H
+#include <ntstatus.h>
#include <windows.h>
+#include <winternl.h>
+
#ifdef ERROR
# undef ERROR
#endif
-
#include "wimlib/types.h"
#include "wimlib/win32.h"
-#include <ntstatus.h>
-#include <winternl.h>
-
extern void
set_errno_from_GetLastError(void);
#ifndef _WOF_H_
#define _WOF_H_
-#include "wimlib/types.h"
#include "wimlib/compiler.h"
+#include "wimlib/types.h"
#define WOF_CURRENT_VERSION 1
#define WOF_PROVIDER_WIM 1
#define _WIMLIB_XML_H
#include "wimlib/types.h"
-#include "wimlib/file_io.h"
struct wim_info;
struct wim_reshdr;
void (*free_func)(void *),
void *(*realloc_func)(void *, size_t));
-#endif
+#endif /* _WIMLIB_XML_H */
# include "config.h"
#endif
+#include <string.h>
+
#include "wimlib/capture.h"
#include "wimlib/dentry.h"
#include "wimlib/error.h"
#include "wimlib/textfile.h"
#include "wimlib/wildcard.h"
-#include <string.h>
-
/*
* Tally a file (or directory) that has been scanned for a capture operation,
* and possibly call the progress function provided by the library user.
# include "config.h"
#endif
+#include <stdlib.h>
+#include <string.h>
+
#include "wimlib.h"
#include "wimlib/error.h"
#include "wimlib/compressor_ops.h"
#include "wimlib/util.h"
-#include <stdlib.h>
-#include <string.h>
-
struct wimlib_compressor {
const struct compressor_ops *ops;
void *private;
# include "config.h"
#endif
+#include <string.h>
+
#include "wimlib/compress_common.h"
#include "wimlib/util.h"
-#include <string.h>
-
/* Given the binary tree node A[subtree_idx] whose children already
* satisfy the maxheap property, swap the node with its greater child
* until it is greater than both its children, so that the maxheap
#ifdef ENABLE_MULTITHREADED_COMPRESSION
-#include "wimlib/assert.h"
-#include "wimlib/chunk_compressor.h"
-#include "wimlib/error.h"
-#include "wimlib/list.h"
-#include "wimlib/util.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* win32_get_number_of_processors() */
-#endif
-
#include <errno.h>
#include <limits.h>
#include <pthread.h>
# include <sys/sysctl.h>
#endif
+#include "wimlib/assert.h"
+#include "wimlib/chunk_compressor.h"
+#include "wimlib/error.h"
+#include "wimlib/list.h"
+#include "wimlib/util.h"
+#ifdef __WIN32__
+# include "wimlib/win32.h" /* win32_get_number_of_processors() */
+#endif
+
struct message_queue {
struct list_head list;
pthread_mutex_t lock;
# include "config.h"
#endif
+#include <string.h>
+
#include "wimlib.h"
#include "wimlib/assert.h"
#include "wimlib/chunk_compressor.h"
#include "wimlib/util.h"
-#include <string.h>
-
struct serial_chunk_compressor {
struct chunk_compressor base;
struct wimlib_compressor *compressor;
# include "config.h"
#endif
+#include <errno.h>
+
#include "wimlib/assert.h"
#include "wimlib/dentry.h"
#include "wimlib/inode.h"
#include "wimlib/metadata.h"
#include "wimlib/paths.h"
-#include <errno.h>
-
/* On-disk format of a WIM dentry (directory entry), located in the metadata
* resource for a WIM image. */
struct wim_dentry_on_disk {
# include "config.h"
#endif
+#include <errno.h>
+#include <iconv.h>
+#include <pthread.h>
+#include <string.h>
+
#include "wimlib.h"
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/encoding.h"
#include "wimlib/endianness.h"
#include "wimlib/list.h"
#include "wimlib/util.h"
-#include <errno.h>
-#include <iconv.h>
-#include <pthread.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#endif
bool wimlib_mbs_is_utf8 = !TCHAR_IS_UTF16LE;
# include "config.h"
#endif
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include "wimlib/apply.h"
#include "wimlib/assert.h"
#include "wimlib/dentry.h"
#include "wimlib/wildcard.h"
#include "wimlib/wim.h"
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
#define WIMLIB_EXTRACT_FLAG_FROM_PIPE 0x80000000
#define WIMLIB_EXTRACT_FLAG_IMAGEMODE 0x40000000
# include "config.h"
#endif
+#include <errno.h>
+#include <unistd.h>
+
#include "wimlib/error.h"
#include "wimlib/file_io.h"
#include "wimlib/util.h"
# include "wimlib/win32.h" /* For pread(), pwrite() replacements */
#endif
-#include <errno.h>
-#include <unistd.h>
-
-
/* Wrapper around read() that checks for errors keeps retrying until all
* requested bytes have been read or until end-of file has occurred.
*
# include "config.h"
#endif
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
#include "wimlib.h"
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/endianness.h"
#include "wimlib/error.h"
#include "wimlib/util.h"
#include "wimlib/wim.h"
-#include <limits.h>
-#include <string.h>
-#include <unistd.h>
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#else
-# include <stdlib.h>
-#endif
-
/*
* Reads the header from a WIM file.
*
# include "config.h"
#endif
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h> /* for unlink() */
+
#include "wimlib/assert.h"
#include "wimlib/endianness.h"
#include "wimlib/error.h"
#include "wimlib/util.h"
#include "wimlib/write.h"
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h> /* for unlink() */
-
/* WIM lookup table:
*
* This is a logical mapping from SHA1 message digests to the data streams
# include "config.h"
#endif
-#include "wimlib/endianness.h"
#include "wimlib/lzms_common.h"
#include "wimlib/unaligned.h"
# include "config.h"
#endif
+#include <limits.h>
+#include <pthread.h>
+#include <string.h>
+
#include "wimlib/compress_common.h"
#include "wimlib/compressor_ops.h"
#include "wimlib/endianness.h"
#include "wimlib/unaligned.h"
#include "wimlib/util.h"
-#include <string.h>
-#include <limits.h>
-#include <pthread.h>
-
/* Stucture used for writing raw bits as a series of 16-bit little endian coding
* units. This starts at the *end* of the compressed data buffer and proceeds
* backwards. */
#endif
#include "wimlib/compress_common.h"
-#include "wimlib/decompressor_ops.h"
#include "wimlib/decompress_common.h"
+#include "wimlib/decompressor_ops.h"
#include "wimlib/error.h"
#include "wimlib/lzms_common.h"
#include "wimlib/util.h"
#include <string.h>
-#include "wimlib/bitops.h"
-#include "wimlib/endianness.h"
-#include "wimlib/lzx_common.h"
-#include "wimlib/unaligned.h"
-#include "wimlib/util.h"
-
#ifdef __SSE2__
# include <emmintrin.h>
#endif
# include <immintrin.h>
#endif
+#include "wimlib/bitops.h"
+#include "wimlib/endianness.h"
+#include "wimlib/lzx_common.h"
+#include "wimlib/unaligned.h"
+#include "wimlib/util.h"
+
/* Mapping: offset slot => first match offset that uses that offset slot.
*/
const u32 lzx_offset_slot_base[LZX_MAX_OFFSET_SLOTS + 1] = {
# include "config.h"
#endif
+#include <string.h>
+
#include "wimlib/decompressor_ops.h"
#include "wimlib/decompress_common.h"
#include "wimlib/error.h"
#include "wimlib/lzx_common.h"
#include "wimlib/util.h"
-#include <string.h>
-
/* These values are chosen for fast decompression. */
#define LZX_MAINCODE_TABLEBITS 11
#define LZX_LENCODE_TABLEBITS 10
# error "FUSE mount not supported on Windows! Please configure --without-fuse"
#endif
-#include "wimlib/dentry.h"
-#include "wimlib/encoding.h"
-#include "wimlib/lookup_table.h"
-#include "wimlib/metadata.h"
-#include "wimlib/paths.h"
-#include "wimlib/progress.h"
-#include "wimlib/reparse.h"
-#include "wimlib/timestamp.h"
-#include "wimlib/unix_data.h"
-#include "wimlib/write.h"
-#include "wimlib/xml.h"
+#define FUSE_USE_VERSION 26
+#include <attr/xattr.h>
#include <dirent.h>
#include <errno.h>
+#include <fuse.h>
#include <limits.h>
#include <mqueue.h>
#include <pthread.h>
#include <unistd.h>
#include <utime.h>
-#define FUSE_USE_VERSION 26
-#include <fuse.h>
-#include <attr/xattr.h>
+#include "wimlib/dentry.h"
+#include "wimlib/encoding.h"
+#include "wimlib/lookup_table.h"
+#include "wimlib/metadata.h"
+#include "wimlib/paths.h"
+#include "wimlib/progress.h"
+#include "wimlib/reparse.h"
+#include "wimlib/timestamp.h"
+#include "wimlib/unix_data.h"
+#include "wimlib/write.h"
+#include "wimlib/xml.h"
#ifndef O_NOFOLLOW
# define O_NOFOLLOW 0 /* Security only... */
#ifdef WITH_NTFS_3G
#include <errno.h>
-#include <stdlib.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#endif
#include <ntfs-3g/attrib.h>
#include <ntfs-3g/reparse.h>
#include <ntfs-3g/security.h>
#include <ntfs-3g/volume.h>
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/capture.h"
#include "wimlib/dentry.h"
# include "config.h"
#endif
+#include <string.h>
+
#include "wimlib.h"
#include "wimlib/paths.h"
#include "wimlib/util.h"
-#include <string.h>
-
/* Like the basename() function, but does not modify @path; it just returns a
* pointer to it. This assumes the path separator is the
* OS_PREFERRED_PATH_SEPARATOR. */
# include "config.h"
#endif
+#include <string.h>
+
#include "wimlib/progress.h"
int
# include "config.h"
#endif
+#include <errno.h>
+
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/compiler.h"
#include "wimlib/endianness.h"
#include "wimlib/reparse.h"
#include "wimlib/resource.h"
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#endif
-#include <errno.h>
-#include <stdlib.h>
-
/*
* Read the data from a symbolic link, junction, or mount point reparse point
* buffer into a `struct reparse_data'.
# include "config.h"
#endif
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/bitops.h"
#include "wimlib/endianness.h"
# include "wimlib/ntfs_3g.h"
#endif
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#endif
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
/*
* Compressed WIM resources
#endif
#include "wimlib.h"
+#include "wimlib/alloca.h"
#include "wimlib/error.h"
#include "wimlib/list.h"
#include "wimlib/lookup_table.h"
#include "wimlib/wim.h"
#include "wimlib/write.h"
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#else
-# include <stdlib.h>
-#endif
-
struct swm_part_info {
struct list_head stream_list;
u64 size;
# include "config.h"
#endif
-#include "wimlib/encoding.h"
-#include "wimlib/error.h"
-#include "wimlib/file_io.h"
-#include "wimlib/textfile.h"
-#include "wimlib/util.h"
-
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "wimlib/encoding.h"
+#include "wimlib/error.h"
+#include "wimlib/file_io.h"
+#include "wimlib/textfile.h"
+#include "wimlib/util.h"
+
static int
read_file_contents(const tchar *path, void **buf_ret, size_t *bufsize_ret)
{
# include "config.h"
#endif
+#include <errno.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#include "wimlib/apply.h"
#include "wimlib/assert.h"
#include "wimlib/dentry.h"
#include "wimlib/timestamp.h"
#include "wimlib/unix_data.h"
-#include <errno.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <unistd.h>
-
/* We don't require O_NOFOLLOW, but the advantage of having it is that if we
* need to extract a file to a location at which there exists a symbolic link,
* open(..., O_NOFOLLOW | ...) recognizes the symbolic link rather than
# include "config.h"
#endif
+#include <errno.h>
+#include <string.h>
+#include <sys/stat.h>
+
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/capture.h"
#include "wimlib/dentry.h"
#include "wimlib/progress.h"
#include "wimlib/xml.h"
-#include <errno.h>
-#include <sys/stat.h>
-#include <stdlib.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#endif
-
/* Saved specification of a "primitive" update operation that was performed. */
struct update_primitive {
enum {
#endif
#include <ctype.h>
+
#include "wimlib/dentry.h"
#include "wimlib/encoding.h"
#include "wimlib/error.h"
# include "config.h"
#endif
+#include <errno.h>
+#include <fcntl.h>
+#ifndef __WIN32__
+# include <langinfo.h>
+#endif
+#include <stdlib.h>
+#include <unistd.h>
+
#include "wimlib.h"
#include "wimlib/assert.h"
#include "wimlib/bitops.h"
#include "wimlib/security.h"
#include "wimlib/wim.h"
#include "wimlib/xml.h"
-
#ifdef __WIN32__
# include "wimlib/win32.h" /* for realpath() replacement */
#endif
-#include <errno.h>
-#include <fcntl.h>
-#ifndef __WIN32__
-# include <langinfo.h>
-#endif
-#include <stdlib.h>
-#include <unistd.h>
-
static int
wim_default_pack_compression_type(void)
{
#endif
#include "wimlib/win32_common.h"
-#include "wimlib/win32.h"
+
#include "wimlib/assert.h"
#include "wimlib/error.h"
#include "wimlib/lookup_table.h"
#include "wimlib/util.h"
#include "wimlib/wimboot.h"
+#include "wimlib/win32.h"
#include "wimlib/wof.h"
static HANDLE
# include "config.h"
#endif
+#include <errno.h>
+
#include "wimlib/win32_common.h"
#include "wimlib/assert.h"
#include "wimlib/paths.h"
#include "wimlib/reparse.h"
-#include <errno.h>
-
struct winnt_scan_stats {
unsigned long num_get_sd_access_denied;
unsigned long num_get_sacl_priv_notheld;
#include <errno.h>
#include "wimlib/win32_common.h"
+
#include "wimlib/error.h"
#include "wimlib/util.h"
# include <sys/file.h>
#endif
+#include <errno.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+#include "wimlib/alloca.h"
#include "wimlib/assert.h"
#include "wimlib/chunk_compressor.h"
#include "wimlib/endianness.h"
#include "wimlib/write.h"
#include "wimlib/xml.h"
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
-#endif
/* wimlib internal flags used when writing resources. */
#define WRITE_RESOURCE_FLAG_RECOMPRESS 0x00000001
# include "config.h"
#endif
+#include <libxml/encoding.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
+#include <libxml/xmlwriter.h>
+#include <string.h>
+
#include "wimlib/assert.h"
#include "wimlib/dentry.h"
#include "wimlib/encoding.h"
#include "wimlib/xml.h"
#include "wimlib/write.h"
-#include <libxml/encoding.h>
-#include <libxml/parser.h>
-#include <libxml/tree.h>
-#include <libxml/xmlwriter.h>
-#include <limits.h>
-#include <string.h>
-#include <unistd.h>
-
/* Structures used to form an in-memory representation of the XML data (other
* than the raw parse tree from libxml). */