diff options
Diffstat (limited to 'gcc-4.8.1/libgo/runtime/mem_posix_memalign.c')
-rw-r--r-- | gcc-4.8.1/libgo/runtime/mem_posix_memalign.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/gcc-4.8.1/libgo/runtime/mem_posix_memalign.c b/gcc-4.8.1/libgo/runtime/mem_posix_memalign.c deleted file mode 100644 index 8acdf0705..000000000 --- a/gcc-4.8.1/libgo/runtime/mem_posix_memalign.c +++ /dev/null @@ -1,48 +0,0 @@ -#include <errno.h> - -#include "runtime.h" -#include "arch.h" -#include "malloc.h" - -void* -runtime_SysAlloc(uintptr n) -{ - void *p; - - mstats.sys += n; - errno = posix_memalign(&p, PageSize, n); - if (errno > 0) { - perror("posix_memalign"); - exit(2); - } - return p; -} - -void -runtime_SysUnused(void *v, uintptr n) -{ - USED(v); - USED(n); - // TODO(rsc): call madvise MADV_DONTNEED -} - -void -runtime_SysFree(void *v, uintptr n) -{ - mstats.sys -= n; - free(v); -} - -void* -runtime_SysReserve(void *v, uintptr n) -{ - USED(v); - return runtime_SysAlloc(n); -} - -void -runtime_SysMap(void *v, uintptr n) -{ - USED(v); - USED(n); -} |