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

Side by Side Diff: src/trusted/service_runtime/nacl_syscall_handlers_gen.py

Issue 23484041: Split filename-based syscall implementations into a separate file (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix missing #includes for Windows Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # 5 #
6 # This script produces wrapped versions of syscall implementation 6 # This script produces wrapped versions of syscall implementation
7 # functions. The wrappers extract syscall arguments from where the 7 # functions. The wrappers extract syscall arguments from where the
8 # syscall trampoline saves them. 8 # syscall trampoline saves them.
9 # 9 #
10 # Note that NaCl modules are always ILP32 and compiled with a 10 # Note that NaCl modules are always ILP32 and compiled with a
(...skipping 14 matching lines...) Expand all
25 /* 25 /*
26 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 26 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
27 * 27 *
28 * Automatically generated code. See nacl_syscall_handlers_gen.py 28 * Automatically generated code. See nacl_syscall_handlers_gen.py
29 * 29 *
30 * NaCl Server Runtime Service Call abstractions 30 * NaCl Server Runtime Service Call abstractions
31 */ 31 */
32 32
33 #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h" 33 #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h"
34 #include "native_client/src/trusted/service_runtime/sys_exception.h" 34 #include "native_client/src/trusted/service_runtime/sys_exception.h"
35 #include "native_client/src/trusted/service_runtime/sys_filename.h"
35 #include "native_client/src/trusted/service_runtime/sys_imc.h" 36 #include "native_client/src/trusted/service_runtime/sys_imc.h"
36 #include "native_client/src/trusted/service_runtime/sys_list_mappings.h" 37 #include "native_client/src/trusted/service_runtime/sys_list_mappings.h"
37 """ 38 """
38 39
39 40
40 TABLE_INITIALIZER = """\ 41 TABLE_INITIALIZER = """\
41 42
42 /* auto generated */ 43 /* auto generated */
43 44
44 void NaClSyscallTableInit() { 45 void NaClSyscallTableInit() {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 protos = SYSCALL_LIST 354 protos = SYSCALL_LIST
354 print >>output_dst, data 355 print >>output_dst, data
355 PrintImplSkel(arch, protos, output_dst) 356 PrintImplSkel(arch, protos, output_dst)
356 PrintSyscallTableInitializer(protos, output_dst) 357 PrintSyscallTableInitializer(protos, output_dst)
357 358
358 return 0 359 return 0
359 360
360 361
361 if __name__ == '__main__': 362 if __name__ == '__main__':
362 sys.exit(main(sys.argv)) 363 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/nacl_syscall_common.c ('k') | src/trusted/service_runtime/service_runtime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698