1fstyp_strerror(3FFiSlTeYPS)ystem Type Identification Library Fufnscttyipo_nsstrerror(3FSTYP)
2
3
4
6 fstyp_strerror - get error message string
7
9 cc [ flag... ] file... -lfstyp -lnvpair [ library... ]
10 #include <libnvpair.h>
11 #include <libfstyp.h>
12
13 const char *fstyp_strerror(fstyp_handle_t handle, int error);
14
15
17 handle Opaque handle returned by fstyp_init(3FSTYP). This argument
18 is optional and can be 0.
19
20
21 error Error value returned by a libfstyp function.
22
23
25 The fstyp_strerror() function maps the error value to an error message
26 string and returns a pointer to that string. The returned string should
27 not be overwritten.
28
29
30 The following error values are defined:
31
32 FSTYP_ERR_NO_MATCH No file system match.
33
34
35 FSTYP_ERR_MULT_MATCH Multiple file system matches.
36
37
38 FSTYP_ERR_HANDLE Invalid handle.
39
40
41 FSTYP_ERR_OFFSET Supplied offset is invalid or unsupported by
42 the module.
43
44
45 FSTYP_ERR_NO_PARTITION Specified partition not found.
46
47
48 FSTYP_ERR_NOP No such operation.
49
50
51 FSTYP_ERR_DEV_OPEN Device cannot be opened.
52
53
54 FSTYP_ERR_IO I/O error.
55
56
57 FSTYP_ERR_NOMEM Out of memory.
58
59
60 FSTYP_ERR_MOD_NOT_FOUND Requested file system module not found.
61
62
63 FSTYP_ERR_MOD_DIR_OPEN Directory cannot be opened.
64
65
66 FSTYP_ERR_MOD_OPEN Module cannot be opened.
67
68
69 FSTYP_ERR_MOD_INVALID Invalid module version.
70
71
72 FSTYP_ERR_NAME_TOO_LONG File system name length exceeds system
73 limit.
74
75
77 See attributes(5) for descriptions of the following attributes:
78
79
80
81
82 ┌─────────────────────────────┬─────────────────────────────┐
83 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
84 ├─────────────────────────────┼─────────────────────────────┤
85 │Interface Stability │Evolving │
86 ├─────────────────────────────┼─────────────────────────────┤
87 │MT-Level │MT-Safe │
88 └─────────────────────────────┴─────────────────────────────┘
89
91 fstyp_init(3FSTYP), libfstyp(3LIB), attributes(5)
92
93
94
95SunOS 5.11 20 Jun 2006 fstyp_strerror(3FSTYP)