Re: Creating an in-memory file? (for zlib's gzwrite)
Re: Creating an in-memory file? (for zlib's gzwrite)
- Subject: Re: Creating an in-memory file? (for zlib's gzwrite)
- From: David Thorup <email@hidden>
- Date: Tue, 17 Jun 2003 11:27:15 -0600
On Tuesday, June 17, 2003, at 02:29 AM, Mike Davis wrote:
If I recall, the names for shm_open() are a bit goofy on the Mac. Try
playing with the file name by removing the '/' or make it
"/tmp/memfile". I use a guid for these things. I think removing the
"/" is the key now I'm thinking about it.
Thanks for the tips! I tried them all and still no luck. The problem
doesn't seem to be creating the file descriptor since I always get a
valid file descriptor in return. The problem is writing to it. When I
do a gzwrite() it returns that only 196,608 uncompressed bytes were
written when it should be 827,326 bytes. If I do the same thing, only
write to a normal file that has been created with "gzopen("tmpFile",
"wb")" then everything works correctly.
I use a guid for these things.
What do you mean? You use a guid to name the file for shm_open()?
Thanks for your help!
_____________________________
Dave Thorup
Software Engineer
email@hidden
http://www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.