diff options
author | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-09 06:40:35 +0000 |
---|---|---|
committer | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-09 06:40:35 +0000 |
commit | 93a8d612df8272c41c71915b2368c3023ceafddb (patch) | |
tree | 17102283b6abf28adc5576c520070525a88cfe95 /ace/Process.h | |
parent | 70d013a8edd5172e121d0779aa6f66bdd318f271 (diff) | |
download | ATCD-93a8d612df8272c41c71915b2368c3023ceafddb.tar.gz |
The new ACE_ProcessEx is working on Solaris for the
examples/OS/Process test.
Diffstat (limited to 'ace/Process.h')
-rw-r--r-- | ace/Process.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ace/Process.h b/ace/Process.h index b31f3b5391a..3ea3243299c 100644 --- a/ace/Process.h +++ b/ace/Process.h @@ -68,7 +68,8 @@ public: // Set the path to the application. This can either be a full path, // relative path, or just an executable name. If an executable name // is used, we rely on the platforms support for searching paths. - // strlen of <p> must be <= MAXPATHLEN. + // strlen of <p> must be <= MAXPATHLEN. Since we need a path to run + // a process, this method *must* be called! void cl_options (const char *format, ...); // Set the command-line arguments. <format> can use any printf @@ -90,7 +91,7 @@ public: // Buffer of command-line options. Returns exactly what was passed // to this->cl_options. - char **cl_options_argv (void); + char * const *cl_options_argv (void); // argv-style command-line options. Parses and modifies the string // created from this->cl_options. All spaces not in quotes ("" or // '') are replaced with null (\0) bytes. An argv array is built @@ -213,9 +214,12 @@ protected: char *cl_options_; // Buffer containing command line options. - const char *cl_options_argv_[MAX_COMMAND_LINE_OPTIONS]; + char *cl_options_argv_[MAX_COMMAND_LINE_OPTIONS]; // Are 64 command-line arguments enough? + int cl_options_argv_calculated_; + // Ensures cl_options_argv is only calculated once. + TCHAR working_directory_[MAXPATHLEN + 1]; // The current working directory. @@ -389,7 +393,7 @@ public: // if there is no memory left. If <strip> == 1, then the preserve // designators will be stripped from the tokens returned by next. - const char *next (void); + char *next (void); // Returns the next token. enum { |