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

Unified Diff: src/untrusted/nacl/sbrk_private.c

Issue 12209042: Ensure syscall functions are consistently prefixed with "NaClSys" (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/untrusted/irt/irt_memory.c ('k') | src/untrusted/nacl/sysbrk.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/sbrk_private.c
diff --git a/src/untrusted/nacl/sbrk_private.c b/src/untrusted/nacl/sbrk_private.c
index 9a53b26025996b81850053fa4ea193740d31e2c5..af9918ba1d6a77389f7cd81bf0c37ccfd4f440c8 100644
--- a/src/untrusted/nacl/sbrk_private.c
+++ b/src/untrusted/nacl/sbrk_private.c
@@ -20,13 +20,13 @@ void *sbrk(intptr_t increment) {
void *new_break;
if (0 == current_break)
- current_break = NACL_SYSCALL(sysbrk)(0);
+ current_break = NACL_SYSCALL(brk)(0);
old_break = current_break;
new_break = old_break + increment;
if (new_break != old_break) {
- new_break = NACL_SYSCALL(sysbrk)(new_break);
+ new_break = NACL_SYSCALL(brk)(new_break);
if (new_break == old_break) {
errno = ENOMEM;
return (void *) -1;
« no previous file with comments | « src/untrusted/irt/irt_memory.c ('k') | src/untrusted/nacl/sysbrk.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698