Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: fusl/src/internal/syscall.h

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/internal/stdio_impl.h ('k') | fusl/src/ldso/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef _INTERNAL_SYSCALL_H 1 #ifndef _INTERNAL_SYSCALL_H
2 #define _INTERNAL_SYSCALL_H 2 #define _INTERNAL_SYSCALL_H
3 3
4 #include <sys/syscall.h> 4 #include <sys/syscall.h>
5 #include "syscall_arch.h" 5 #include "syscall_arch.h"
6 6
7 #ifndef SYSCALL_RLIM_INFINITY 7 #ifndef SYSCALL_RLIM_INFINITY
8 #define SYSCALL_RLIM_INFINITY (~0ULL) 8 #define SYSCALL_RLIM_INFINITY (~0ULL)
9 #endif 9 #endif
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #define __syscall_cp1(n,a) (__syscall_cp)(n,__scc(a),0,0,0,0,0) 56 #define __syscall_cp1(n,a) (__syscall_cp)(n,__scc(a),0,0,0,0,0)
57 #define __syscall_cp2(n,a,b) (__syscall_cp)(n,__scc(a),__scc(b),0,0,0,0) 57 #define __syscall_cp2(n,a,b) (__syscall_cp)(n,__scc(a),__scc(b),0,0,0,0)
58 #define __syscall_cp3(n,a,b,c) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),0,0,0 ) 58 #define __syscall_cp3(n,a,b,c) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),0,0,0 )
59 #define __syscall_cp4(n,a,b,c,d) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),__s cc(d),0,0) 59 #define __syscall_cp4(n,a,b,c,d) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),__s cc(d),0,0)
60 #define __syscall_cp5(n,a,b,c,d,e) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),_ _scc(d),__scc(e),0) 60 #define __syscall_cp5(n,a,b,c,d,e) (__syscall_cp)(n,__scc(a),__scc(b),__scc(c),_ _scc(d),__scc(e),0)
61 #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)) 61 #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))
62 62
63 #define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__) 63 #define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__)
64 #define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__)) 64 #define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__))
65 65
66 #ifdef SYS_socket 66 #ifndef SYSCALL_USE_SOCKETCALL
67 #define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_##nm, a, b, c, d, e, f) 67 #define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_##nm, a, b, c, d, e, f)
68 #define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_##nm, a, b, c, d, e, f) 68 #define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_##nm, a, b, c, d, e, f)
69 #else 69 #else
70 #define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_socketcall, __SC_##nm, \ 70 #define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_socketcall, __SC_##nm, \
71 ((long [6]){ (long)a, (long)b, (long)c, (long)d, (long)e, (long)f })) 71 ((long [6]){ (long)a, (long)b, (long)c, (long)d, (long)e, (long)f }))
72 #define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_socketcall, __SC_##nm, \ 72 #define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_socketcall, __SC_##nm, \
73 ((long [6]){ (long)a, (long)b, (long)c, (long)d, (long)e, (long)f })) 73 ((long [6]){ (long)a, (long)b, (long)c, (long)d, (long)e, (long)f }))
74 #endif 74 #endif
75 75
76 /* fixup legacy 16-bit junk */ 76 /* fixup legacy 16-bit junk */
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 #define __sys_open_cp3(x,pn,fl,mo) __syscall_cp4(SYS_openat, AT_FDCWD, pn, (fl)| O_LARGEFILE, mo) 234 #define __sys_open_cp3(x,pn,fl,mo) __syscall_cp4(SYS_openat, AT_FDCWD, pn, (fl)| O_LARGEFILE, mo)
235 #endif 235 #endif
236 236
237 #define __sys_open(...) __SYSCALL_DISP(__sys_open,,__VA_ARGS__) 237 #define __sys_open(...) __SYSCALL_DISP(__sys_open,,__VA_ARGS__)
238 #define sys_open(...) __syscall_ret(__sys_open(__VA_ARGS__)) 238 #define sys_open(...) __syscall_ret(__sys_open(__VA_ARGS__))
239 239
240 #define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__) 240 #define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__)
241 #define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__)) 241 #define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__))
242 242
243 #endif 243 #endif
OLDNEW
« no previous file with comments | « fusl/src/internal/stdio_impl.h ('k') | fusl/src/ldso/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698