sane-project-website/old-archive/2001-05/0093.html

127 wiersze
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: EOF detection</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@rauch-domain.de)">
<META NAME="Subject" CONTENT="Re: EOF detection">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: EOF detection</H1>
<!-- received="Tue May 8 08:52:05 2001" -->
<!-- isoreceived="20010508155205" -->
<!-- sent="Tue, 08 May 2001 18:01:47 +0200" -->
<!-- isosent="20010508160147" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@rauch-domain.de" -->
<!-- subject="Re: EOF detection" -->
<!-- id="3AF8186B.7AE1449C@rauch-domain.de" -->
<!-- inreplyto="20010508000421.C8462@vortex.swb.de" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@rauch-domain.de?Subject=Re:%20EOF%20detection&In-Reply-To=&lt;3AF8186B.7AE1449C@rauch-domain.de&gt;"><EM>oliver.rauch@rauch-domain.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue May 08 2001 - 09:01:47 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0094.html">Marian Eichholz: "Re: EOF detection"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0092.html">Oliver Rauch: "SANE CVS mails"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0089.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0094.html">Marian Eichholz: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0094.html">Marian Eichholz: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#93">[ date ]</A>
<A HREF="index.html#93">[ thread ]</A>
<A HREF="subject.html#93">[ subject ]</A>
<A HREF="author.html#93">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Henning Meier-Geinitz wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; On Mon, May 07, 2001 at 08:05:40PM +0200, Oliver Rauch wrote:
</EM><BR>
<EM>&gt; &gt; In fact this is not defined very fine in the standard.
</EM><BR>
<EM>&gt; &gt; But after a close look to the sources of scanimage/xscanimage/xsane
</EM><BR>
<EM>&gt; &gt; it looks like all frontends do handle it the same.
</EM><BR>
<EM>&gt; &gt; So we should mention in the standard that the also last sane_read
</EM><BR>
<EM>&gt; &gt; that reutrns valid image data has to return with SANE_STATUS_GOOD.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; It's not very clear but the standard mentions:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &quot;The number of bytes returned is stored in *len. A backend must set
</EM><BR>
<EM>&gt; this to zero when the call fails (i.e., when a status other
</EM><BR>
<EM>&gt; than SANE_STATUS_GOOD is returned)&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; So you can't return data if you don't return SANE_STATUS_GOOD.
</EM><BR>
<P>Yes, but you also can argue that SANE_STATUS_EOF is not a failure,
<BR>
only the info that there is no more data than returned by
<BR>
this sane_read command. It does not hurt to mention it explictly.
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><PRE>
--
Homepage: <A HREF="http://www.rauch-domain.de">http://www.rauch-domain.de</A>
sane-umax: <A HREF="http://www.rauch-domain.de/sane-umax">http://www.rauch-domain.de/sane-umax</A>
xsane: <A HREF="http://www.xsane.org">http://www.xsane.org</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@rauch-domain.de?Subject=Re:%20EOF%20detection&In-Reply-To=&lt;3AF8186B.7AE1449C@rauch-domain.de&gt;">Oliver.Rauch@rauch-domain.de</A>
<P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20EOF%20detection&In-Reply-To=&lt;3AF8186B.7AE1449C@rauch-domain.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0094.html">Marian Eichholz: "Re: EOF detection"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0092.html">Oliver Rauch: "SANE CVS mails"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0089.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0094.html">Marian Eichholz: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0094.html">Marian Eichholz: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#93">[ date ]</A>
<A HREF="index.html#93">[ thread ]</A>
<A HREF="subject.html#93">[ subject ]</A>
<A HREF="author.html#93">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Tue May 08 2001 - 08:54:28 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>