mm/umm_heap: sbrk() is only available in the KERNEL build.

This commit is contained in:
Gregory Nutt 2019-02-04 10:32:31 -06:00
parent b1001b4e50
commit 90e4cf4349
5 changed files with 8 additions and 6 deletions

View File

@ -54,7 +54,7 @@
* Name: up_signal_dispatch
*
* Description:
* In this kernel mode build, this function will be called to execute a
* In the kernel mode build, this function will be called to execute a
* a signal handler in user-space. When the signal is delivered, a
* kernel-mode stub will first run to perform some housekeeping functions.
* This kernel-mode stub will then be called transfer control to the user

View File

@ -59,7 +59,7 @@
FAR void *calloc(size_t n, size_t elem_size)
{
#ifdef CONFIG_ARCH_ADDRENV
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
/* Use zalloc() because it implements the sbrk() logic */
FAR void *ret = NULL;

View File

@ -65,7 +65,7 @@
FAR void *memalign(size_t alignment, size_t size)
{
#ifdef CONFIG_ARCH_ADDRENV
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
FAR void *brkaddr;
FAR void *mem;

View File

@ -67,7 +67,7 @@
FAR void *realloc(FAR void *oldmem, size_t size)
{
#ifdef CONFIG_ARCH_ADDRENV
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
FAR void *brkaddr;
FAR void *mem;

View File

@ -56,7 +56,8 @@
* Name: nxsig_kill
*
* Description:
* The nxsig_kill() system call can be used to send any signal to any task.
* The nxsig_kill() system call can be used to send any signal to any task
* group.
*
* This is an internal OS interface. It is functionally equivalent to
* the POSIX standard kill() function but does not modify the application
@ -135,7 +136,8 @@ int nxsig_kill(pid_t pid, int signo)
* Name: kill
*
* Description:
* The kill() system call can be used to send any signal to any task.
* The kill() system call can be used to send any signal to any task
* group.
*
* Limitation: Sending of signals to 'process groups' is not
* supported in NuttX