Adding semihosting support for bmsp
This commit is contained in:
@@ -5,9 +5,16 @@
|
||||
#include <sys/types.h>
|
||||
#include "stub.h"
|
||||
#include "weak_under_alias.h"
|
||||
#include "semihosting.h"
|
||||
|
||||
off_t __wrap_lseek(int fd, off_t ptr, int dir)
|
||||
{
|
||||
#if defined(SEMIHOSTING)
|
||||
if(sh_istty(fd))
|
||||
return 0;
|
||||
sh_seek();
|
||||
return ptr;
|
||||
#endif
|
||||
if (isatty(fd))
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user