[Devel] Re: [PATCH] Add powerpc signalfd syscall numbers

Matt Helsley matthltc at us.ibm.com
Thu Mar 19 23:09:03 PDT 2009


Argh, forgot to mention it's a patch for liblxc and not a kernel patch!

Also I'm taking lxc-devel at lists.sf.net off Cc since it seems to refuse email
from non-members.

On Thu, Mar 19, 2009 at 10:44:20PM -0700, Matt Helsley wrote:
> Add signalfd and signalfd4 syscall number definitions for powerpc so
> that we may compile even with older platform headers.
> 
> Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
> 
> diff --git a/src/lxc/start.c b/src/lxc/start.c
> index 476d695..051e70c 100644
> --- a/src/lxc/start.c
> +++ b/src/lxc/start.c
> @@ -51,6 +51,8 @@
>  #      define __NR_signalfd4 327
>  #    elif __x86_64__
>  #      define __NR_signalfd4 289
> +#    elif __powerpc__
> +#      define __NR_signalfd4 313
>  #    elif __s390x__
>  #      define __NR_signalfd4 322
>  #    endif
> @@ -62,6 +64,8 @@
>  #      define __NR_signalfd 321
>  #    elif __x86_64__
>  #      define __NR_signalfd 282
> +#    elif __powerpc__
> +#      define __NR_signalfd 305
>  #    elif __s390x__
>  #      define __NR_signalfd 316
>  #    endif

As best I can tell the only other syscall nr definitions missing for
powerpc are the checkpoint/restart ones. I figured those were probably
left out intentionally so I did not add them.

Cheers,
	-Matt Helsley
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list