Q: can rlim_t be a long long type on linux

Dmitry V. Levin ldv at altlinux.org
Fri Mar 16 19:23:47 UTC 2012


Hi,

While writing a prlimit64 syscall parser I found a seemingly dead
HAVE_LONG_LONG_RLIM_T code in resource.c that implements [gs]etrlimit
parsers for systems where sizeof(rlim_t) == sizeof(long long).

Looking at "struct rlimit" and "struct compat_rlimit" definitions in
include/linux/resource.h and include/linux/compat.h I see no way for
sizeof(rlim_t) to be greater than sizeof(long) on linux.

Is it correct that rlim_t cannot be a long long type on linux,
or am I missing something?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120316/9460e67f/attachment.bin>


More information about the Strace-devel mailing list