sane-project-website/old-archive/2001-03/0073.html

98 wiersze
4.6 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: OT: Is &quot;fileno()&quot; conform to ANSI or</TITLE>
<META NAME="Author" CONTENT="Petter Reinholdtsen (pere@hungry.com)">
<META NAME="Subject" CONTENT="Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?</H1>
<!-- received="Mon Mar 5 10:46:26 2001" -->
<!-- isoreceived="20010305184626" -->
<!-- sent="Mon, 05 Mar 2001 20:04:20 +0100" -->
<!-- isosent="20010305190420" -->
<!-- name="Petter Reinholdtsen" -->
<!-- email="pere@hungry.com" -->
<!-- subject="Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?" -->
<!-- id="E14a0HM-0006o3-00@zoot" -->
<!-- inreplyto="OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?" -->
<STRONG>From:</STRONG> Petter Reinholdtsen (<A HREF="mailto:pere@hungry.com?Subject=Re:%20OT:%20Is%20&quot;fileno()&quot;%20conform%20to%20ANSI%20or%20POSIX?&In-Reply-To=&lt;E14a0HM-0006o3-00@zoot&gt;"><EM>pere@hungry.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Mar 05 2001 - 11:04:20 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0074.html">Dario Abatianni: "Snapscan e50 USB Question"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0072.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0014.html">Oliver Rauch: "OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0075.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0075.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#73">[ date ]</A>
<A HREF="index.html#73">[ thread ]</A>
<A HREF="subject.html#73">[ subject ]</A>
<A HREF="author.html#73">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
[Oliver Rauch]
<BR>
<EM>&gt; By the way, does anyone know if mmap does anything else than
</EM><BR>
<EM>&gt; buffer=malloc(size) + fread(buffer, size, 1, file) ?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; This way I would not depend on mmap and fileno.
</EM><BR>
<P>Eh, yes. mmap() maps the file into the process address space, and
<BR>
allow you to access the file content without copying it from the
<BR>
kernel buffers into your own buffers. (ie the kernel buffers become
<BR>
part of the process address space.)
<BR>
<P>It is a lot faster than malloc() and fread().
<BR>
<PRE>
--
##&gt; Petter Reinholdtsen &lt;## | <A HREF="mailto:pere@td.org.uit.no?Subject=Re:%20OT:%20Is%20&quot;fileno()&quot;%20conform%20to%20ANSI%20or%20POSIX?&In-Reply-To=&lt;E14a0HM-0006o3-00@zoot&gt;">pere@td.org.uit.no</A>
O- &lt;SCRIPT Language=&quot;Javascript&quot;&gt;window.close()&lt;/SCRIPT&gt;
<A HREF="http://www.hungry.com/~pere/">http://www.hungry.com/~pere/</A> | Go Mozilla, go! Go!
<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:%20OT:%20Is%20&quot;fileno()&quot;%20conform%20to%20ANSI%20or%20POSIX?&In-Reply-To=&lt;E14a0HM-0006o3-00@zoot&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0074.html">Dario Abatianni: "Snapscan e50 USB Question"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0072.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0014.html">Oliver Rauch: "OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0075.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0075.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#73">[ date ]</A>
<A HREF="index.html#73">[ thread ]</A>
<A HREF="subject.html#73">[ subject ]</A>
<A HREF="author.html#73">[ 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>Mon Mar 05 2001 - 10:46:39 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>