Problem with setrlimit() on ia-32 Execution Layer

Hello,

I am trying to run an x86 application on SLES 11 for ia-64 trough the
ia-32 Execution Layer.
This application calls setrlimit() to change de queue limits.

It works fine when executed on x86 processors. However, when I run it
on an Itanium it returns the exit code 22 (Invalid argument).

I created a simple program to test if the problem was related with the
resource number.
It tries to set all resources limits (resources 0 to 14).
When compiling this test for ia64, it works nice. Also, when compiling
it for x86 and running on x86 processor. However, it failed on Itanium
when compiled for x86 with resources 11 to 14.

Thank you in advance.

±---------------------------------------------------------------------+
|Filename: setrlimit-test.zip |
|Download: http://forums.novell.com/attachment.php?attachmentid=4153 |
±---------------------------------------------------------------------+


tuliom

tuliom’s Profile: http://forums.novell.com/member.php?userid=67690
View this thread: http://forums.novell.com/showthread.php?t=405098

It looks like the problem is on file
src/ia32x_utils/include/kernel_subst64.h of the ia-32 Execultion Layer.

I can create a patch for it but I don’t know where I should send it.


tuliom

tuliom’s Profile: http://forums.novell.com/member.php?userid=67690
View this thread: http://forums.novell.com/showthread.php?t=405098