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

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

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 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 | « src/trusted/service_runtime/linux/ld_bfd.py ('k') | src/trusted/service_runtime/osx/run_mig.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env 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
11 # compiler that passes all arguments on the stack, but the service 11 # compiler that passes all arguments on the stack, but the service
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 protos = SYSCALL_LIST 341 protos = SYSCALL_LIST
342 print >>output_dst, data 342 print >>output_dst, data
343 PrintImplSkel(arch, protos, output_dst) 343 PrintImplSkel(arch, protos, output_dst)
344 PrintSyscallTableInitializer(protos, output_dst) 344 PrintSyscallTableInitializer(protos, output_dst)
345 345
346 return 0 346 return 0
347 347
348 348
349 if __name__ == '__main__': 349 if __name__ == '__main__':
350 sys.exit(main(sys.argv)) 350 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/linux/ld_bfd.py ('k') | src/trusted/service_runtime/osx/run_mig.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698