* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
dummy file positions as on Linux.
This commit is contained in:
parent
3a2f070f31
commit
959684bf05
|
@ -1,3 +1,8 @@
|
||||||
|
2009-10-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
|
||||||
|
dummy file positions as on Linux.
|
||||||
|
|
||||||
2009-10-20 Corinna Vinschen <corinna@vinschen.de>
|
2009-10-20 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* registry.cc (reg_key::get_int): Add alternative implementation
|
* registry.cc (reg_key::get_int): Add alternative implementation
|
||||||
|
|
|
@ -160,11 +160,6 @@ fhandler_dev_random::lseek (_off64_t off, int whence)
|
||||||
set_errno (EINVAL);
|
set_errno (EINVAL);
|
||||||
return (_off64_t) -1;
|
return (_off64_t) -1;
|
||||||
}
|
}
|
||||||
if (new_off < 0)
|
|
||||||
{
|
|
||||||
set_errno (EINVAL);
|
|
||||||
return (_off64_t) -1;
|
|
||||||
}
|
|
||||||
return dummy_offset = new_off;
|
return dummy_offset = new_off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue