Lines Matching refs:err
48 atf_error_t err;
51 err = atf_text_split(atf_config_get(var), " ", &words);
52 if (atf_is_error(err))
58 return err;
72 atf_error_t err;
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;
87 err = atf_no_error();
88 while (*optargs != NULL && !atf_is_error(err)) {
89 err = append_arg1(strdup(*optargs), argv);
93 return err;
100 atf_error_t err;
102 err = append_arg2("-o", obj, argv);
103 if (atf_is_error(err))
106 err = append_arg1("-c", argv);
107 if (atf_is_error(err))
110 err = append_arg1(src, argv);
113 return err;
120 atf_error_t err;
125 err = atf_no_memory_error();
137 err = atf_no_error();
141 return err;
154 atf_error_t err;
157 err = atf_list_init(&argv_list);
158 if (atf_is_error(err))
161 err = append_config_var("atf_build_cc", &argv_list);
162 if (atf_is_error(err))
165 err = append_config_var("atf_build_cppflags", &argv_list);
166 if (atf_is_error(err))
169 err = append_config_var("atf_build_cflags", &argv_list);
170 if (atf_is_error(err))
174 err = append_optargs(optargs, &argv_list);
175 if (atf_is_error(err))
179 err = append_src_out(sfile, ofile, &argv_list);
180 if (atf_is_error(err))
183 err = list_to_array(&argv_list, argv);
184 if (atf_is_error(err))
190 return err;
199 atf_error_t err;
202 err = atf_list_init(&argv_list);
203 if (atf_is_error(err))
206 err = append_config_var("atf_build_cpp", &argv_list);
207 if (atf_is_error(err))
210 err = append_config_var("atf_build_cppflags", &argv_list);
211 if (atf_is_error(err))
215 err = append_optargs(optargs, &argv_list);
216 if (atf_is_error(err))
220 err = append_arg2("-o", ofile, &argv_list);
221 if (atf_is_error(err))
224 err = append_arg1(sfile, &argv_list);
225 if (atf_is_error(err))
228 err = list_to_array(&argv_list, argv);
229 if (atf_is_error(err))
235 return err;
244 atf_error_t err;
247 err = atf_list_init(&argv_list);
248 if (atf_is_error(err))
251 err = append_config_var("atf_build_cxx", &argv_list);
252 if (atf_is_error(err))
255 err = append_config_var("atf_build_cppflags", &argv_list);
256 if (atf_is_error(err))
259 err = append_config_var("atf_build_cxxflags", &argv_list);
260 if (atf_is_error(err))
264 err = append_optargs(optargs, &argv_list);
265 if (atf_is_error(err))
269 err = append_src_out(sfile, ofile, &argv_list);
270 if (atf_is_error(err))
273 err = list_to_array(&argv_list, argv);
274 if (atf_is_error(err))
280 return err;