internal.h 679 B

12345678910111213141516171819202122232425262728
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. #ifndef __INTERNAL_H__
  4. #define __INTERNAL_H__
  5. #include <stddef.h>
  6. #include <stdint.h>
  7. #include <stdarg.h>
  8. #include "api.h"
  9. #define PAL_LOADER XSTRINGIFY(PAL_LOADER_PATH)
  10. #ifdef __x86_64__
  11. # include "sysdep-x86_64.h"
  12. #endif
  13. #define IS_ERR INTERNAL_SYSCALL_ERROR
  14. #define IS_ERR_P INTERNAL_SYSCALL_ERROR_P
  15. #define ERRNO INTERNAL_SYSCALL_ERRNO
  16. #define ERRNO_P INTERNAL_SYSCALL_ERRNO_P
  17. int printf (const char * fmt, ...);
  18. void * malloc (int size);
  19. void free (void * mem);
  20. #endif /* __INTERNAL_H__ */