posix_fadvise() *returns* error codes but does not set errno
Also updates the fhandler_*::fadvise implementations to adhere to the same semantics.
This commit is contained in:
committed by
Corinna Vinschen
parent
076ce7098f
commit
8c8cdd9ad7
@ -165,8 +165,7 @@ fhandler_pipe::lseek (off_t offset, int whence)
|
||||
int
|
||||
fhandler_pipe::fadvise (off_t offset, off_t length, int advice)
|
||||
{
|
||||
set_errno (ESPIPE);
|
||||
return -1;
|
||||
return ESPIPE;
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user