internal.h 723 B

123456789101112131415161718192021222324252627282930
  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. #else
  13. # error "unsupported architecture"
  14. #endif
  15. #define IS_ERR INTERNAL_SYSCALL_ERROR
  16. #define IS_ERR_P INTERNAL_SYSCALL_ERROR_P
  17. #define ERRNO INTERNAL_SYSCALL_ERRNO
  18. #define ERRNO_P INTERNAL_SYSCALL_ERRNO_P
  19. int printf (const char * fmt, ...);
  20. void * malloc (size_t size);
  21. void free (void * mem);
  22. #endif /* __INTERNAL_H__ */