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

Unified Diff: src/trusted/service_runtime/nacl_syscall_handlers_gen.py

Issue 537543003: Add a get_random_bytes() syscall to replace the SRPC-based implementation (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix glibc tests Created 6 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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/service_runtime/nacl_syscall_handlers_gen.py
diff --git a/src/trusted/service_runtime/nacl_syscall_handlers_gen.py b/src/trusted/service_runtime/nacl_syscall_handlers_gen.py
index b27fd84b0789a4498d6d9300efbb200ad0ec9c98..3bb7f27c04fa062a303de18280ffb6c1cf217782 100755
--- a/src/trusted/service_runtime/nacl_syscall_handlers_gen.py
+++ b/src/trusted/service_runtime/nacl_syscall_handlers_gen.py
@@ -38,6 +38,7 @@ AUTOGEN_HEADER = """\
#include "native_client/src/trusted/service_runtime/sys_list_mappings.h"
#include "native_client/src/trusted/service_runtime/sys_memory.h"
#include "native_client/src/trusted/service_runtime/sys_parallel_io.h"
+#include "native_client/src/trusted/service_runtime/sys_random.h"
"""
@@ -214,6 +215,8 @@ SYSCALL_LIST = [
['uint32_t addr', 'uint32_t value', 'uint32_t abstime_ptr']),
('NACL_sys_futex_wake', 'NaClSysFutexWake',
['uint32_t addr', 'uint32_t nwake']),
+ ('NACL_sys_get_random_bytes', 'NaClSysGetRandomBytes',
+ ['uint32_t buf_addr', 'uint32_t buf_size']),
]
« no previous file with comments | « src/trusted/service_runtime/include/bits/nacl_syscalls.h ('k') | src/trusted/service_runtime/service_runtime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698