home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apollo
- Path: sparky!uunet!mcsun!dxcern!vxcrna.cern.ch!roeber
- From: roeber@vxcrna.cern.ch
- Subject: pgm_$invoke changed at 10.4 ?
- Message-ID: <1992Jul28.144224.1@vxcrna.cern.ch>
- Sender: news@dxcern.cern.ch (USENET News System)
- Organization: CERN -- European Organization for Nuclear Research
- Date: Tue, 28 Jul 1992 13:42:24 GMT
- Lines: 51
-
- It seems that the pgm_$invoke routine has changed between 10.3.5 and
- 10.4 -- whereas previously trying to invoke a nonexistant program
- resulted in an error status, in 10.4 it results in an ok status.
- There's a quick program down below which will illustrate this.
-
- There's nothing in the documentation or release notes about any
- changes, at least that we've found.
-
- Has anybody else seen this? Does anybody know if this is a feature,
- or is it a bug? If the latter, is there any chance of it being fixed?
- Any easy workarounds?
-
- Thanks.
-
- /* A program to test pgm_$invoke. Running it on a 10.3.5 node
- results in an error, running it on a 10.4 node does not. */
-
- #include <apollo/base.h>
- #include <apollo/pgm.h>
- #include <apollo/error.h>
-
- main()
- {
- ios_$id_t ios_vector[3]; /* streams in process */
- pgm_$proc handle;
- status_$t status;
- char path[] = "nonexistant"; /* There should not be a
- file by this name. */
-
- ios_vector[0] = ios_$stdin;
- ios_vector[1] = ios_$stdout;
- ios_vector[2] = ios_$stderr;
-
- pgm_$invoke(path, (short)strlen(path), (short)0, (pgm_$arg_ptr *)0,
- (short)3, ios_vector, pgm_$extra_proc,
- &handle, &status);
-
- error_$print(status);
-
- printf("%s %d\n", path, status.all);
-
- }
-
-
- --
- Frederick G. M. Roeber | CERN -- European Center for Nuclear Research
- e-mail: roeber@cern.ch or roeber@caltech.edu | work: +41 22 767 31 80
- r-mail: CERN/PPE, 1211 Geneva 23, Switzerland | home: +33 50 42 19 44
- --
- "Sorry, baby, I can't take you to the pizza joint tonight, I've got to go
- back to the lab and split the atom." -- Ayn Rand, "What is Romanticism?"
-