* @brief Adjusts the end of the data segment (heap) of the calling process. * * This system call changes the location of the program break, which defines the end of * the data segment (heap) of the calling process. It provides a unified interface for adjusting * the heap size. The `addr` parameter specifies the new location for the program break. * * @param addr The new program break locatio
| 1962 | * @see malloc(), free(), sys_sbrk() |
| 1963 | */ |
| 1964 | rt_base_t sys_brk(void *addr) |
| 1965 | { |
| 1966 | return lwp_brk(addr); |
| 1967 | } |
| 1968 | |
| 1969 | /** |
| 1970 | * @brief Maps a file or device into memory. |