[CRIU] [PATCH 0/4] build: syscalls -- Define own SYS_memfd_create

Laurent Dufour ldufour at linux.vnet.ibm.com
Tue Mar 15 05:58:26 PDT 2016


On 15/03/2016 13:41, Cyrill Gorcunov wrote:
> Guys, take a look please. Sometime like this I suppose.
> 
> Cyrill Gorcunov (4):
>   build: criu -- Don't link with syscalls library
>   build: syscalls -- Use ifdef form for inclusion together with system
>     headers
>   build: syscalls -- Add SYS_memfd_create

Instead of the patches 2 and 3 of this series, I'd propose the attached
patch which conditionally defines __NR_* and SYS_* constants for all the
system calls.

When adding system call in the future, they will be handle automatically
if the C library is not managing them.

Cheers,
Laurent.

>   criu: Use __NR_memfd_create for testing memfd presence
> 
>  criu/Makefile                         | 2 +-
>  criu/arch/ppc64/Makefile.syscalls     | 6 +++++-
>  criu/arch/scripts/arm/gen-syscalls.pl | 8 +++++++-
>  criu/arch/x86/Makefile.syscalls       | 6 +++++-
>  criu/kerndat.c                        | 1 +
>  criu/shmem.c                          | 1 +
>  scripts/feature-tests.mak             | 4 ++--
>  7 files changed, 22 insertions(+), 6 deletions(-)
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-build-Conditionally-defined-SYS_-constants.patch
Type: text/x-patch
Size: 3600 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160315/be015fec/attachment.bin>


More information about the CRIU mailing list