[PATCH] x32: update {g,s}etsockopt syscall numbers

Dmitry V. Levin ldv at altlinux.org
Wed Aug 22 16:56:36 UTC 2012


On Wed, Aug 22, 2012 at 11:56:15AM -0400, Mike Frysinger wrote:
> Starting with linux 3.6 (and backported to earlier kernels), these two
> syscalls have changed numbers (moving from native to compat entry points).
> Update the strace syscall list accordingly.

What will happen with applications using old syscall numbers (if any)?
Will they get ENOSYS?

> * linux/x32/syscallent.h: Move setsockopt from 54 to 541, and move
> getsockopt from 55 to 542.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> Note: I'm not sure about the old entry points.  Should they get relabeled
> 	as "old" ?  Or just leave them as is ?

From one side, the rule is to stick to __NR_* names as close as possible.
From another side, it's desirable to decode syscalls on older kernels
properly.  So maybe we should rather leave old entry points for
compatibility.


-- 
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/20120822/a3c482fa/attachment.bin>


More information about the Strace-devel mailing list