home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.23 / text0018.txt < prev    next >
Encoding:
Text File  |  1991-06-15  |  1.3 KB  |  35 lines

  1. Submitted-by: willcox@urbana.mcd.mot.com (David A Willcox)
  2.  
  3. rstevens@noao.edu (Rich Stevens) writes:
  4.  
  5. >Submitted-by: rstevens@noao.edu (Rich Stevens)
  6.  
  7. >Does anyone know the current draft status of POSIX.2 with regard to
  8. >the system() function and its return code.  
  9.  
  10. >From POSIX.2 Draft 11 (unchanged for several drafts):
  11.  
  12.     B.3.1.3 Returns
  13.  
  14.     If command is NULL, the system() function shall return nonzero.
  15.  
  16.     If comamnd is not NULL, the system() function shall return the
  17.     termination status of the command language interpreter in the format
  18.     specified by the waitpid() function in POSIX.1.  The termination status
  19.     of the c.l.i. is as specified by the sh utility, except that if some
  20.     error prevents the c.l.i. from executing after the child process is
  21.     created, the return value from system() shall be as of the c.l.i.
  22.     had terminated using exit(127) or _exit(127).  If a child process
  23.     cannot be created, or if the terminaton status of the c.l.i. cannot
  24.     be obtained, system() shall return -1 and set errno to indicate the
  25.     error.
  26.  
  27. David A. Willcox        "Just say 'NO' to universal drug testing"
  28. Motorola TSD - Urbana        UUCP: ...!uiucuxc!udc!willcox
  29. 1101 E. University Ave.        INET: willcox@urbana.mcd.mot.com
  30. Urbana, IL 61801        FONE: 217-384-8534
  31.  
  32.  
  33. Volume-Number: Volume 23, Number 19
  34.  
  35.