Re: how to open/create a file in C and access it



# > it gives an error after I map a portion of
# > the file in memory, and then I try to write something into it:
#
# Show the code that does the mmap call. Also note that mmap doesn't
# extend files - so you can't append to a file that way.
# Mapping a file of 0 bytes gives you 0 bytes to write to.

My major complaint about unix file mapping as opposed to
true file mapping.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Why are we here?
whrp
.



Relevant Pages

  • Re: Memory Mapped File Problem
    ... You appear to have created a file mapping that is one granual long, ... > I want to read a portion of a large file into a memory mapped ... Since I don't need the full file in the memory, ... > flProtect, 0, dwLength, sMappingName); ...
    (microsoft.public.vc.language)
  • Re: Memory Mapped File Problem
    ... You appear to have created a file mapping that is one granual long, ... > I want to read a portion of a large file into a memory mapped ... Since I don't need the full file in the memory, ... > flProtect, 0, dwLength, sMappingName); ...
    (microsoft.public.vc.mfc)
  • Re: How to share object between processes?
    ... Sharing Files and Memory ... File mapping can be used to share a file or memory between two or more ... CreateFileMapping function, specifying the file handle and a name for the ... CreateFileMapping and OpenFileMapping functions fail if they specify a name ...
    (microsoft.public.vc.mfc)
  • Re: Memory mapped file pages getting cleared when memory overcommi
    ... File mapping object keeps a reference to the FILE_OBJECT, ... I have a win32 program running on XP Pro that is using a memory mapped ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Lisp Garbage Collection
    ... have not been fully ported to Windows. ... difficult to port most Lisp implementations because of difference ... address for the memory block. ... so you would use the file mapping functions. ...
    (comp.lang.lisp)

Loading