26 RCSIDH(exec_legacy_h,
"$Id: 7251d4856716364fc6717eae1d18015fac0056e0 $")
28 #include <freeradius-devel/server/request.h>
29 #include <freeradius-devel/util/pair.h>
30 #include <freeradius-devel/util/talloc.h>
31 #include <sys/types.h>
38 char const *cmd,
request_t *request,
bool exec_wait,
42 char *answer,
int left);
static fr_time_delta_t timeout
pid_t radius_start_program_legacy(int *stdin_fd, int *stdout_fd, int *stderr_fd, char const *cmd, request_t *request, bool exec_wait, fr_pair_list_t *input_pairs, bool shell_escape)
Start a process.
int radius_exec_program_legacy(char *out, size_t outlen, request_t *request, char const *cmd, fr_pair_list_t *input_pairs, bool exec_wait, bool shell_escape, fr_time_delta_t timeout))
Execute a program.
int radius_readfrom_program_legacy(int fd, pid_t pid, fr_time_delta_t timeout, char *answer, int left)
Read from the child process.
static int stdout_fd
The original unmolested stdout file descriptor.
static int stderr_fd
The original unmolested stderr file descriptor.
A time delta, a difference in time measured in nanoseconds.
static size_t char ** out