Cygwin: lseek: propagate new SEEK_DATA and SEEK_HOLE to fhandler
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
5b53633b5d
commit
b6fbe0fc2e
|
@ -1559,7 +1559,7 @@ lseek (int fd, off_t pos, int dir)
|
|||
{
|
||||
off_t res;
|
||||
|
||||
if (dir != SEEK_SET && dir != SEEK_CUR && dir != SEEK_END)
|
||||
if (dir < SEEK_SET || dir > SEEK_HOLE)
|
||||
{
|
||||
set_errno (EINVAL);
|
||||
res = -1;
|
||||
|
|
Loading…
Reference in New Issue