source: git/omalloc/omAllocFunc.h @ 80f8f6c

spielwiese
Last change on this file since 80f8f6c was fbb4e4, checked in by Felix Janda <felix.janda@…>, 9 years ago
omalloc: Use void *memalign(size_t, size_t) unconditionally All current systems seem to use this prototype. Some systems such as Linux using the musl c library have memalign in <stdlib.h>, which conflicts with the previous prototype void *memalign(void *, size_t).
  • Property mode set to 100644
File size: 835 bytes
Line 
1/*******************************************************************
2 *  File:    omAllocFunc.h
3 *  Purpose: declaration of ANSI-C conforming malloc functions
4 *           which are sure to be functions, which start with the om prefix,
5 *           and end with the Func suffix.
6 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
7 *  Created: 11/99
8 *******************************************************************/
9
10void* omCallocFunc(size_t nmemb, size_t size);
11void* omMallocFunc(size_t size);
12void omFreeFunc(void* addr);
13void* omVallocFunc(size_t size);
14void* omMemalignFunc(size_t size_1, size_t size_2);
15void* omReallocFunc(void* old_addr, size_t new_size);
16char* omStrdupFunc(const char* addr);
17void* omReallocSizeFunc(void* old_addr, size_t old_size, size_t new_size);
18void omFreeSizeFunc(void* addr, size_t size);
Note: See TracBrowser for help on using the repository browser.