NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49617: posix_fallocate() should be returning an error on failure, without setting errno.



The following reply was made to PR kern/49617; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49617: posix_fallocate() should be returning an error on
 failure, without setting errno.
Date: Sun, 30 Aug 2015 19:26:24 +0000

 On Sat, Jan 31, 2015 at 09:45:00PM +0000, kirk%ba23.org@localhost wrote:
  > The NetBSD-7 implementation of posix_fallocate() returns -1 and
  > sets errno on failure.  The spec says the call should be returning
  > an error number, without setting the errno.
 
 Uuugh, sorry for not being aware of that.
 
 ISTM that this is a reason to have a native fallocate() that doesn't
 have this interface bug.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index