


     ulimit(XOPEN.os/proRelease	4.4.1 (UniSoftulimit(XOPEN.os/procenv)



     NAME
	  XOPEN.os/procenv/ulimit - get	and set	user limits testset

     DESCRIPTION
	  Ulimit tests the ulimit() system call	interface for
	  conformance to the XSI System	Interfaces Page:ulimit()

     TESTS
     Compliance
	  1    The file	size limit of the process expressed in units
	       of 512-byte blocks returned to the calling process,
	       when cmd	= UL_GETFSIZE.

	  2    Files of	any size may be	read by	any process, but only
	       those with maximum size less than or equal to the value
	       returned	by ulimit() may	be written.

	  3    The file	size limit of a	non super user process is set
	       to the value of newlimit	, if cmd = UL_SETFSIZE and
	       newlimit	is less	than the current file size limit.

	  4    The file	size limit of a	process	is increased or
	       decreased to the	value of newlimit, when	cmd =
	       UL_SETFSIZE and effective user ID of the	process	is
	       super user.

     Deviance
	  5    EPERM in	errno, limits unchanged	and -1 returned	by
	       ulimit()	if a process with an effective user ID other
	       than super user attempts	to increase its	file size
	       limit.

	  6    EINVAL in errno,	limits unchanged and -1	returned by
	       ulimit()	when the command is not	a valid	value.

     Associated	Tests
	  1    see fork(os.knl/proc) and exec(os.knl/proc) test	for
	       the inheritance of file size limit across fork()	and
	       exec() sytem calls.

     UNDEFINED ASPECTS
	  1    value of	"errno"	undefined, when	an invalid value for
	       cmd is specified. No assumption is made.

     SPECIAL CONDITIONS
	  1    Super-user privileges are required to run test 4.

     OUTPUTS
     Tests:
	  1-2  Pass/Fail indication only.

	  3-4  Pass/Fail indication - failure information includes



     Page 1					    (printed 2/21/103)






     ulimit(XOPEN.os/proRelease	4.4.1 (UniSoftulimit(XOPEN.os/procenv)



	       expected	and detected file size limits.

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

     DELETIONS
	  Test 4 will be deleted if the	effective user-ID of the
	  calling process is not super-user.
	  Test 5 will be deleted if the	effective user-ID of the
	  calling process is super-user.

     PARAMETERS
	  1    VSX_ULIMIT_BLKS : contains  the smallest	number of 512
	       byte blocks for which a file size limit set with
	       ulimit()	will function correctly	(-1 if not supported).

     RELEASE
	  4.4.1	(06/09/97)





































     Page 2					    (printed 2/21/103)



