Parent Directory
|
Revision Log
Links to HEAD: | (view) (download) (as text) (annotate) |
Sticky Revision: |
Bringing environ back in sync with glexec: - new function int cgul_unsetenv_dst() needed to remove an entry from an 'saved' environment.
Adding const predicate to variable to prevent compiler warning.
- new function cgul_add_src_pattern() to add substring pattern entries from a src environment to a target environment. E.g. for GLEXEC_ variables into the target process environment. - reworked related cgul_add_src_list(), so that it is more or less consistent internally consistent with the new cgul_add_src_pattern()
Bringing environ back in sync with version in gLExec.
- don't change const char * parameter, so put it in a buffer..
- introduced cgul_ prefix for environ - synchronized two proxy writing functions, thereby fixing a const char* writing issue (segfault).
- Use properly size_t when needed
- introducing env_t (char **): now use &dst for creation/updating of environments instead of return value of functions. This makes it easier to have a few additions in a row etc. - make sure when input whitelist and/or src is null everything works as expected: new environment should be created and initialized to empty, old environment should be left unchanged. - make sure environ.h is effectively included once using a #ifndef
- added new function setenv_dst() adding a name, value pair to the dst environment, similar to add_namevalue() - check explicitly that whitelists aren't NULL, which lead to a segfault...
We're not in 2004... Changed year to 2010
No copyright text for us, only EGEE allowed (instructions from Francesco).
- Added a getenv for 'external' environments - no more pointer arithmetics...
- fixed a few initialization (valgrind) problems. - updated comments: remarks on strdup/putenv etc.
- added a number of new functions to: add single pairs to external environment, put some general stuff in special functions, - Fixed a few memory leaks, probably none left (-:
- strarrlen returns NULL when argument is NULL (not just when list is empty). This is convenient...
environ.c / environ.h Provides methods to safely backup the environment, to clear the current environment and to re-set certain parts from the backup into it.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
grid.support@nikhef.nl | ViewVC Help |
Powered by ViewVC 1.1.28 |