


     pclose(XOPEN.os/genRelease	4.4.1 (UniSoft pclose(XOPEN.os/genuts)



     NAME
	  XOPEN.os/genuts/pclose - terminate pipe to/from a process
	  testset

     DESCRIPTION
	  Pclose tests the pclose() subroutine call interface for
	  conformance to the XSI System	Interfaces Page:pclose()

     TESTS
     Compliance
	  1    pclose()	waits for the process associated with the
	       stream to terminate before closing stream.

	  2    pclose()	returns	the exit status	of command.

	  3    When a process has created child	processes and also
	       makes a call to pclose(), then the termination status
	       of the child processes other than those created by the
	       call to popen(),	are not	affected by the	call to
	       pclose().
	       Not tested in XPG3 mode.

     Deviance
	  4    pclose()	returns	-1 if stream is	not associated with a
	       popen() command.
	       Tested in XPG3 mode only.

	  5    pclose()	returns	-1 and sets errno to ECHILD if the
	       status of the child can not be obtained.

	  6    When an error prevents the command language interpreter
	       from executing after the	child process is created, then
	       the return value	from a call to pclose()	is as if the
	       command language	interpreter had	terminated using
	       exit(127) or _exit(127).
	       Not tested in XPG3 mode.

     OUTPUTS
     Tests:
	  1    Pass/Fail indication only.

	  2    Pass/Fail indication - failure information includes
	       expected	and detected return value.

	  3    Pass/Fail indication only.

	  4    Pass/Fail indication - failure information includes
	       expected	and detected return value.

	  5    Pass/Fail indication - failure information includes
	       expected	and detected errno and return value.




     Page 1					    (printed 2/21/103)






     pclose(XOPEN.os/genRelease	4.4.1 (UniSoft pclose(XOPEN.os/genuts)



	  6    Pass/Fail indication - failure information includes
	       expected	and detected return value.

     RELEASE
	  4.4.1	(06/09/97)


















































     Page 2					    (printed 2/21/103)



