CH32V307_Template/src/syscalls.c

23 lines
314 B
C

#include <sys/stat.h>
int _fstat(int file, struct stat *st) {
st->st_mode = S_IFCHR;
return 0;
}
int _close(int file) {
return -1;
}
int _isatty(int file) {
return -1;
}
off_t _lseek(int file, off_t pos, int whence) {
return -1;
}
int _read(int file, char *ptr, int len) {
return 0;
}