aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/dl-sysdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/dl-sysdep.c')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 2bfa64f02a..dec00f35f0 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -591,6 +591,16 @@ __getcwd (char *buf, size_t size)
return NULL;
}
+/* This is used by dl-tunables.c to strdup strings. We can just make this a
+ mere allocation. */
+void *
+__sbrk (intptr_t increment)
+{
+ vm_address_t addr;
+ __vm_allocate (__mach_task_self (), &addr, increment, 1);
+ return (void *) addr;
+}
+
void weak_function attribute_hidden
_exit (int status)
{