libsquashfs  1.3.2
A new set of tools and libraries for working with SquashFS images
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 
34 typedef 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 */
Attempted to read an on-disk data structure that appears to be corrupted, i.e. contains obvious non-s...
Definition: error.h:62
Allocation using malloc or calloc failed (returned NULL).
Definition: error.h:38
SQFS_ERROR
Error codes that can be returned by various libsquashfs functions.
Definition: error.h:34
Generic compressor error returned if compressing data failed (some kind of internal error) or extract...
Definition: error.h:50
Attempted to perform an out-of-bounds read. If this happens when following a reference stored in a da...
Definition: error.h:83
Specific error when reading or initializing the super block.
Definition: error.h:105
Attempted to use an unsupported feature (e.g. an unknown compressor or xattr type).
Definition: error.h:68
Specific error when reading the super block.
Definition: error.h:90
An invalid argument was passed to a library function.
Definition: error.h:135
Library functions were called an a nonsensical order.
Definition: error.h:147
Detected a hard link loop while walking a filesystem tree.
Definition: error.h:124
Expected a directory (inode), found something else instead.
Definition: error.h:114
Attempted to read a data structure into memory would overflow the addressable memory. Usually indicates a corrupted or maliciously manipulated SquashFS filesystem.
Definition: error.h:75
A specified path, or a part of it, does not exist.
Definition: error.h:119
An internal error of the "this wasn&#39;t supposed to happen" kind that cannot easily be mapped to someth...
Definition: error.h:56
Generic I/O error if a file read or write operation failed.
Definition: error.h:43
Specific error when reading the super block.
Definition: error.h:97
Tried to perform an file operation on something that isn&#39;t a regular file or a regular file inode...
Definition: error.h:130