On Thu, May 15, 2008 at 03:23:57PM -0500, Andrew Hastings wrote:
> Maybe simplify the code by using fopen/fread?
I don't think that would be wise. When using segment remapping and
malloc() replacement, libhugetlbfs needs to initialize really early.
The more libc functions we use, and the more complex they are, the
more complicated libc's internal state will become before libhugetlbfs
has finished initializing, and so, the greater chance we have of
something being in a funny state that we need special workarounds to
deal with.
So, I don't think pulling in all the stdio buffered file stuff is a
good idea.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel