posix_fallocate(2) && posix_fadvise(2) are somewhat broken
    Dag-Erling Smørgrav 
    des at des.no
       
    Tue Dec  8 15:52:14 UTC 2015
    
    
  
Maxim Sobolev <sobomax at FreeBSD.org> writes:
> Hi, while working on some unrelated feature I've noticed that at least
> those two system calls are not returning proper value (-1) on error.
> Instead actual errno value is returned from the syscall verbatim,
> i.e. posix_fadvise() returns 22 on EINVAL.
That's how syscalls work.
DES
-- 
Dag-Erling Smørgrav - des at des.no
    
    
More information about the freebsd-current
mailing list