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:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2011-07-01  Mike Frysinger  <vapier@gentoo.org> | ||||||
|  |  | ||||||
|  | 	* bfin/syscalls.c (_lseek): Change 3rd arg name to whence.  Increase | ||||||
|  | 	block array to 3 elements.  Set 3rd element to whence. | ||||||
|  |  | ||||||
| 2011-06-29  Jeff Johnston  <jjohnstn@redhat.com> | 2011-06-29  Jeff Johnston  <jjohnstn@redhat.com> | ||||||
|  |  | ||||||
| 	* arm/Makefile.in: Add $CFLAGS to compile commands for specified .o targets. | 	* arm/Makefile.in: Add $CFLAGS to compile commands for specified .o targets. | ||||||
|   | |||||||
| @@ -57,12 +57,13 @@ _read (int file, char *ptr, int len) | |||||||
| } | } | ||||||
|  |  | ||||||
| int | 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[0] = file; | ||||||
|   block[1] = ptr; |   block[1] = ptr; | ||||||
|  |   block[2] = whence; | ||||||
|  |  | ||||||
|   return do_syscall (SYS_lseek, block); |   return do_syscall (SYS_lseek, block); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user