Browse Source

Add missing fstat & isatty

teensy4-core
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

return -1; 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) int _lseek(int fd, long long offset, int whence)
{ {
return -1; return -1;

Loading…
Cancel
Save