[libdvdnav-devel] Pointless Checking For Errors On Close
Jean-Baptiste Kempf
jb at videolan.org
Thu Sep 17 14:10:11 CEST 2015
On 17 Sep, Petri Hintukainen wrote :
> On to, 2015-09-17 at 15:00 +1200, Lawrence D'Oliveiro wrote:
> > On Fri, 11 Sep 2015 19:50:29 +1200, I wrote:
> >
> > > Data loss is _not_ possible on closing an input file.
> >
> > See also <http://lwn.net/Articles/576478/>. The conclusion seems quite
> > clear: apart from EBADF (indicating a program bug), close(2) should
> > never return any errors.
>
> ... in linux. And, even if it would return an error, there's nothing we
It returns -1 on Windows.
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the libdvdnav-devel
mailing list