From ecd3577e1df0eb8a0a98666c63741c9cf64e869c Mon Sep 17 00:00:00 2001 From: Michael Frysinger Date: Fri, 1 Jul 2011 20:55:42 +0000 Subject: 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 --- libgloss/bfin/syscalls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libgloss/bfin') diff --git a/libgloss/bfin/syscalls.c b/libgloss/bfin/syscalls.c index 03765bf5d..5b1df8dd0 100644 --- a/libgloss/bfin/syscalls.c +++ b/libgloss/bfin/syscalls.c @@ -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); } -- cgit v1.2.3