libsquashfs
1.3.2
A new set of tools and libraries for working with SquashFS images
Toggle main menu visibility
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
28
34
typedef
enum
{
38
SQFS_ERROR_ALLOC
= -1,
39
43
SQFS_ERROR_IO
= -2,
44
50
SQFS_ERROR_COMPRESSOR
= -3,
51
56
SQFS_ERROR_INTERNAL
= -4,
57
62
SQFS_ERROR_CORRUPTED
= -5,
63
68
SQFS_ERROR_UNSUPPORTED
= -6,
69
75
SQFS_ERROR_OVERFLOW
= -7,
76
83
SQFS_ERROR_OUT_OF_BOUNDS
= -8,
84
90
SFQS_ERROR_SUPER_MAGIC
= -9,
91
97
SFQS_ERROR_SUPER_VERSION
= -10,
98
105
SQFS_ERROR_SUPER_BLOCK_SIZE
= -11,
106
114
SQFS_ERROR_NOT_DIR
= -12,
115
119
SQFS_ERROR_NO_ENTRY
= -13,
120
124
SQFS_ERROR_LINK_LOOP
= -14,
125
130
SQFS_ERROR_NOT_FILE
= -15,
131
135
SQFS_ERROR_ARG_INVALID
= -16,
136
147
SQFS_ERROR_SEQUENCE
= -17,
148
}
SQFS_ERROR
;
149
150
#endif
/* SQFS_ERROR_H */
SQFS_ERROR
SQFS_ERROR
Error codes that can be returned by various libsquashfs functions.
Definition
error.h:34
SQFS_ERROR_NO_ENTRY
@ SQFS_ERROR_NO_ENTRY
A specified path, or a part of it, does not exist.
Definition
error.h:119
SQFS_ERROR_INTERNAL
@ 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
@ 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
@ SQFS_ERROR_ALLOC
Allocation using malloc or calloc failed (returned NULL).
Definition
error.h:38
SFQS_ERROR_SUPER_VERSION
@ SFQS_ERROR_SUPER_VERSION
Specific error when reading the super block.
Definition
error.h:97
SQFS_ERROR_UNSUPPORTED
@ 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
@ SQFS_ERROR_NOT_DIR
Expected a directory (inode), found something else instead.
Definition
error.h:114
SQFS_ERROR_COMPRESSOR
@ 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
@ 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
@ SQFS_ERROR_SUPER_BLOCK_SIZE
Specific error when reading or initializing the super block.
Definition
error.h:105
SQFS_ERROR_SEQUENCE
@ SQFS_ERROR_SEQUENCE
Library functions were called an a nonsensical order.
Definition
error.h:147
SQFS_ERROR_LINK_LOOP
@ SQFS_ERROR_LINK_LOOP
Detected a hard link loop while walking a filesystem tree.
Definition
error.h:124
SQFS_ERROR_OUT_OF_BOUNDS
@ 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
@ SFQS_ERROR_SUPER_MAGIC
Specific error when reading the super block.
Definition
error.h:90
SQFS_ERROR_CORRUPTED
@ 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
@ SQFS_ERROR_ARG_INVALID
An invalid argument was passed to a library function.
Definition
error.h:135
SQFS_ERROR_IO
@ SQFS_ERROR_IO
Generic I/O error if a file read or write operation failed.
Definition
error.h:43
include
sqfs
error.h
Generated by
1.17.0