|
Last change
on this file since 2254 was 2254, checked in by bird, 20 years ago |
|
o LIBC_ASSERT*() are for internal libc errors, LIBCLOG_ERROR*() are
for user related error. Big code adjustements.
o Fixed a few smaller issues.
o Started fixing exec() backend.
|
-
Property cvs2svn:cvs-rev
set to
1.4
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
590 bytes
|
| Line | |
|---|
| 1 | /* defrelea.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */
|
|---|
| 2 |
|
|---|
| 3 | #include "libc-alias.h"
|
|---|
| 4 | #include <stdlib.h>
|
|---|
| 5 | #include <stddef.h>
|
|---|
| 6 | #include <umalloc.h>
|
|---|
| 7 | #include <sys/builtin.h> /* For <sys/fmutex.h> */
|
|---|
| 8 | #include <sys/fmutex.h>
|
|---|
| 9 | #include <emx/umalloc.h>
|
|---|
| 10 | #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_HEAP
|
|---|
| 11 | #include <InnoTekLIBC/logstrict.h>
|
|---|
| 12 |
|
|---|
| 13 | void _um_default_release (Heap_t h, void *memory, size_t size)
|
|---|
| 14 | {
|
|---|
| 15 | LIBCLOG_ENTER("h=%p memory=%p size=%d\n", (void *)h, memory, size);
|
|---|
| 16 | void *cur;
|
|---|
| 17 |
|
|---|
| 18 | cur = sbrk (0);
|
|---|
| 19 | if (_UM_ADD (memory, size) == cur)
|
|---|
| 20 | sbrk (-size);
|
|---|
| 21 | LIBCLOG_RETURN_VOID();
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.