libfru 2.0+git20240917.25293b1
FRU Manupulation Library
Loading...
Searching...
No Matches
fru-errno.h
Go to the documentation of this file.
1
7#pragma once
8
13typedef enum {
14 FEBASE = 10000, /* Ofsset to safely include errno range */
15 FELONGINPUT = FEBASE, /* Input string is too long */
16 FENONPRINT, /* Field data contains non-printable bytes */
17 FENONHEX, /* Input string contains non-hex characters */
18 FERANGE, /* Field data exceeds range for the requested encoding */
19 FENOTEVEN, /* Input string must contain an even number of nibbles for binary encoding */
20 FEBADENC, /* Invalid encoding for a field */
21 FETOOSMALL, /* FRU file is too small */
22 FEHDRVER, /* FRU header has bad version */
23 FEHDRBADPTR, /* FRU header points to an area beyond the end of file */
24 FENOSUCHAREA, /* Area not found in the header */
25 FEAREANOTSUP, /* Area type not supported */
26 FEAREABADTYPE, /* Invalid area type */
27 FEAREAVER, /* Invalid area version */
28 FEAREACKSUM, /* Invalid area checksum */
29 FEHEXLEN, /* Input hex string must contain even number of bytes */
30 FEINVCHAS, /* Invalid chassis type (not per SMBIOS spec) */
31 FEMRNODATA, /* MR Record is empty */
32 FEMRVER, /* MR Record has bad version */
33 FEMRHCKSUM, /* MR Record has wrong header checksum */
34 FEMRDCKSUM, /* MR Record has wrong data checksum */
35 FEMRMGMTRANGE, /* MR Management Record type is out of range */
36 FEMRMGMTSIZE, /* MR Management Record has wrong size */
37 FEMRMGMTTYPE, /* MR Management Record is of wrong type */
40
56extern __thread fru_errno_t fru_errno;
57
63const char * fru_strerr(fru_errno_t);
const char * fru_strerr(fru_errno_t)
Get a description of the given fru_errno value.
Definition fru-errno.c:38
__thread fru_errno_t fru_errno
Numeric code of an error.
Definition fru-errno.c:10
fru_errno_t
Definition fru-errno.h:13
@ FETOTALCOUNT
Definition fru-errno.h:38
@ FENONPRINT
Definition fru-errno.h:16
@ FETOOSMALL
Definition fru-errno.h:21
@ FEINVCHAS
Definition fru-errno.h:30
@ FEBASE
Definition fru-errno.h:14
@ FEAREABADTYPE
Definition fru-errno.h:26
@ FEMRMGMTSIZE
Definition fru-errno.h:36
@ FERANGE
Definition fru-errno.h:18
@ FEAREANOTSUP
Definition fru-errno.h:25
@ FEMRNODATA
Definition fru-errno.h:31
@ FEMRMGMTRANGE
Definition fru-errno.h:35
@ FEBADENC
Definition fru-errno.h:20
@ FEMRMGMTTYPE
Definition fru-errno.h:37
@ FENOTEVEN
Definition fru-errno.h:19
@ FEHDRBADPTR
Definition fru-errno.h:23
@ FEHDRVER
Definition fru-errno.h:22
@ FEMRHCKSUM
Definition fru-errno.h:33
@ FEAREAVER
Definition fru-errno.h:27
@ FELONGINPUT
Definition fru-errno.h:15
@ FEHEXLEN
Definition fru-errno.h:29
@ FEMRVER
Definition fru-errno.h:32
@ FEMRDCKSUM
Definition fru-errno.h:34
@ FENOSUCHAREA
Definition fru-errno.h:24
@ FEAREACKSUM
Definition fru-errno.h:28
@ FENONHEX
Definition fru-errno.h:17