if (last_slash) {
status = f_file_exists(program.used ? program : arguments.array[0], F_true);
-
- if (status != F_true) {
- return F_status_set_error(F_file_found_not);
- }
+ if (status != F_true) return F_status_set_error(F_file_found_not);
path.string = program.used ? program.string : arguments.array[0].string;
path.used = program.used ? program.used : arguments.array[0].used;
status = F_status_set_fine(status);
// Don't consider bad/non-accessible paths an error, just ignore them.
- if (status == F_name) {
- continue;
- }
- else if (status == F_directory) {
- continue;
- }
- else if (status == F_access_denied) {
- continue;
- }
+ if (status == F_name) continue;
+ else if (status == F_directory) continue;
+ else if (status == F_access_denied) continue;
}
}
}
if (result) {
- int *r = (int *) result;
+ int * const r = (int *) result;
*r = code;
}
exit(code);
}
- if (code) {
- return F_status_set_error(F_failure);
- }
-
- return F_okay;
+ return code ? F_status_set_error(F_failure) : F_okay;
}
#endif // _di_fll_execute_into_
status = F_status_set_fine(status);
// Don't consider bad/non-accessible paths an error, just ignore them.
- if (status == F_name) {
- continue;
- }
- else if (status == F_directory) {
- continue;
- }
- else if (status == F_access_denied) {
- continue;
- }
+ if (status == F_name) continue;
+ else if (status == F_directory) continue;
+ else if (status == F_access_denied) continue;
}
}
// Have the parent perform all appropriate access controls and then send either '0' for no error or '1' for error to the child.
{
- const f_string_static_t *string_result = &f_string_ascii_0_s;
+ const f_string_static_t * const string_result = &f_string_ascii_0_s;
const f_file_t file = macro_f_file_t_initialize_2(0, descriptors[1], F_file_flag_write_only_d);
const f_status_t status = private_fll_execute_as_parent(*as, id_process, parameter, string_result);
if (parameter && parameter->option & FL_execute_parameter_option_return_d) {
if (result != 0) {
- pid_t *r = (pid_t *) result;
+ pid_t * const r = (pid_t *) result;
*r = id_process;
}
close(descriptors[0]);
if (result) {
- int *r = (int *) result;
+ int * const r = (int *) result;
*r = F_execute_failure;
}
}
if (result) {
- int *r = (int *) result;
+ int * const r = (int *) result;
*r = code;
}
close(descriptors[0]);
{
- const f_string_static_t *string_result = &f_string_ascii_0_s;
+ const f_string_static_t * string_result = &f_string_ascii_0_s;
const f_file_t file = macro_f_file_t_initialize_2(0, descriptors[1], F_file_flag_write_only_d);
if (parameter && parameter->option & FL_execute_parameter_option_return_d) {
if (result != 0) {
- pid_t *r = (pid_t *) result;
+ pid_t * const r = (pid_t *) result;
*r = id_process;
}
close(descriptors[0]);
if (result) {
- f_status_t *r = (f_status_t *) result;
+ f_status_t * const r = (f_status_t *) result;
*r = F_status_set_error(F_failure);
}
}
if (result) {
- int *r = (int *) result;
+ int * const r = (int *) result;
*r = code;
}