[CRIU] [PATCH 3/3] x86: Implement prlimit proxy

Cyrill Gorcunov gorcunov at openvz.org
Thu May 23 05:34:52 EDT 2013


RHEL6 is shipped with libc 2.12 where no prlimit
helper provided (which was pushed into libc itself
since 2.13). So we implement own proxy for convenience.

Note, if libc does support prlimit itself we simply
don't use any proxy and call it directly.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/Makefile              |  1 +
 arch/x86/include/asm/prlimit.h | 14 +++++++++
 arch/x86/include/asm/types.h   |  1 +
 arch/x86/prlimit.c             | 69 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 85 insertions(+)
 create mode 100644 arch/x86/include/asm/prlimit.h
 create mode 100644 arch/x86/prlimit.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-x86-Implement-prlimit-proxy.patch
Type: text/x-patch
Size: 2999 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130523/61d4355a/attachment.bin>


More information about the CRIU mailing list