dl-syscalls.h 556 B

12345678910111213141516171819
  1. /* Define the __set_errno macro as nothing so that INLINE_SYSCALL
  2. * won't set errno, which is important since we make system calls
  3. * before the errno symbol is dynamicly linked. */
  4. #define __set_errno(X) {(void)(X);}
  5. /* Prepare for the case that `__builtin_expect' is not available. */
  6. #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
  7. #define __builtin_expect(x, expected_value) (x)
  8. #endif
  9. #ifndef likely
  10. # define likely(x) __builtin_expect((!!(x)),1)
  11. #endif
  12. #ifndef unlikely
  13. # define unlikely(x) __builtin_expect((!!(x)),0)
  14. #endif
  15. #include "sys/syscall.h"