#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <errno.h>
#include <gssapi.h>
#include "lcmaps_config.h"
#include "lcmaps_modules.h"
#include "lcmaps_arguments.h"
Go to the source code of this file.
Functions | |
int | run_cmd (char *cmd, char *argv[]) |
int | fail_afs (void) |
int | check_argument (const char *name, char **value, unsigned int num, int argc, char *argv[], int *pos) |
int | construct_argv (char *cmd, char **argv[]) |
void | destruct_argv (char **argv[]) |
Definition in file lcmaps_afs.c.
|
check_argument(name, value, num, argc, argv, pos) Check if the name matches the argument at position pos. If it does, then depending if num is equal to zero or one, zero or one values are read and stored at value.
Definition at line 212 of file lcmaps_afs.c. References lcmaps_log(), LCMAPS_MOD_FAIL, and LCMAPS_MOD_SUCCESS. |
|
construct_arfv(cmd, argv) Construct an argv list. The first element is the name of the executable.
Definition at line 390 of file lcmaps_afs.c. References lcmaps_log(), and lcmaps_log_debug(). |
|
destruct_argv(argv) Destruct the argv list by freeing all elements as well as the list itself.
Definition at line 441 of file lcmaps_afs.c. |
|
Do some necessary cleanup when the afs plugin fails. Definition at line 573 of file lcmaps_afs.c. References LCMAPS_MOD_FAIL. |
|
run_cmd(cmd, argv) Run a command. The standard output and standard error are piped back into the current process and appended to the logging of the current process. Definition at line 464 of file lcmaps_afs.c. References lcmaps_log(), and lcmaps_log_debug(). |