#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <stdarg.h>
#include <grp.h>
#include "lcmaps_defines.h"
#include "lcmaps_types.h"
#include "lcmaps_log.h"
Go to the source code of this file.
| Functions | |
| int | fexist (char *) | 
| check the existence of file corresponding to <path> | |
| char * | lcmaps_genfilename (char *prefixp, char *pathp, char *suffixp) | 
| Generate an absolute file name. | |
| char * | lcmaps_getfexist (int n,...) | 
| Picks the first existing file in argument list. | |
| char * | lcmaps_findfile (char *name) | 
| Checks for file in standard directories. | |
| int | lcmaps_tokenize (const char *command, char **args, int *n, char *sep) | 
| Break the argument string up into tokens. | |
| int | lcmaps_get_gidlist (const char *username, int *ngroups, gid_t **group_list) | 
| Finds the list of gids for user in the group file (/etc/group). | |
Definition in file lcmaps_utils.c.
| 
 | 
| check the existence of file corresponding to <path> 
 
 
 Definition at line 133 of file lcmaps_utils.c. Referenced by lcmaps_getfexist(). | 
| 
 | 
| Checks for file in standard directories. The directories that are checked are: 
 
 
 
 Definition at line 218 of file lcmaps_utils.c. References LCMAPS_ETC_HOME, lcmaps_genfilename(), lcmaps_getfexist(), LCMAPS_LIB_HOME, and LCMAPS_MOD_HOME. Referenced by PluginInit(). | 
| 
 | ||||||||||||||||
| Generate an absolute file name. Given a starting prefix, a relative or absolute path, and a suffix an absolute file name is generated. Uses the prefix only if the path is relative. (Copied (and modified) from GLOBUS gatekeeper.c) 
 
 
 Definition at line 76 of file lcmaps_utils.c. Referenced by lcmaps_findfile(), lcmaps_setup(), and startPluginManager(). | 
| 
 | ||||||||||||||||
| Finds the list of gids for user in the group file (/etc/group). Returns a list of gid_t which should be freed by calling program. 
 
 Definition at line 407 of file lcmaps_utils.c. References lcmaps_log(), and lcmaps_log_debug(). | 
| 
 | ||||||||||||
| Picks the first existing file in argument list. 
 
 
 Definition at line 176 of file lcmaps_utils.c. References fexist(). Referenced by lcmaps_findfile(). | 
| 
 | ||||||||||||||||||||
| Break the argument string up into tokens. Breakup the command in to arguments, pointing the args array at the tokens. Replace white space at the end of each token with a null. A token maybe in quotes. (Copied (and modified) from GLOBUS gatekeeper.c) 
 
 Definition at line 292 of file lcmaps_utils.c. Referenced by lcmaps_setup(), and parse_args_plugin(). | 
 1.3.5
 
1.3.5