libgloss: bfin: fix sim lseek() syscall

The sim lseek() syscall in the Blackfin libgloss code did not pass down
the "whence" argument making lseek() in general kind of useless.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Michael Frysinger
2011-07-01 20:55:42 +00:00
parent 071fabe6d9
commit ecd3577e1d
2 changed files with 8 additions and 2 deletions

View File

@ -57,12 +57,13 @@ _read (int file, char *ptr, int len)
}
int
_lseek (int file, int ptr, int dir)
_lseek (int file, int ptr, int whence)
{
int block[2];
int block[3];
block[0] = file;
block[1] = ptr;
block[2] = whence;
return do_syscall (SYS_lseek, block);
}