


     cuserid(XOPEN.os/prRelease	4.4.1 (UniSofcuserid(XOPEN.os/procenv)



     NAME
	  XOPEN.os/procenv/cuserid - get real or effective user	name

     DESCRIPTION
	  Tests	the cuserid(), system call interface for conformance
	  to the XSI System Interfaces Page:cuserid()

     TESTS
     Compliance
	  1    A successful call to cuserid() when the argument	is not
	       a NULL pointer returns its argument which addresses a
	       string containing the real or effective user name
	       associated with the current process.
	       In XPG3 mode a Warning result is	given if the real user
	       name is returned	rather than the	effective user name.

	  2    A successful call to cuserid() when the argument	is a
	       NULL pointer returns a pointer to the real or effective
	       user name associated with the current process.
	       In XPG3 mode a Warning result is	given if the real user
	       name is returned	rather than the	effective user name.

	  3    An unsuccessful call to cuserid() when the login	name
	       cannot be found and the argument	is not a NULL pointer,
	       returns the argument and	places a NULL character	at the
	       address pointed to by the argument.

	  4    An unsuccessful call to cuserid() when the login	name
	       cannot be found and the argument	is a NULL pointer,
	       returns a NULL pointer.

     OUTPUTS
     Tests:
	  1-2  Pass/Fail/Warning indication - failure information
	       includes	expected and detected return values.

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

     PARAMETERS
	  1    VSX_TTYUSER : login name	of the user running the	tests.
	       Used in tests 1-2.

	  2    VSX_UNUSED_UID :	A valid	user ID	which does not have an
	       entry in	the password database.	Used in	tests 3-4.

     RELEASE
	  4.4.1	(06/09/97)







     Page 1					    (printed 2/21/103)



