lkml.org 
[lkml]   [2018]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/6] provide a generic io_syscall6
    Date
    This allows to call a 6-argument syscall using the generic syscall()
    function from libc. No arch-specific version is specified as it would
    be a lot of effort for very little gain.

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    ---
    src/syscall.h | 9 +++++++++
    1 file changed, 9 insertions(+)

    diff --git a/src/syscall.h b/src/syscall.h
    index 3819519..e7ff81b 100644
    --- a/src/syscall.h
    +++ b/src/syscall.h
    @@ -39,3 +39,12 @@
    #warning "using generic syscall method"
    #include "syscall-generic.h"
    #endif
    +
    +#ifndef io_syscall6
    +#define io_syscall6(type,fname,sname,type1,arg1,type2,arg2,type3,arg3, \
    + type4,arg4,type5,arg5,type6,arg6) \
    +type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \
    + type6 arg6) \
    +_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4, \
    + (long)arg5, (long)arg5)
    +#endif /* io_syscall6 */
    --
    2.14.2
    \
     
     \ /
      Last update: 2018-01-04 09:06    [W:3.477 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site