libsquashfs 1.3.0
A new set of tools and libraries for working with SquashFS images
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-3.0-or-later */
2/*
3 * error.h - This file is part of libsquashfs
4 *
5 * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published
9 * by the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20#ifndef SQFS_ERROR_H
21#define SQFS_ERROR_H
22
34typedef enum {
39
44
51
57
63
69
76
84
91
98
106
115
120
125
131
136
148} SQFS_ERROR;
149
150#endif /* SQFS_ERROR_H */
SQFS_ERROR
Error codes that can be returned by various libsquashfs functions.
Definition: error.h:34
@ SQFS_ERROR_NO_ENTRY
A specified path, or a part of it, does not exist.
Definition: error.h:119
@ SQFS_ERROR_INTERNAL
An internal error of the "this wasn't supposed to happen" kind that cannot easily be mapped to someth...
Definition: error.h:56
@ SQFS_ERROR_NOT_FILE
Tried to perform an file operation on something that isn't a regular file or a regular file inode.
Definition: error.h:130
@ SQFS_ERROR_ALLOC
Allocation using malloc or calloc failed (returned NULL).
Definition: error.h:38
@ SFQS_ERROR_SUPER_VERSION
Specific error when reading the super block.
Definition: error.h:97
@ SQFS_ERROR_UNSUPPORTED
Attempted to use an unsupported feature (e.g. an unknown compressor or xattr type).
Definition: error.h:68
@ SQFS_ERROR_NOT_DIR
Expected a directory (inode), found something else instead.
Definition: error.h:114
@ SQFS_ERROR_COMPRESSOR
Generic compressor error returned if compressing data failed (some kind of internal error) or extract...
Definition: error.h:50
@ SQFS_ERROR_OVERFLOW
Attempted to read a data structure into memory would overflow the addressable memory....
Definition: error.h:75
@ SQFS_ERROR_SUPER_BLOCK_SIZE
Specific error when reading or initializing the super block.
Definition: error.h:105
@ SQFS_ERROR_SEQUENCE
Library functions were called an a nonsensical order.
Definition: error.h:147
@ SQFS_ERROR_LINK_LOOP
Detected a hard link loop while walking a filesystem tree.
Definition: error.h:124
@ SQFS_ERROR_OUT_OF_BOUNDS
Attempted to perform an out-of-bounds read. If this happens when following a reference stored in a da...
Definition: error.h:83
@ SFQS_ERROR_SUPER_MAGIC
Specific error when reading the super block.
Definition: error.h:90
@ SQFS_ERROR_CORRUPTED
Attempted to read an on-disk data structure that appears to be corrupted, i.e. contains obvious non-s...
Definition: error.h:62
@ SQFS_ERROR_ARG_INVALID
An invalid argument was passed to a library function.
Definition: error.h:135
@ SQFS_ERROR_IO
Generic I/O error if a file read or write operation failed.
Definition: error.h:43