Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site medstar.UUCP Path: utzoo!linus!gatech!medstar!robin From: robin@medstar.UUCP (Robin Cutshaw) Newsgroups: net.unix-wizards,net.micro.pc Subject: Xenix ulimit (another patch) Message-ID: <190@medstar.UUCP> Date: Fri, 2-Aug-85 15:02:54 EDT Article-I.D.: medstar.190 Posted: Fri Aug 2 15:02:54 1985 Date-Received: Sat, 3-Aug-85 07:48:59 EDT Distribution: net Organization: Medical Systems Technology and Research, Inc., Atlanta, Ga. Lines: 44 Xref: linus net.unix-wizards:11328 net.micro.pc:4500 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 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