musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年10月05日 12:00:55 -0400
committerRich Felker <dalias@aerifal.cx>2013年10月05日 12:00:55 -0400
commit8acbe4f81862147af73c05ebb770e2ab4ef5375b (patch)
tree6cea7c531f3f0f773d0358a1a98caaf159c35f9e /src
parenta947d317a2769d90bdb19aa11942b7a0680051d5 (diff)
downloadmusl-8acbe4f81862147af73c05ebb770e2ab4ef5375b.tar.gz
slightly optimize __brk for size
there is no reason to check the return value for setting errno, since brk never returns errors, only the new value of the brk (which may be the same as the old, or otherwise differ from the requested brk, on failure). it may be beneficial to eventually just eliminate this file and make the syscalls inline in malloc.c.
Diffstat (limited to 'src')
-rw-r--r--src/malloc/__brk.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc/__brk.c b/src/malloc/__brk.c
index 0b561ea0..4c9119b4 100644
--- a/src/malloc/__brk.c
+++ b/src/malloc/__brk.c
@@ -3,5 +3,5 @@
uintptr_t __brk(uintptr_t newbrk)
{
- return syscall(SYS_brk, newbrk);
+ return __syscall(SYS_brk, newbrk);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 01:09:45 +0000

AltStyle によって変換されたページ (->オリジナル) /