cvs commit: src/sys/kern kern_descrip.c

John Baldwin jhb at freebsd.org
Fri Jan 6 09:53:15 PST 2006


On Friday 06 January 2006 11:34 am, Scott Long wrote:
> John Baldwin wrote:
> > jhb         2006-01-06 16:30:30 UTC
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     sys/kern             kern_descrip.c
> >   Log:
> >   Return EBADF rather than EINVAL for FWRITE failure as per POSIX.
> >
> >   MFC after:      1 week
> >
> >   Revision  Changes    Path
> >   1.290     +2 -3      src/sys/kern/kern_descrip.c
>
> Technically this will be an API change if it get's MFC'd, though a
> minor one.  If it needs to go into RELENG_6 then it should be
> clearly documented in the release notes.

Not really because except for the hwpmc(4) driver and the mqueue code (which 
isn't in 6.x yet IIRC), every other caller of fget_write() ignores the errno 
value and hardcodes EBADF, so it won't actually change the errno for any 
applications in 6.x.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list