Blame src/pm/util/env.h

Packit 0848f5
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
Packit 0848f5
/*  
Packit 0848f5
 *  (C) 2004 by Argonne National Laboratory.
Packit 0848f5
 *      See COPYRIGHT in top-level directory.
Packit 0848f5
 */
Packit 0848f5
Packit 0848f5
#ifndef ENV_H_INCLUDED
Packit 0848f5
#define ENV_H_INCLUDED
Packit 0848f5
Packit 0848f5
/* Element of the list of environment variables */
Packit 0848f5
typedef struct EnvData {
Packit 0848f5
    const char *name, *value;
Packit 0848f5
    const char *envvalue;     /* name=value form, for putenv */
Packit 0848f5
    struct EnvData *nextData;
Packit 0848f5
} EnvData;
Packit 0848f5
Packit 0848f5
typedef struct EnvInfo {
Packit 0848f5
    int includeAll;      /* true if all environment variables should be 
Packit 0848f5
			    included, false if none (other than those
Packit 0848f5
			    explicitly listed below) should be included */
Packit 0848f5
    EnvData *envPairs;   /* List of name,value pairs to be included */
Packit 0848f5
    EnvData *envNames;   /* List of names to be included, using the 
Packit 0848f5
			    current value in the environment */
Packit 0848f5
} EnvInfo;
Packit 0848f5
Packit 0848f5
int MPIE_ArgsCheckForEnv( int, char *[], ProcessWorld *, EnvInfo ** );
Packit 0848f5
int MPIE_EnvSetup( ProcessState *, char *[], char *[], int );
Packit 0848f5
int MPIE_EnvInitData( EnvData *, int );
Packit 0848f5
int MPIE_Putenv( ProcessWorld *, const char * );
Packit 0848f5
int MPIE_UnsetAllEnv( char *[] );
Packit 0848f5
Packit 0848f5
#endif