Prevent seeks beyond the end of a file. Because the host's lseek() does not
commitffcfafec20b4532ded123bfb50b4c879c7af0a05
authorneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 22 Aug 2015 00:25:39 +0000 (22 00:25 +0000)
committerneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 22 Aug 2015 00:25:39 +0000 (22 00:25 +0000)
treecc4d62b49f2096bbb7ea9b87043a913317c14b79
parentb3429d2354320c383769d8641d7ad097694c389d
Prevent seeks beyond the end of a file. Because the host's lseek() does not
prevent this (by design), we now use fstat() to check in advance that the
proposed new seek position isn't too high.

Error handling for this action has also been changed: errors are now always
reported with ERROR_SEEK_ERROR.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@51022 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
arch/all-unix/filesys/emul_handler/emul_host.c
arch/all-unix/filesys/emul_handler/emul_host_unix.c
arch/all-unix/filesys/emul_handler/emul_unix.h