Linux brk() syscall returns the new program break
The behavior of the Linux brk() system call is different from the
behavior provided by the glibc wrapper. The actual system call
returns the new program break on success. On failure, the system
call returns the current break.
This change fixes the LSS brk() declaration to match the Linux system
call rather than that of the glibc wrapper.
BUG= none
TEST= none
R=mseaborn@chromium.org
Review URL: https://codereview.chromium.org/22999007
git-svn-id: http://linux-syscall-support.googlecode.com/svn/trunk/lss@22 829466d3-f3f5-3ae4-62ad-de35cf9bba21
diff --git a/linux_syscall_support.h b/linux_syscall_support.h
index cbd199b..f2eaa3e 100644
--- a/linux_syscall_support.h
+++ b/linux_syscall_support.h
@@ -2721,7 +2721,7 @@
#define __NR__exit __NR_exit
#define __NR__gettid __NR_gettid
#define __NR__mremap __NR_mremap
- LSS_INLINE _syscall1(int, brk, void *, e)
+ LSS_INLINE _syscall1(void *, brk, void *, e)
LSS_INLINE _syscall1(int, chdir, const char *,p)
LSS_INLINE _syscall1(int, close, int, f)
LSS_INLINE _syscall2(int, clock_getres, int, c,