newlib.c 343 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * (c) danielinux 2019
  3. * GPLv.2
  4. *
  5. * See LICENSE for details
  6. */
  7. #include <stdlib.h>
  8. #include <stdint.h>
  9. int _close(int fd)
  10. {
  11. return -1;
  12. }
  13. int _fstat(int fd)
  14. {
  15. return -1;
  16. }
  17. int _lseek(int fd, int whence, int off)
  18. {
  19. return -1;
  20. }
  21. int _read(uint8_t *buf, int len)
  22. {
  23. return -1;
  24. }
  25. int _isatty(int fd)
  26. {
  27. return 1;
  28. }