On Tue, 2008-05-20 at 07:05 -0700, Dave Hansen wrote:
> On Mon, 2008-05-19 at 19:39 -0700, Eric B Munson wrote:
> > 
> > +/* We override the normal open, so libhugetlbfs gets our modified
> > + * mounts file */
> > +int open(const char *path, int flags, ...)
> > +{
> > +       int (*old_open)(const char *, int, ...);
> > +       int fd;
> 
> Just curious, but why not call this myopen() or some other new name?
> Seems like something that might confuse people modifying the file in the
> future.
> 
> -- Dave
> 

Because the library calls open when it is looking for /proc/mounts
(which is the call I want to hijack to insert my test mounts).  This
overridding is for the call from libhuge, not for the calls in this
test.

-- 
Eric Munson
IBM LTC
[EMAIL PROTECTED]
503.578.3104

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
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

Reply via email to