[net.unix-wizards] Xenix ulimit

robin@medstar.UUCP (Robin Cutshaw) (08/02/85)

The previous patch allowed up to a 32 Mb write address.  This multiplies
by 64K that previous limitation...


Patch for 1 Meg ulimit follows...

#adb -w /xenix
*$x
*main+0x39?i			/* mov _u+0x5b4,0800H */
*main+0x3d?x			/* 800 */
*.?w XXXX			/* 800 = XXXX */
*main+0x3f?i			/* mov _u+0x5b6,0H */
*main+0x43?x			/* 0 */
*.?w YYYY			/* 0 = YYYY */
*$q

Replace XXXX with the maximum number of 512 byte blocks that may be
written by any user process.  800 = CDLIMIT from <sys/param.h> which
is defined as (1L<<11), which is 1 Meg.  Other sample sizes are :

	1000	(2 Mb)
	2000	(4 Mb)
	4000	(8 Mb)
	8000	(16 Mb)
	ffff	(32 Mb -1 block)

Replace YYYY with the maximum number of (512*64K) byte blocks...

	0001	(32 Mb)
	0010	(512 Mb) etc.


NOTE :		YYYYXXXX = (daddr_t )u.u_limit

There is no magic size that will suffice in all cases, just what you
wish to live with.

-robin


-- 
----
Robin Cutshaw
uucp:   ...!{akgua,gatech}!medstar!robin