Ignore:
Timestamp:
Feb 1, 2019, 9:57:09 PM (5 years ago)
Author:
coas-nagasima
Message:

TINETとSocket APIなどを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/internal/syscall.h

    r342 r364  
    4444#endif
    4545#define __syscall7(n,a,b,c,d,e,f,g) (__syscall)(n,__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f),__scc(g))
    46 #endif
     46
    4747#define __SYSCALL_NARGS_X(a,b,c,d,e,f,g,h,n,...) n
    4848#define __SYSCALL_NARGS(...) __SYSCALL_NARGS_X(__VA_ARGS__,7,6,5,4,3,2,1,0,)
     
    5050#define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X(a,b)
    5151#define __SYSCALL_DISP(b,...) __SYSCALL_CONCAT(b,__SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__)
    52 #if 0
     52#endif
    5353#define __syscall(...) __SYSCALL_DISP(__syscall,__VA_ARGS__)
    54 #define syscall(...) __syscall_ret(__syscall(__VA_ARGS__))
    55 #endif
     54//#define syscall(...) __syscall_ret(__syscall(__VA_ARGS__))
     55
    5656#define socketcall __socketcall
    5757#define socketcall_cp __socketcall_cp
     
    6464#define __syscall_cp5(n,a,b,c,d,e) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),0)
    6565#define __syscall_cp6(n,a,b,c,d,e,f) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f))
    66 
     66#endif
    6767#define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__)
    68 #define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__))
    69 #endif
     68//#define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__))
    7069
    7170#ifndef SYSCALL_USE_SOCKETCALL
Note: See TracChangeset for help on using the changeset viewer.