[PATCH] Implement parsers for new linux syscalls

Dmitry V. Levin ldv at altlinux.org
Thu Jan 1 23:41:50 UTC 2009


On Fri, Oct 24, 2008 at 03:36:07AM +0400, Dmitry V. Levin wrote:
> 2008-10-23  Dmitry V. Levin <ldv at altlinux.org>
> 
> 	Implement parsers for new linux syscalls.
> 	* desc.c (do_dup2, sys_dup3): New functions.
> 	(sys_dup2): Use do_dup2.
> 	(sys_epoll_create1): New function.
> 	(do_eventfd, sys_eventfd2): New functions.
> 	(sys_eventfd): Use do_eventfd.
> 	* net.c (do_pipe, sys_pipe2): New functions.
> 	(sys_pipe): Use do_pipe.
> 	* signal.c (do_signalfd, sys_signalfd4): New functions.
> 	(sys_signalfd): Use do_signalfd.
> 	* linux/syscall.h: Declare new sys_* functions.
> 	* linux/syscallent.h: Hook up signalfd4, eventfd2, epoll_create1,
> 	dup3, pipe2, inotify_init1.
> 	* linux/x86_64/syscallent.h: Hook up paccept, signalfd4, eventfd2,
> 	epoll_create1, dup3, pipe2, inotify_init1.
> 
> ---
>  desc.c 		   |   61 +++++++++++++++++++++++++++++++------
>  linux/syscall.h	   |	1 +
>  linux/syscallent.h	   |   12 ++++----
>  linux/x86_64/syscallent.h |	7 ++++
>  net.c  		   |   51 +++++++++++++++++++++----------
>  signal.c		   |   23 ++++++++++++--
>  6 files changed, 120 insertions(+), 35 deletions(-)

BTW, this applied patch adds support for new syscalls only for those two
architectures I use.  If you can test other architectures, please adjust
corresponding linux/*/syscallent.h files.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20090102/df07fa79/attachment.bin>


More information about the Strace-devel mailing list