[PATCH] sparc

Dmitry V. Levin ldv at altlinux.org
Sat Feb 19 23:02:40 UTC 2011


On Sat, Feb 19, 2011 at 03:13:05PM -0500, Mike Frysinger wrote:
> I can't find any mention of this header actually being used.  Seems to
> be a really old copy of the common syscall.h.
On Sat, Feb 19, 2011 at 03:32:07PM -0500, Mike Frysinger wrote:
> Sync missing defs from the common syscall.h here.
On Sat, Feb 19, 2011 at 03:48:52PM -0500, Mike Frysinger wrote:
> Rather than constantly deal with the sparc/syscall.h going stale, merge
> the few sparc-specific pieces into the linux/syscall.h header.

Thanks, I'm going to apply all of them.

> Seems to build/run OK on sparc32, and build OK on sparc64.  But I can
> understand if you want to wait to apply this until after 4.5.21.

It's too long-waited fix to wait for the next release.

> +#if defined SPARC || defined SPARC64
> +#include "sparc/syscall1.h"
> +int sys_execv();
> +int sys_getpagesize();
> +int sys_getmsg(), sys_putmsg();
> +
> +int	sys_semsys(), sys_semctl(), sys_semget();
> +#define SYS_semsys_subcall	200
> +#define SYS_semsys_nsubcalls	3
> +#define SYS_semctl		(SYS_semsys_subcall + 0)
> +#define SYS_semget		(SYS_semsys_subcall + 1)
> +#define SYS_semop		(SYS_semsys_subcall + 2)
> +int	sys_msgsys(), sys_msgget(), sys_msgctl(), sys_msgrcv(), sys_msgsnd();
> +#define SYS_msgsys_subcall	203
> +#define SYS_msgsys_nsubcalls	4
> +#define SYS_msgget		(SYS_msgsys_subcall + 0)
> +#define SYS_msgctl		(SYS_msgsys_subcall + 1)
> +#define SYS_msgrcv		(SYS_msgsys_subcall + 2)
> +#define SYS_msgsnd		(SYS_msgsys_subcall + 3)
> +int	sys_shmsys(), sys_shmat(), sys_shmctl(), sys_shmdt(), sys_shmget();
> +#define SYS_shmsys_subcall	207
> +#define SYS_shmsys_nsubcalls	4
> +#define SYS_shmat		(SYS_shmsys_subcall + 0)
> +#define SYS_shmctl		(SYS_shmsys_subcall + 1)
> +#define SYS_shmdt		(SYS_shmsys_subcall + 2)
> +#define SYS_shmget		(SYS_shmsys_subcall + 3)
> +#endif

All sys_sem*, sys_msg* and sys_shm* prototypes except sys_*sys are
already declared earlier in this file, and sys_*sys have no references
elsewhere.


-- 
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/20110220/d67c10bf/attachment.bin>


More information about the Strace-devel mailing list