or1k: Make open reentrant

or1k uses reentrant calls by default, but there was no open_r defined
which caused failure in C++/C code such as:

int main() { std::cout << "test\n";  return 0; }

or

int main() {open(".", 0);}
This commit is contained in:
Olof Kindgren 2017-02-06 23:38:38 +09:00 committed by Corinna Vinschen
parent debaf9557e
commit d1caad4393
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ _lseek_r(struct _reent *reent, int file, _off_t ptr, int dir)
}
int
_open(struct _reent *reent, char *file, int flags, int mode)
_open_r(struct _reent *reent, const char *file, int flags, int mode)
{
reent->_errno = ENOSYS;
return -1;