home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apollo / 3124 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.0 KB  |  62 lines

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