Files
codezero/containers/posix/libc/src/k_r_malloc.h
Bahadir Balban 7b5a3c2845 Moved userspace libc to posix container directory.
Issues:
- MM0 needs separate subset of libc and not link with libposix
- FS0 needs separate subset of libc and not link with libposix
- libposix need transforming into a full-blown uclibc for test0
- libc really is a pseudo-libc that needs to be replaced as above.
- Done some hacking to avoid conflicts between pseudo-libc and libposix headers.

Now system working as original, (e.g. execve etc. working)
2009-08-29 15:56:28 +03:00

21 lines
525 B
C

#ifndef _LIBC_K_R_MALLOC_H_
#define _LIBC_K_R_MALLOC_H_
#define NALLOC 0x10000 /* minimum #units to request */
typedef long long Align; /* for alignment to long long boundary */
union header { /* block header */
struct {
union header *ptr; /* next block if on free list */
unsigned size; /* size of this block */
} s;
Align x; /* force alignment of blocks */
};
typedef union header Header;
Header *morecore(unsigned nu);
void __malloc_init(void*, void*);
#endif /* _LIBC_K_R_MALLOC_H_ */