dl-syscalls.h 335 B

1234567891011
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* We can't use the real errno in ldso, since it has not yet
  6. * been dynamicly linked in yet. */
  7. #include "sys/syscall.h"
  8. extern int _dl_errno;
  9. #undef __set_errno
  10. #define __set_errno(X) {(_dl_errno) = (X);}