Lines Matching refs:rslt
153 int rslt;
157 rslt = asprintf(&args.fspec,
162 if (rslt == -1) {
164 return rslt;
167 rslt = snprintf(cmd, sizeof(cmd), newfsfmt, args.fspec);
168 if (rslt >= sizeof(cmd)) {
171 rslt = -1;
172 return rslt;
179 rslt = system(cmd);
180 if (rslt == -1) {
183 return rslt;
200 int rslt;
212 rslt = asprintf(&args.fspec,
217 if (rslt == -1) {
228 rslt = snprintf(cmd, sizeof(cmd), fsckfmt, args.fspec);
229 if (rslt >= sizeof(cmd)) {
231 rslt = -1;
234 rslt = system(cmd);
235 if (rslt == -1) {
241 rslt = create_filesystem(dl, part);
242 if (rslt == -1)
244 rslt = mount(MOUNT_MSDOS, dst, 0, &args);
245 if (rslt == -1) {
254 rslt = -1;
258 rslt = mkdir(dst, 0755);
259 if (rslt == -1 && errno != EEXIST) {
264 rslt = -1;
268 rslt = mkdir(dst, 0755);
269 if (rslt == -1 && errno != EEXIST) {
277 rslt = -1;
283 rslt = -1;
291 rslt = filecopy(src, dst);
292 if (rslt == -1)
299 rslt = -1;
307 rslt = fileprintf(dst, "%s\n", BOOTEFI_DST);
308 if (rslt == -1)
313 rslt = write_firmware(root, dst);
314 if (rslt == -1)
330 if (rslt == -1)
341 int rslt;
346 rslt = snprintf(fw, sizeof(fw), "%s/%s", root, "etc/firmware");
347 if (rslt < 0 || rslt >= PATH_MAX) {
360 rslt = -1;
365 rslt = 0;
369 rslt = -1;
377 rslt = filecopy(src, dst);
378 if (rslt == -1)
382 rslt = 0;
386 return rslt;