Browse Source

Add missing fstat & isatty

main
PaulStoffregen 11 years ago
parent
commit
f45ddee4e4
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      teensy3/mk20dx128.c

+ 13
- 0
teensy3/mk20dx128.c View File

@@ -356,6 +356,19 @@ int _close(int fd)
return -1;
}

#include <sys/stat.h>

int _fstat(int fd, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}

int _isatty(int fd)
{
return 1;
}

int _lseek(int fd, long long offset, int whence)
{
return -1;

Loading…
Cancel
Save