Re: glib outstanding stuff



Joel Becker wrote:
> 
>         readline() fails utterly on a file that isn't line oriented.
> mmap() changes the file contents.
>         Say I have a non-huge data file.  I want to do operations on the
> data and get a munged result.  I don't want to affect the actual file
> contents, so mmap() is out.  

How about using MAP_PRIVATE and/or PROT_READ in the mmap call? Is that
not portable?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]