Changeset 7ad3c2f in mainline for libc/include


Ignore:
Timestamp:
2006-03-14T16:34:17Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00c4994
Parents:
79522a7
Message:

Added malloc implementation.

Location:
libc/include
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • libc/include/malloc.h

    r79522a7 r7ad3c2f  
    4848#define dlmalloc_usable_size   malloc_usable_size
    4949#define dlmalloc_footprint     malloc_footprint
     50#define dlmalloc_max_footprint malloc_max_footprint
    5051#define dlindependent_calloc   independent_calloc
    5152#define dlindependent_comalloc independent_comalloc
     
    163164  so results might not be up to date.
    164165*/
    165 size_t dlmalloc_footprint();
     166size_t dlmalloc_footprint(void);
     167size_t dlmalloc_max_footprint(void);
    166168
    167169#if !NO_MALLINFO
     
    392394  More information can be obtained by calling mallinfo.
    393395*/
    394 void  dlmalloc_stats();
     396void  dlmalloc_stats(void);
    395397
    396398#endif /* !ONLY_MSPACES */
  • libc/include/stdio.h

    r79522a7 r7ad3c2f  
    3737
    3838extern int printf(const char *fmt, ...);
     39#define fprintf(f, fmt, ...) printf(fmt, ##__VA_ARGS__)
    3940
    4041#endif
  • libc/include/unistd.h

    r79522a7 r7ad3c2f  
    3737extern void _exit(int status);
    3838void * mremap(void *address, size_t size, unsigned long flags);
     39void *sbrk(ssize_t incr);
    3940
    4041#endif
Note: See TracChangeset for help on using the changeset viewer.