home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Palm / libc / include / stdlib.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  549b  |  29 lines

  1. #ifndef _332_STDLIB_H_
  2. #define _332_STDLIB_H_
  3.  
  4. #include <sys/types.h>
  5. #include "libc_segments.h"
  6.  
  7. #ifndef NULL
  8. #define NULL ((void *) 0)
  9. #endif
  10.  
  11. extern void *malloc (size_t size) SEG_LIBC;
  12. extern void free (void *ptr) SEG_LIBC;
  13. extern void *realloc( void *, size_t) SEG_LIBC;
  14. extern void *calloc( size_t, size_t ) SEG_LIBC;
  15.  
  16. #ifdef __KERNEL__
  17.  
  18. void *kmalloc(int size, void *tcb) SEG_LIBC;
  19. int kfree(void *p) SEG_LIBC;
  20.  
  21. struct mblock {
  22.   struct mblock *next;
  23.   struct mblock *prev;
  24.   int size;
  25. };
  26.  
  27. #endif /* __KERNEL__ */
  28. #endif /* _332_STDLIB_H_ */
  29.