libfru 3.0.2.gb79b203
FRU Manupulation Library
Loading...
Searching...
No Matches
fru_errno.h
Go to the documentation of this file.
1
7#pragma once
8
56
76
96
113extern __thread fru_errno_t fru_errno;
114
127
135void fru_clearerr(void);
136
137/* @} */
fru_error_source_t
Describes an offending area, see fru_errno_t.
Definition fru_errno.h:62
void fru_clearerr(void)
Clear the error status of the library.
const char * fru_strerr(fru_errno_t)
Get a description of the given fru_errno value.
fru_error_source_t src
The source of error.
Definition fru_errno.h:79
int index
Index of the offending entity within the source, that is, an index of a field (for FRU_*_INFO) or a r...
Definition fru_errno.h:80
fru_error_code_t
Defines the errors specific to libfru.
Definition fru_errno.h:20
fru_error_code_t code
The error code.
Definition fru_errno.h:78
__thread fru_errno_t fru_errno
Numeric code of an error.
@ FERR_LOC_MR
The error is in the multirecord area.
Definition fru_errno.h:67
@ FERR_LOC_BOARD
The error is in the board information area.
Definition fru_errno.h:65
@ FERR_LOC_GENERAL
The error is about FRU file or structure in general, not about any specific area.
Definition fru_errno.h:68
@ FERR_LOC_CHASSIS
The error is in the chassis information area.
Definition fru_errno.h:64
@ FERR_LOC_COUNT
The total count of possible error locations.
Definition fru_errno.h:74
@ FERR_LOC_INTERNAL
The error is in the internal use area.
Definition fru_errno.h:63
@ FERR_LOC_PRODUCT
The error is in the product information area.
Definition fru_errno.h:66
@ FERR_LOC_CALLER
The error is in the calling code (bad arguments?)
Definition fru_errno.h:73
@ FETOTALCOUNT
The total count of possible libfru error codes.
Definition fru_errno.h:54
@ FEHDRCKSUM
Bad header checksum.
Definition fru_errno.h:34
@ FEAUTOENC
Unable to auto-detect encoding.
Definition fru_errno.h:28
@ FENONPRINT
Field data contains non-printable bytes.
Definition fru_errno.h:24
@ FE2BIG
Data or file is too big.
Definition fru_errno.h:31
@ FENOTERM
Unterminated area.
Definition fru_errno.h:40
@ FEMREND
End of MR records (not an error)
Definition fru_errno.h:48
@ FEMRNOTSUP
Unsupported record type.
Definition fru_errno.h:47
@ FEAREABADTYPE
Bad area type (A completely wrong value)
Definition fru_errno.h:39
@ FEAPOS
Invalid area position.
Definition fru_errno.h:49
@ FESIZE
Data size mismatch.
Definition fru_errno.h:32
@ FELIB
Internal library error (bug)
Definition fru_errno.h:53
@ FERANGE
Field data exceeds range for the requested encoding.
Definition fru_errno.h:26
@ FEBDATE
Board manufacturing date is out of range.
Definition fru_errno.h:41
@ FEGENERIC
Generic error, check errno.
Definition fru_errno.h:22
@ FEINIT
Uninitialized FRU structure.
Definition fru_errno.h:23
@ FENOFIELD
No such field.
Definition fru_errno.h:42
@ FEAREANOTSUP
Unsupported area type (For a particular operation)
Definition fru_errno.h:38
@ FEAENABLED
Area is (already) enabled.
Definition fru_errno.h:51
@ FENOTEMPTY
List is not empty.
Definition fru_errno.h:50
@ FEBADENC
Invalid encoding for a field.
Definition fru_errno.h:29
@ FEBADDATA
Malformed data.
Definition fru_errno.h:44
@ FENOTEVEN
Not an even number of nibbles.
Definition fru_errno.h:27
@ FENODATA
No data.
Definition fru_errno.h:45
@ FEHDRBADPTR
Area pointer beyond the end of file/buffer.
Definition fru_errno.h:35
@ FEMRMGMTBAD
Bad management record subtype.
Definition fru_errno.h:46
@ FEHDRVER
Bad header version.
Definition fru_errno.h:33
@ FENOREC
No such record.
Definition fru_errno.h:43
@ FEAREADUP
Duplicate area in area order.
Definition fru_errno.h:37
@ FE2SMALL
File is too small.
Definition fru_errno.h:30
@ FEADISABLED
Area is (already) disabled.
Definition fru_errno.h:52
@ FENONE
No libfru error.
Definition fru_errno.h:21
@ FEDATACKSUM
Bad data checksum.
Definition fru_errno.h:36
@ FENONHEX
Input string contains non-hex characters.
Definition fru_errno.h:25
Definition fru_errno.h:77