Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 02:10:47 -0600
From:      Wes Peters <wes@softweyr.com>
To:        hackers@freebsd.org
Subject:   mmap mapped segment length
Message-ID:  <37BE5F07.3F91A2B8@softweyr.com>

next in thread | raw e-mail | index | archive | help
I discovered to my dismay today that the length field in the mmap call is
a size_t, not an off_t.  I was attempting to process a large (~50 MByte) file
and found I was only processing the first 4 MBytes of it.

Is this intentional, or just an artifact of the implementation?  Is there any
reason NOT to change this to an off_t?

Granted, I'm no VM hacker, but I'm willing to take a swing at it if there is
any interest in putting it into the system.  Otherwise, I have a workaround
that works just fine for this application.

-- 
            "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                         Softweyr LLC
http://softweyr.com/                                           wes@softweyr.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37BE5F07.3F91A2B8>