Re: mmap mapped segment length

1999-08-23 Thread Daniel C. Sobral
Wes Peters wrote: > [...] > Thanks to everyone who responded, and for the politeness of the responses in > the face of the stupidity of the original question. People are usually more polite when they are, err, having fun. ;-> -- Daniel C. Sobral(8-DCS) d...@newsguy.com d

Re: mmap mapped segment length

1999-08-23 Thread Daniel C. Sobral
Wes Peters wrote: > [...] > Thanks to everyone who responded, and for the politeness of the responses in > the face of the stupidity of the original question. People are usually more polite when they are, err, having fun. ;-> -- Daniel C. Sobral(8-DCS) [EMAIL PROTECTED]

Re: mmap mapped segment length

1999-08-22 Thread Wes Peters
Matthew Dillon wrote: > > :Now I've got to go figure out what *I've* screwed up. I fstat the file > before > :mapping it and pass S.st_size as the map length. Is there any reason why > :mmap would return non-NULL but map less than the requested size? > : > :Scratching my head, > > Note tha

Re: mmap mapped segment length

1999-08-22 Thread Wes Peters
Matthew Dillon wrote: > > :Now I've got to go figure out what *I've* screwed up. I fstat the file before > :mapping it and pass S.st_size as the map length. Is there any reason why > :mmap would return non-NULL but map less than the requested size? > : > :Scratching my head, > > Note that

Re: mmap mapped segment length

1999-08-21 Thread Matthew Dillon
:Now I've got to go figure out what *I've* screwed up. I fstat the file before :mapping it and pass S.st_size as the map length. Is there any reason why :mmap would return non-NULL but map less than the requested size? : :Scratching my head, Note that mmap() returns (void *)-1 when an error

Re: mmap mapped segment length

1999-08-21 Thread Matthew Dillon
:Wes Peters scribbled this message on Aug 21: :> Now I've got to go figure out what *I've* screwed up. I fstat the file before :> mapping it and pass S.st_size as the map length. Is there any reason why :> mmap would return non-NULL but map less than the requested size? : :no, there is NO reaso

Re: mmap mapped segment length

1999-08-21 Thread Matthew Dillon
:Now I've got to go figure out what *I've* screwed up. I fstat the file before :mapping it and pass S.st_size as the map length. Is there any reason why :mmap would return non-NULL but map less than the requested size? : :Scratching my head, Note that mmap() returns (void *)-1 when an erro

Re: mmap mapped segment length

1999-08-21 Thread John-Mark Gurney
Wes Peters scribbled this message on Aug 21: > Now I've got to go figure out what *I've* screwed up. I fstat the file before > mapping it and pass S.st_size as the map length. Is there any reason why > mmap would return non-NULL but map less than the requested size? no, there is NO reason why it

Re: mmap mapped segment length

1999-08-21 Thread Matthew Dillon
:Wes Peters scribbled this message on Aug 21: :> Now I've got to go figure out what *I've* screwed up. I fstat the file before :> mapping it and pass S.st_size as the map length. Is there any reason why :> mmap would return non-NULL but map less than the requested size? : :no, there is NO reaso

Re: mmap mapped segment length

1999-08-21 Thread Wes Peters
Don Lewis wrote: > > On Aug 21, 2:10am, Wes Peters wrote: > } Subject: mmap mapped segment length > } 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

Re: mmap mapped segment length

1999-08-21 Thread John-Mark Gurney
Wes Peters scribbled this message on Aug 21: > Now I've got to go figure out what *I've* screwed up. I fstat the file before > mapping it and pass S.st_size as the map length. Is there any reason why > mmap would return non-NULL but map less than the requested size? no, there is NO reason why i

Re: mmap mapped segment length

1999-08-21 Thread Wes Peters
Don Lewis wrote: > > On Aug 21, 2:10am, Wes Peters wrote: > } Subject: mmap mapped segment length > } 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 w

Re: mmap mapped segment length

1999-08-21 Thread John-Mark Gurney
Wes Peters scribbled this message on Aug 21: > 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. as w/ others I'm assuming the file is

Re: mmap mapped segment length

1999-08-21 Thread John-Mark Gurney
Wes Peters scribbled this message on Aug 21: > 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. as w/ others I'm assuming the file i

Re: mmap mapped segment length

1999-08-21 Thread Jason Thorpe
On Sat, 21 Aug 1999 02:10:47 -0600 Wes Peters wrote: > 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. ...first of all, I ass

Re: mmap mapped segment length

1999-08-21 Thread Jason Thorpe
On Sat, 21 Aug 1999 02:10:47 -0600 Wes Peters <[EMAIL PROTECTED]> wrote: > 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. ..

Re: mmap mapped segment length

1999-08-21 Thread John S. Dyson
Don Lewis said: > On Aug 21, 2:10am, Wes Peters wrote: > } Subject: mmap mapped segment length > } 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 o

Re: mmap mapped segment length

1999-08-21 Thread John S. Dyson
Don Lewis said: > On Aug 21, 2:10am, Wes Peters wrote: > } Subject: mmap mapped segment length > } 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

Re: mmap mapped segment length

1999-08-21 Thread Don Lewis
On Aug 21, 2:10am, Wes Peters wrote: } Subject: mmap mapped segment length } 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. 50 MB

mmap mapped segment length

1999-08-21 Thread Wes Peters
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

Re: mmap mapped segment length

1999-08-21 Thread Don Lewis
On Aug 21, 2:10am, Wes Peters wrote: } Subject: mmap mapped segment length } 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. 50

mmap mapped segment length

1999-08-21 Thread Wes Peters
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 NO