Lines Matching refs:data
63 error_init(atf_error_t err, const char *type, void *data, size_t datalen,
68 PRE(data != NULL || datalen == 0);
69 PRE(datalen != 0 || data == NULL);
76 if (data == NULL) {
83 memcpy(err->m_data, data, datalen);
94 atf_error_new(const char *type, void *data, size_t datalen,
100 PRE(data != NULL || datalen == 0);
101 PRE(datalen != 0 || data == NULL);
107 if (!error_init(err, type, data, datalen, format)) {
193 const atf_libc_error_data_t *data;
197 data = atf_error_data(err);
198 snprintf(buf, buflen, "%s: %s", data->m_what, strerror(data->m_errno));
205 atf_libc_error_data_t data;
208 data.m_errno = syserrno;
210 vsnprintf(data.m_what, sizeof(data.m_what), fmt, ap);
213 err = atf_error_new("libc", &data, sizeof(data), libc_format);
221 const struct atf_libc_error_data *data;
225 data = atf_error_data(err);
227 return data->m_errno;
233 const struct atf_libc_error_data *data;
237 data = atf_error_data(err);
239 return data->m_what;