Lines Matching defs:code
51 const char *code = "TEST-8000-08";
61 * using a diagnosis code from our test dictionary so we can format
99 err |= nvlist_add_string(list, FM_SUSPECT_DIAG_CODE, code);
136 * return NULL and EINVAL for an illegal message code, and NULL
137 * and ENOENT for a valid but not defined message code.
141 (void) fprintf(stderr, "%s: test0 FAIL: illegal code returned "
148 (void) fprintf(stderr, "%s: test0 FAIL: illegal code returned "
155 (void) fprintf(stderr, "%s: test0 FAIL: missing code returned "
162 (void) fprintf(stderr, "%s: test0 FAIL: missing code returned "
169 * a known message code without having any actual event handle.
172 if ((s = fmd_msg_getitem_id(h, NULL, code, i)) == NULL) {
175 argv[0], code, i, strerror(errno));
178 (void) printf("code %s item %d = <<%s>>\n", code, i, s);
184 * a known message code without having any actual event handle.
186 if ((s = fmd_msg_gettext_id(h, NULL, code)) == NULL) {
188 "%s\n", argv[0], code, strerror(errno));
203 argv[0], code, i, strerror(errno));
206 (void) printf("code %s item %d = <<%s>>\n", code, i, s);
212 * a known message code using our list.suspect event handle.
216 "%s\n", argv[0], code, strerror(errno));
225 * a known message code using our list.suspect event handle, but this
237 "%s\n", argv[0], code, strerror(errno));