Searched refs:err (Results 1 - 25 of 84) sorted by relevance

1234

/bind-9.6-ESV-R11/unit/atf-src/atf-c/
H A Dbuild.c48 atf_error_t err; local
51 err = atf_text_split(atf_config_get(var), " ", &words);
52 if (atf_is_error(err))
58 return err;
72 atf_error_t err; local
74 err = append_arg1(flag, argv);
75 if (!atf_is_error(err))
76 err = append_arg1(arg, argv);
78 return err;
85 atf_error_t err; local
100 atf_error_t err; local
120 atf_error_t err; local
154 atf_error_t err; local
199 atf_error_t err; local
244 atf_error_t err; local
[all...]
H A Derror.c55 error_format(const atf_error_t err, char *buf, size_t buflen) argument
57 PRE(err != NULL);
58 snprintf(buf, buflen, "Error '%s'", err->m_type);
63 error_init(atf_error_t err, const char *type, void *data, size_t datalen, argument
71 err->m_free = false;
72 err->m_type = type;
73 err->m_format = (format == NULL) ? error_format : format;
77 err->m_data = NULL;
79 err->m_data = malloc(datalen);
80 if (err
97 atf_error_t err; local
122 atf_error_free(atf_error_t err) argument
147 atf_is_error(const atf_error_t err) argument
153 atf_error_is(const atf_error_t err, const char *type) argument
161 atf_error_data(const atf_error_t err) argument
169 atf_error_format(const atf_error_t err, char *buf, size_t buflen) argument
191 libc_format(const atf_error_t err, char *buf, size_t buflen) argument
204 atf_error_t err; local
219 atf_libc_error_code(const atf_error_t err) argument
231 atf_libc_error_msg(const atf_error_t err) argument
250 no_memory_format(const atf_error_t err, char *buf, size_t buflen) argument
[all...]
H A Derror_test.c48 test_format(const atf_error_t err ATF_DEFS_ATTRIBUTE_UNUSED,
66 atf_error_t err; local
69 err = atf_error_new("test_error", NULL, 0, NULL);
70 ATF_REQUIRE(atf_error_is(err, "test_error"));
71 ATF_REQUIRE(!atf_error_is(err, "unknown_error"));
72 ATF_REQUIRE(atf_error_data(err) == NULL);
73 atf_error_free(err);
76 err = atf_error_new("test_data_error", &data, sizeof(data), NULL);
77 ATF_REQUIRE(atf_error_is(err, "test_data_error"));
78 ATF_REQUIRE(!atf_error_is(err, "unknown_erro
94 atf_error_t err; local
113 atf_error_t err; local
127 atf_error_t err; local
145 atf_error_t err; local
174 atf_error_t err; local
196 atf_error_t err; local
230 atf_error_t err; local
246 atf_error_t err; local
265 atf_error_t err = atf_no_memory_error(); local
272 atf_error_t err = atf_no_memory_error(); local
[all...]
H A Dcheck.c60 atf_error_t err; local
62 err = atf_fs_path_init_fmt(dir, "%s/check.XXXXXX",
64 if (atf_is_error(err))
67 err = atf_fs_mkdtemp(dir);
68 if (atf_is_error(err)) {
73 INV(!atf_is_error(err));
75 return err;
84 atf_error_t err = atf_fs_unlink(outfile); local
85 if (atf_is_error(err)) {
86 INV(atf_error_is(err, "lib
94 atf_error_t err = atf_fs_unlink(errfile); local
104 atf_error_t err = atf_fs_rmdir(dir); local
122 atf_error_t err; local
137 atf_error_t err; local
175 atf_error_t err; local
230 atf_error_t err; local
269 atf_error_t err; local
303 atf_error_t err; local
405 atf_error_t err; local
425 atf_error_t err; local
445 atf_error_t err; local
462 atf_error_t err; local
[all...]
H A Dtc.c124 check_fatal_error(atf_error_t err) argument
126 if (atf_is_error(err)) {
128 atf_error_format(err, buf, sizeof(buf));
130 atf_error_free(err);
212 atf_error_t err; local
215 err = write_resfile(STDOUT_FILENO, result, arg, reason);
217 err = write_resfile(STDERR_FILENO, result, arg, reason);
222 err = atf_libc_error(errno, "Cannot create results file '%s'",
225 err = write_resfile(fd, result, arg, reason);
233 check_fatal_error(err);
371 atf_error_t err; local
437 atf_error_t err; local
467 atf_error_t err; local
553 atf_error_t err; local
663 atf_error_t err; local
695 atf_error_t err; local
769 atf_error_t err; local
[all...]
H A Dtp.c82 atf_error_t err; local
90 err = atf_list_init(&tp->pimpl->m_tcs);
91 if (atf_is_error(err))
94 err = atf_map_init_charpp(&tp->pimpl->m_config, config);
95 if (atf_is_error(err)) {
100 INV(!atf_is_error(err));
102 return err;
182 atf_error_t err; local
186 err = atf_list_append(&tp->pimpl->m_tcs, tc, false);
190 return err;
[all...]
/bind-9.6-ESV-R11/contrib/zkt/
H A Dsoaserial.h40 extern const char *inc_errstr (int err);
/bind-9.6-ESV-R11/lib/lwres/win32/
H A Dsocket.c27 int err; local
31 err = WSAStartup( wVersionRequested, &wsaData );
32 if (err != 0) {
33 fprintf(stderr, "WSAStartup() failed: %d\n", err);
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/
H A Dtp_main.c81 name ## _format(const atf_error_t err, char *buf, size_t buflen) \
85 PRE(atf_error_is(err, #name)); \
87 data = atf_error_data(err); \
95 atf_error_t err; \
103 err = atf_error_new(#name, &data, sizeof(data), name ## _format); \
105 return err; \
117 print_error(const atf_error_t err) argument
121 PRE(atf_is_error(err));
123 atf_error_format(err, buf, sizeof(buf));
126 if (atf_error_is(err, "usag
155 atf_error_t err; local
173 atf_error_t err; local
214 atf_error_t err; local
236 atf_error_t err; local
298 atf_error_t err; local
331 atf_error_t err; local
406 atf_error_t err; local
425 atf_error_t err; local
490 atf_error_t err; local
547 atf_error_t err; local
593 atf_error_t err; local
[all...]
H A Dtext.c46 atf_error_t err; local
51 err = atf_no_memory_error();
55 err = atf_no_error();
57 while (str2 != NULL && !atf_is_error(err)) {
58 err = func(str2, data);
64 return err;
70 atf_error_t err; local
74 err = atf_text_format_ap(dest, fmt, ap);
77 return err;
83 atf_error_t err; local
99 atf_error_t err; local
146 atf_error_t err; local
168 atf_error_t err; local
[all...]
H A Denv.c60 atf_error_t err; local
64 err = atf_libc_error(errno, "Cannot set environment variable "
67 err = atf_no_error();
71 err = atf_text_format(&buf, "%s=%s", name, val);
72 if (!atf_is_error(err)) {
74 err = atf_libc_error(errno, "Cannot set environment variable "
82 return err;
88 atf_error_t err; local
92 err = atf_no_error();
96 err
[all...]
H A Dfs.c92 invalid_umask_format(const atf_error_t err, char *buf, size_t buflen) argument
96 PRE(atf_error_is(err, "invalid_umask"));
98 data = atf_error_data(err);
110 atf_error_t err; local
120 err = atf_error_new("invalid_umask", &data, sizeof(data),
123 return err;
138 unknown_type_format(const atf_error_t err, char *buf, size_t buflen) argument
142 PRE(atf_error_is(err, "unknown_type"));
144 data = atf_error_data(err);
153 atf_error_t err; local
181 atf_error_t err; local
209 atf_error_t err; local
226 atf_error_t err; local
247 atf_error_t err; local
278 atf_error_t err; local
303 atf_error_t err; local
354 atf_error_t err; local
368 atf_error_t err; local
397 atf_error_t err; local
424 atf_error_t err; local
461 atf_error_t err; local
484 atf_error_t err; local
502 atf_error_t err; local
552 atf_error_t err; local
697 atf_error_t err; local
758 atf_error_t err; local
776 atf_error_t err; local
799 atf_error_t err; local
827 atf_error_t err; local
857 atf_error_t err; local
877 atf_error_t err; local
[all...]
H A Dprocess.c66 atf_error_t err; local
75 err = atf_libc_error(errno, "Failed to create pipe");
77 err = atf_no_error();
81 err = atf_no_error();
83 return err;
274 atf_error_t err; local
278 err = atf_libc_error(errno, "Failed waiting for process %d",
282 err = atf_process_status_init(s, status);
285 return err;
316 atf_error_t err; local
335 atf_error_t err; local
399 atf_error_t err; local
428 atf_error_t err; local
462 atf_error_t err; local
509 atf_error_t err; local
530 atf_error_t err; local
568 atf_error_t err; local
623 atf_error_t err; local
656 atf_error_t err; local
[all...]
H A Ddynstr.c52 atf_error_t err; local
58 err = atf_no_memory_error();
64 err = atf_no_error();
67 return err;
76 atf_error_t err; local
81 err = atf_text_format_ap(&aux, fmt, ap2);
83 if (atf_is_error(err))
88 err = resize(ad, newlen + sizeof(char));
89 if (atf_is_error(err))
99 err
124 atf_error_t err; local
144 atf_error_t err; local
187 atf_error_t err; local
199 atf_error_t err; local
226 atf_error_t err; local
265 atf_error_t err; local
328 atf_error_t err; local
342 atf_error_t err; local
361 atf_error_t err; local
375 atf_error_t err; local
[all...]
H A Dfs_test.c85 atf_error_t err = atf_fs_mkstemp(p, &fd); local
86 if (!atf_is_error(err))
88 return err;
571 atf_error_t err; local
596 err = atf_fs_exists(&pfile, &b);
597 ATF_REQUIRE(atf_is_error(err));
598 ATF_REQUIRE(atf_error_is(err, "libc"));
600 atf_error_free(err);
666 atf_error_t err; local
672 err
768 atf_error_t err; local
793 atf_error_t err; local
873 atf_error_t err; local
900 atf_error_t err; local
1005 atf_error_t err; local
[all...]
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/
H A Denv.cpp62 atf_error_t err = atf_env_set(name.c_str(), val.c_str()); local
63 if (atf_is_error(err))
64 throw_atf_error(err);
70 atf_error_t err = atf_env_unset(name.c_str()); local
71 if (atf_is_error(err))
72 throw_atf_error(err);
H A Dexceptions.cpp94 throw_libc_error(atf_error_t err) argument
96 PRE(atf_error_is(err, "libc"));
98 const int ecode = atf_libc_error_code(err);
99 const std::string msg = atf_libc_error_msg(err);
100 atf_error_free(err);
106 throw_no_memory_error(atf_error_t err) argument
108 PRE(atf_error_is(err, "no_memory"));
110 atf_error_free(err);
116 throw_unknown_error(atf_error_t err) argument
118 PRE(atf_is_error(err));
127 throw_atf_error(atf_error_t err) argument
[all...]
H A Dfs.cpp84 atf_error_t err = atf_fs_eaccess(p.c_path(), mode); local
85 if (atf_is_error(err)) {
86 if (atf_error_is(err, "libc")) {
87 if (atf_libc_error_code(err) == experr) {
88 atf_error_free(err);
91 atf::throw_atf_error(err);
97 atf::throw_atf_error(err);
114 atf_error_t err = atf_fs_path_init_fmt(&m_path, "%s", s.c_str()); local
115 if (atf_is_error(err))
116 throw_atf_error(err);
121 atf_error_t err = atf_fs_path_copy(&m_path, &p.m_path); local
128 atf_error_t err = atf_fs_path_copy(&m_path, p); local
178 atf_error_t err; local
194 atf_error_t err; local
211 atf_error_t err = atf_fs_path_to_absolute(&m_path, &pa); local
225 atf_error_t err = atf_fs_path_init_fmt(&tmp, "%s", p.c_str()); local
256 atf_error_t err = atf_fs_path_append_fmt(&p2.m_path, "%s", p.c_str()); local
269 atf_error_t err = atf_fs_path_append_fmt(&p2.m_path, "%s", local
301 atf_error_t err; local
457 atf_error_t err; local
514 atf_error_t err = atf_fs_rmdir(p.c_path()); local
[all...]
H A Dprocess.cpp196 atf_error_t err = atf_process_stream_init_capture(&m_sb); local
197 if (atf_is_error(err))
198 throw_atf_error(err);
204 atf_error_t err = atf_process_stream_init_connect(&m_sb, src_fd, tgt_fd); local
205 if (atf_is_error(err))
206 throw_atf_error(err);
212 atf_error_t err = atf_process_stream_init_inherit(&m_sb); local
213 if (atf_is_error(err))
214 throw_atf_error(err);
220 atf_error_t err local
228 atf_error_t err = atf_process_stream_init_redirect_path(&m_sb, p.c_path()); local
299 atf_error_t err = atf_process_child_wait(&m_child, &s); local
310 atf_error_t err = atf_process_child_wait(&m_child, &s); local
[all...]
H A Dexceptions_test.cpp55 test_format(const atf_error_t err, char *buf, size_t buflen) argument
59 PRE(atf_error_is(err, "test"));
61 data = static_cast< const test_error_data_t * >(atf_error_data(err));
69 atf_error_t err; local
74 err = atf_error_new("test", &data, sizeof(data), test_format);
76 return err;
/bind-9.6-ESV-R11/lib/lwres/
H A Dherror.c53 gievn by err. The values of the error codes and messages are as
112 lwres_hstrerror(int err) { argument
113 if (err < 0)
115 else if (err < h_nerr)
116 return (h_errlist[err]);
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/
H A Dbuild.cpp85 atf_error_t err = atf_build_c_o(sfile.c_str(), ofile.c_str(), local
87 if (atf_is_error(err))
88 throw_atf_error(err);
99 atf_error_t err = atf_build_cpp(sfile.c_str(), ofile.c_str(), local
101 if (atf_is_error(err))
102 throw_atf_error(err);
113 atf_error_t err = atf_build_cxx_o(sfile.c_str(), ofile.c_str(), local
115 if (atf_is_error(err))
116 throw_atf_error(err);
H A Dcheck.cpp112 atf_error_t err = atf_check_build_c_o(sfile.c_str(), ofile.c_str(), local
114 if (atf_is_error(err))
115 throw_atf_error(err);
126 atf_error_t err = atf_check_build_cpp(sfile.c_str(), ofile.c_str(), local
128 if (atf_is_error(err))
129 throw_atf_error(err);
140 atf_error_t err = atf_check_build_cxx_o(sfile.c_str(), ofile.c_str(), local
142 if (atf_is_error(err))
143 throw_atf_error(err);
153 atf_error_t err local
[all...]
/bind-9.6-ESV-R11/unit/atf-src/atf-version/
H A Dgenerate-revision.sh44 # err message
46 err() { function
122 err "Unknown option ${arg}"
127 err "Must specify the top-level source directory with -r"
129 err "Must specify an output file with -o"
131 err "Must specify a version number with -v"
/bind-9.6-ESV-R11/unit/atf-src/admin/
H A Dcheck-style.sh39 # err message
41 err() { function
147 err=0
149 awk -f ${topdir}/admin/check-style-${format}.awk ${1} || err=1
152 return ${err}
163 err "Could not locate the project's top directory"
178 err "Could not open ${file}"

Completed in 47 milliseconds

1234