ulimit emulation for SCO (and all other which use
default svr4_ulimit) fails with error -1 when there
is no ulimit for RLIMIT_DATA set, as callers
represent ~0UL as error -1 :-(
And because of I had problems (on SCO) also with
other "negative" values, I finally changed
U_GETMEMLIMIT to return at most 2GB-1 - with such
value our app (Dataflex) survives.
I hope that patch gets correctly through WWW interface
... Please apply.
Petr Vandrovec
--- old/abi/svr4/ulimit.c.orig 2002-12-16 20:49:57.
000000000 +0100
+++ ok/abi/svr4/ulimit.c 2002-12-18 23:17:09.
000000000 +0100
@@ -58,7 +58,8 @@
return 0;
case U_GETMEMLIM:
- return current->rlim[RLIMIT_DATA].
rlim_cur;
+ return current->rlim[RLIMIT_DATA].
rlim_cur > 0x7FFFFFFFUL ?
+ 0x7FFFFFFFUL : current->rlim[
RLIMIT_DATA].rlim_cur;
case U_GETMAXOPEN:
return current->rlim[RLIMIT_NOFILE].
rlim_cur;
Logged In: NO
Hm, apparently it did not. You can get patch
from http://platan.vc.cvut.cz/ulm.txt.
Petr Vandrovec
Logged In: YES
user_id=182121
The original code is still unchanged. Could anybody ever
reproduce that?