Structs§
- Sqsh
Archive - The Sqsh struct contains all information about the current sqsh session.
- Sqsh
Compression Options - Sqsh
Config - The SqshConfig struct contains all the configuration options for a sqsh session.
- Sqsh
Directory Iterator - iterator/directory_iterator.c
- Sqsh
Error - Error codes for sqsh.
- Sqsh
Export Table - table/export_table.c
- Sqsh
File - Sqsh
File Iterator - file/file_iterator.c
- Sqsh
File Reader - The file reader allows to read user defined byte ranges from a file inside of a SqshArchive.
- Sqsh
File Type - enum that represents the file type.
- Sqsh
Fragment Table - Sqsh
Gzip Strategies - definitions of gzip strategies
- Sqsh
IdTable - table/id_table.c
- Sqsh
Inode Map - Sqsh
Lz4Flags - definitions of lz4 flags
- Sqsh
LzoAlgorithm - definitions of Lzo algorithms
- Sqsh
MapManager - Sqsh
Mapper - mapper/mapper.c
- Sqsh
Memory Mapper Impl - The implementation of a memory mapper.
- Sqsh
Path Resolver - tree/path_resolver.c
- Sqsh
Superblock - archive/superblock_context.c
- Sqsh
Superblock Compression Id - The compression used in the archive.
- Sqsh
Superblock Flags - The flags used in the superblock.
- Sqsh
Table - table/table.c
- Sqsh
Trailing Context - archive/trailing_context.c
- Sqsh
Tree Traversal - Sqsh
Tree Traversal State - The state of the tree traversal.
- Sqsh
Tree Walker - tree/walker.c
- Sqsh
Xattr Iterator - xattr/xattr_iterator.c
- Sqsh
Xattr Table - Sqsh
Xattr Type - The type of an external attribute.
- Sqsh
XzFilters - definitions xz filters
Constants§
Statics§
- sqsh_
mapper_ ⚠impl_ curl - a mapper that uses curl to download the file.
- sqsh_
mapper_ ⚠impl_ mmap - a mapper that uses mmap to map the file into memory.
- sqsh_
mapper_ ⚠impl_ static - a mapper that uses a static buffer.
Functions§
- sqsh_
archive_ ⚠close - Frees the resources used by a Sqsh instance.
- sqsh_
archive_ ⚠config - sqsh_superblock returns the configuration object of the archive context.
- sqsh_
archive_ ⚠export_ table - Retrieves the export table of a Sqsh instance.
- sqsh_
archive_ ⚠fragment_ table - Retrieves the fragment table of a Sqsh instance.
- sqsh_
archive_ ⚠id_ table - Retrieves the id table of a Sqsh instance.
- sqsh_
archive_ ⚠inode_ map - Retrieves the export table of a Sqsh instance.
- sqsh_
archive_ ⚠map_ manager - sqsh_mapper returns the map manager to retrieve chunks of the archive file.
- sqsh_
archive_ ⚠open - initializes a archive context in heap.
- sqsh_
archive_ ⚠superblock - sqsh_superblock returns the superblock context.
- sqsh_
archive_ ⚠xattr_ table - Retrieves the xattr table of a Sqsh instance.
- sqsh_
close ⚠ - cleans up an file context and frees the memory.
- sqsh_
compression_ ⚠options_ free - Frees a SqshCompressionOptions struct.
- sqsh_
compression_ ⚠options_ gzip_ compression_ level - returns the compression level of gzip
- sqsh_
compression_ ⚠options_ gzip_ strategies - returns the compression strategy of gzip
- sqsh_
compression_ ⚠options_ gzip_ window_ size - returns the compression window size of gzip
- sqsh_
compression_ ⚠options_ lz4_ flags - returns the flags of lz4
- sqsh_
compression_ ⚠options_ lz4_ version - returns the version of lz4 used
- sqsh_
compression_ ⚠options_ lzo_ algorithm - returns the algorithm of lzo
- sqsh_
compression_ ⚠options_ lzo_ compression_ level - returns the compression level of lzo
- sqsh_
compression_ ⚠options_ new - Initializes a SqshCompressionOptions struct.
- sqsh_
compression_ ⚠options_ size - returns the size of the compression options struct
- sqsh_
compression_ ⚠options_ xz_ dictionary_ size - returns the dictionary size of xz
- sqsh_
compression_ ⚠options_ xz_ filters - returns the compression options of xz
- sqsh_
compression_ ⚠options_ zstd_ compression_ level - returns the compression level of zstd
- sqsh_
directory_ ⚠iterator_ file_ type - Retrieves the inode type of the current entry.
- sqsh_
directory_ ⚠iterator_ free - Frees the resources used by a directory iterator.
- sqsh_
directory_ ⚠iterator_ inode - Retrieves the inode number of the current entry.
- sqsh_
directory_ ⚠iterator_ inode_ number Deprecated - Since 1.2.0. Use sqsh_directory_iterator_inode() instead.
- sqsh_
directory_ ⚠iterator_ inode_ ref - Retrieves the inode reference of the current entry.
- sqsh_
directory_ ⚠iterator_ lookup - Looks up an entry by name.
- sqsh_
directory_ ⚠iterator_ name Deprecated - Since 1.3.0. Use sqsh_directory_iterator_name2() instead.
- sqsh_
directory_ ⚠iterator_ name2 - Retrieves the name of the current entry.
- sqsh_
directory_ ⚠iterator_ name_ dup - creates a heap allocated copy of the name of the current entry.
- sqsh_
directory_ ⚠iterator_ name_ size Deprecated - Since 1.3.0. Use sqsh_directory_iterator_name2() instead.
- sqsh_
directory_ ⚠iterator_ new - Allocates and initializes a new directory iterator.
- sqsh_
directory_ ⚠iterator_ next - Advances the iterator to the next entry.
- sqsh_
directory_ ⚠iterator_ open_ file - Loads the inode of the current entry.
- sqsh_
easy_ ⚠directory_ list - retrieves the contents of a directory as a list of file names
- sqsh_
easy_ ⚠directory_ list_ path - retrieves the contents of a directory as a list of file paths
- sqsh_
easy_ ⚠file_ content - retrieves the content of a file.
- sqsh_
easy_ ⚠file_ exists - checks if a file exists.
- sqsh_
easy_ ⚠file_ mtime - retrieves the modification time of a file.
- sqsh_
easy_ ⚠file_ permission - retrieves unix permissions of a file.
- sqsh_
easy_ ⚠file_ size - retrieves the size of a file.
- sqsh_
easy_ ⚠tree_ traversal - easy/traversal.c
- sqsh_
easy_ ⚠xattr_ get - retrieves the value of a xattr key of a file or directory.
- sqsh_
easy_ ⚠xattr_ keys - retrieves all xattr keys of a file or directory.
- sqsh_
error_ ⚠str - Get the error message for the given error code.
- sqsh_
export_ ⚠table_ resolve_ inode - Retrieves an element from the table.
- sqsh_
file_ ⚠block_ count - Getter for the amount of blocks of the file content. This is only internally used and will be used while retrieving the file content.
- sqsh_
file_ ⚠block_ is_ compressed - Checks whether a certain block is compressed.
- sqsh_
file_ ⚠block_ size - Getter the size of a block of the file content. This is only internally used and will be used while retrieving the file content.
- sqsh_
file_ ⚠blocks_ start - Getter for the start block of the file content. This is only internally used and will be used while retrieving the file content.
- sqsh_
file_ ⚠device_ id - returns the device id of the device inode.
- sqsh_
file_ ⚠directory_ block_ offset Deprecated - Since 1.3.0. Use sqsh_file_directory_block_offset2() instead.
- sqsh_
file_ ⚠directory_ block_ offset2 - retrieve the directory block offset. This is only internally used and will be used while iterating over the directory entries.
- sqsh_
file_ ⚠directory_ block_ start - retrieve the directory block start. This is only internally used and will be used while iterating over the directory entries.
- sqsh_
file_ ⚠directory_ parent_ inode - retrieve the parent inode of the directory.
- sqsh_
file_ ⚠fragment_ block_ index - retrieve the fragment block index. This is only internally used
- sqsh_
file_ ⚠fragment_ block_ offset - retrieve the fragment block offset. This is only internally used and will be used while retrieving the file content.
- sqsh_
file_ ⚠gid - returns the owner group id of the file.
- sqsh_
file_ ⚠hard_ link_ count - Getter for the inode hard link count.
- sqsh_
file_ ⚠has_ fragment - returns true if the file has a fragment block.
- sqsh_
file_ ⚠inode - Getter for the inode number.
- sqsh_
file_ ⚠inode_ ref - returns the inode reference to this file.
- sqsh_
file_ ⚠is_ extended - returns whether the file is an extended structure.
- sqsh_
file_ ⚠iterator_ block_ size - Returns the block size of the file iterator.
- sqsh_
file_ ⚠iterator_ data - Gets a pointer to the current data in the file iterator.
- sqsh_
file_ ⚠iterator_ free - Frees the resources used by a SqshFileIterator struct.
- sqsh_
file_ ⚠iterator_ new - Creates a new SqshFileIterator struct and initializes it.
- sqsh_
file_ ⚠iterator_ next - Reads a certain amount of data from the file iterator.
- sqsh_
file_ ⚠iterator_ size - Gets the size of the data currently in the file iterator.
- sqsh_
file_ ⚠iterator_ skip - Skips blocks until the block containing the offset is reached. Note that calling this function will invalidate the data pointer returned by sqsh_file_iterator_data().
- sqsh_
file_ ⚠modified_ time - Getter for the file modification time in seconds since epoch.
- sqsh_
file_ ⚠permission - Getter for the permissions of the file.
- sqsh_
file_ ⚠reader_ advance - Advances the file reader by a certain amount of data and presents
sizebytes of data to the user. - sqsh_
file_ ⚠reader_ data - Gets a pointer to the current data in the file reader.
- sqsh_
file_ ⚠reader_ free - Cleans up resources used by a SqshFileReader struct.
- sqsh_
file_ ⚠reader_ new - Initializes a SqshFileReader struct.
- sqsh_
file_ ⚠reader_ size - Gets the size of the current data in the file reader.
- sqsh_
file_ ⚠size - Getter for the file size. 0 if the file has no size.
- sqsh_
file_ ⚠symlink - returns the target of a symbolic link. Be aware that the returned value is not zero terminated.
- sqsh_
file_ ⚠symlink_ dup - creates a heap allocated copy of the target of a symbolic link.
- sqsh_
file_ ⚠symlink_ resolve - resolves the symlink target. After calling this function the file is in place changed to the target of the symlink.
- sqsh_
file_ ⚠symlink_ resolve_ all - resolves all symlink target targets until a file is hit. This function is similar to sqsh_file_symlink_resolve() but resolves symlinks recursively until a file is hit.
- sqsh_
file_ ⚠symlink_ size - returns the length of the target of a symbolic link in bytes.
- sqsh_
file_ ⚠to_ stream - writes data to a file descriptor.
- sqsh_
file_ ⚠type - returns the type of the file.
- sqsh_
file_ ⚠uid - returns the owner user id of the file.
- sqsh_
file_ ⚠xattr_ index - returns index of the extended attribute inside of the xattr table.
- sqsh_
id_ ⚠table_ get - Retrieves an element from the table.
- sqsh_
inode_ ⚠map_ get Deprecated - Since 1.2.0. Use sqsh_inode_map_get2() instead.
- sqsh_
inode_ ⚠map_ get2 - Gets the inode reference for a given inode number.
- sqsh_
inode_ ⚠map_ set Deprecated - Since 1.2.0. Use sqsh_inode_map_set2() instead.
- sqsh_
inode_ ⚠map_ set2 - Sets the inode reference for a given inode number.
- sqsh_
lopen ⚠ - Initialize the file context from a path. This function is identical to
sqsh_open()but if the path is a symlink, the symlink target not resolved. - sqsh_
mapper_ ⚠block_ size - INTERNAL API
- sqsh_
mapper_ ⚠set_ user_ data - Sets the user data for a mapper.
- sqsh_
mapper_ ⚠size - INTERNAL API
- sqsh_
mapper_ ⚠user_ data - Retrieves the user data from a mapper.
- sqsh_
open ⚠ - Initialize the file context from a path.
- sqsh_
open_ ⚠by_ ref - Initializes a file context in heap
- sqsh_
path_ ⚠resolver_ dir_ inode - Returns the inode of the current working directory.
- sqsh_
path_ ⚠resolver_ down - Lets the walker enter the current entry.
- sqsh_
path_ ⚠resolver_ free - Cleans up resources used by a SqshPathResolver struct.
- sqsh_
path_ ⚠resolver_ inode_ ref - Returns the inode reference of the current entry.
- sqsh_
path_ ⚠resolver_ lookup - Looks up an entry in the current directory.
- sqsh_
path_ ⚠resolver_ name - Returns the name of the current entry. This entry is not zero terminated.
- sqsh_
path_ ⚠resolver_ name_ dup - creates a heap allocated copy of the name of the current entry.
- sqsh_
path_ ⚠resolver_ name_ size - Returns the size of the name of the current entry.
- sqsh_
path_ ⚠resolver_ new - Creates a new SqshPathResolver object at the root inode.
- sqsh_
path_ ⚠resolver_ next - Moves the walker to the next entry int the current directory.
- sqsh_
path_ ⚠resolver_ open_ file - Returns the inode of the current entry.
- sqsh_
path_ ⚠resolver_ resolve - Resolve a path with the tree walker.
- sqsh_
path_ ⚠resolver_ revert - reverts the walker to the begining of the current directory.
- sqsh_
path_ ⚠resolver_ to_ root - Moves the walker to the root directory.
- sqsh_
path_ ⚠resolver_ type - Returns the inode type of the current entry.
- sqsh_
path_ ⚠resolver_ up - Moves the walker one level up
- sqsh_
perror ⚠ - Print the error message for the given error code.
- sqsh_
superblock_ ⚠block_ size - Retrieves the block size of a superblock context.
- sqsh_
superblock_ ⚠bytes_ used - Retrieves the number of bytes used in a superblock context.
- sqsh_
superblock_ ⚠compression_ id - Retrieves the compression id of a superblock context.
- sqsh_
superblock_ ⚠directory_ table_ start - Retrieves the start offset of the directory table in a superblock context.
- sqsh_
superblock_ ⚠export_ table_ start - Retrieves the start offset of the export table in an archive.
- sqsh_
superblock_ ⚠fragment_ entry_ count - Retrieves the number of fragment entries in a superblock context.
- sqsh_
superblock_ ⚠fragment_ table_ start - Retrieves the start offset of the fragment table in a superblock context.
- sqsh_
superblock_ ⚠has_ compression_ options - Checks if a superblock context has compression options.
- sqsh_
superblock_ ⚠has_ export_ table - Checks if a superblock context has an export table.
- sqsh_
superblock_ ⚠has_ fragments - Checks if a superblock context has fragment table.
- sqsh_
superblock_ ⚠has_ xattr_ table - Checks if a superblock context has an xattr table.
- sqsh_
superblock_ ⚠id_ count - Retrieves the number of ids in an archive.
- sqsh_
superblock_ ⚠id_ table_ start - Retrieves the start offset of the id table in an archive.
- sqsh_
superblock_ ⚠inode_ count - Retrieves the number of inodes in an archive.
- sqsh_
superblock_ ⚠inode_ root_ ref - Retrieves the reference of the root inode in a superblock context.
- sqsh_
superblock_ ⚠inode_ table_ start - Retrieves the start offset of the inode table in an archive.
- sqsh_
superblock_ ⚠modification_ time - Retrieves the modification time of a superblock context.
- sqsh_
superblock_ ⚠version_ major - Retrieves the major version of an archive.
- sqsh_
superblock_ ⚠version_ minor - Retrieves the minor version of an archive.
- sqsh_
superblock_ ⚠xattr_ id_ table_ start - Retrieves the start offset of the xattr id table in an archive.
- sqsh_
table_ ⚠get - Retrieves an element from the table.
- sqsh_
trailing_ ⚠data - Retrieves the trailing data in a context.
- sqsh_
trailing_ ⚠size - Retrieves the size of the trailing data in a context.
- sqsh_
tree_ ⚠traversal_ depth - Returns the path segment at a given index.
- sqsh_
tree_ ⚠traversal_ free - Arguments
- sqsh_
tree_ ⚠traversal_ iterator - Gets the underlying directory iterator pointing to the current entry.
- sqsh_
tree_ ⚠traversal_ name - Returns the name of the current entry. This entry is not zero terminated. The function will return an emptry string for the uppermost object.
- sqsh_
tree_ ⚠traversal_ name_ dup - creates a heap allocated copy of the name of the current entry.
- sqsh_
tree_ ⚠traversal_ new - Creates a new SqshTreeTraversal object at the root inode.
- sqsh_
tree_ ⚠traversal_ next - Moves the traversal to the next entry int the current directory.
- sqsh_
tree_ ⚠traversal_ open_ file - Returns the inode of the current entry.
- sqsh_
tree_ ⚠traversal_ path_ dup - Returns the name of the current entry. This entry is not zero terminated.
- sqsh_
tree_ ⚠traversal_ path_ segment - Returns the length of the path segment at a given index.
- sqsh_
tree_ ⚠traversal_ set_ max_ depth - Sets the maximum depth of the traversal.
- sqsh_
tree_ ⚠traversal_ state - returns the state of the traversal.
- sqsh_
tree_ ⚠traversal_ type - Returns the inode type of the current entry.
- sqsh_
tree_ ⚠walker_ down Deprecated - Since 1.2.0. Use sqsh_path_resolver_down() instead. Lets the walker enter the current entry.
- sqsh_
tree_ ⚠walker_ free Deprecated - Since 1.2.0. Use sqsh_path_resolver_free() instead. Cleans up resources used by a SqshTreeWalker struct.
- sqsh_
tree_ ⚠walker_ lookup Deprecated - Since 1.2.0. Use sqsh_path_resolver_lookup() instead. Looks up an entry in the current directory.
- sqsh_
tree_ ⚠walker_ name Deprecated - Since 1.2.0. Use sqsh_path_resolver_name() instead. Returns the name of the current entry. This entry is not zero terminated.
- sqsh_
tree_ ⚠walker_ name_ dup Deprecated - Since 1.2.0. Use sqsh_path_resolver_name_dup() instead.
- sqsh_
tree_ ⚠walker_ name_ size Deprecated - Since 1.2.0. Use sqsh_path_resolver_name_size() instead.
- sqsh_
tree_ ⚠walker_ new Deprecated - Since 1.2.0. Use sqsh_path_resolver_new() instead. Creates a new SqshTreeWalker object at the root inode.
- sqsh_
tree_ ⚠walker_ next Deprecated - Since 1.2.0. Use sqsh_path_resolver_next() instead.
- sqsh_
tree_ ⚠walker_ open_ file Deprecated - Since 1.2.0. Use sqsh_path_resolver_open_file() instead. Returns the inode of the current entry.
- sqsh_
tree_ ⚠walker_ resolve Deprecated - Since 1.2.0. Use sqsh_path_resolver_open_file() instead.
- sqsh_
tree_ ⚠walker_ revert Deprecated - Since 1.2.0. Use sqsh_path_resolver_revert() instead. reverts the walker to the begining of the current directory.
- sqsh_
tree_ ⚠walker_ to_ root Deprecated - Since 1.2.0. Use sqsh_path_resolver_to_root() instead. Moves the walker to the root directory.
- sqsh_
tree_ ⚠walker_ type Deprecated - Since 1.2.0. Use sqsh_path_resolver_type() instead. Returns the inode type of the current entry.
- sqsh_
tree_ ⚠walker_ up Deprecated - Since 1.2.0. Use sqsh_path_resolver_up() instead. Moves the walker one level up
- sqsh_
xattr_ ⚠iterator_ free - Frees the resources used by an xattr iterator.
- sqsh_
xattr_ ⚠iterator_ fullname_ cmp - Compares the full name of the current xattr with a given 0-terminated name.
- sqsh_
xattr_ ⚠iterator_ fullname_ dup - creates a heap allocated copy of the full name of the current entry.
- sqsh_
xattr_ ⚠iterator_ is_ indirect - Checks if the current xattr is indirect.
- sqsh_
xattr_ ⚠iterator_ lookup - Looks up an xattr by name.
- sqsh_
xattr_ ⚠iterator_ name - Retrieves the name of the current xattr excluding the prefix.
- sqsh_
xattr_ ⚠iterator_ name_ size - Retrieves the size of the name of the current xattr.
- sqsh_
xattr_ ⚠iterator_ new - Allocates and initializes a new xattr iterator.
- sqsh_
xattr_ ⚠iterator_ next - Advances the iterator to the next xattr.
- sqsh_
xattr_ ⚠iterator_ prefix - Retrieves the prefix of the current xattr.
- sqsh_
xattr_ ⚠iterator_ prefix_ size - Retrieves the size of the prefix of the current xattr.
- sqsh_
xattr_ ⚠iterator_ type - Retrieves the type of the current xattr.
- sqsh_
xattr_ ⚠iterator_ value - Retrieves the value of the current xattr.
- sqsh_
xattr_ ⚠iterator_ value_ dup - creates a heap allocated copy of the value of the current entry.
- sqsh_
xattr_ ⚠iterator_ value_ size Deprecated - Retrieves the size of the value of the current xattr. Since 1.3.0. Use sqsh_xattr_iterator_value_size2() instead.
- sqsh_
xattr_ ⚠iterator_ value_ size2 - Retrieves the size of the value of the current xattr.
Type Aliases§
- sqsh_
index_ t - typedef used for indexing