Using Shared Heaps

This is a discussion on Using Shared Heaps within the C Programming forums, part of the General Programming Boards category; I am trying to use CreteFileMapping and MapViewOfFile in AIX These function use 2 pre-defined fields FILE_MAP_WRITE and PAGE_READWRITE. The ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    3

    Using Shared Heaps

    I am trying to use CreteFileMapping and MapViewOfFile in AIX These function use 2 pre-defined fields FILE_MAP_WRITE and PAGE_READWRITE. The problem I am having is that the compiler can not find the definiation. What include file are they suppose to be in and what is it supposed to be defined as. I have grep thru /usr/include and /usr/vac/ directorys for their defininations
    It is not in umalloc.h
    Last edited by drwho; 12-14-2005 at 12:22 PM.

  2. #2
    Rabble Rouser Slacker's Avatar
    Join Date
    Dec 2005
    Posts
    116
    Try umalloc.h.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Define your own sizes. See this example. Oh, and you spelled 'CreateFileMapping' wrong. Be sure not to do that in your actual code.

    Hm, I misread their #define. Anyway, there's an example of them using it.


    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    3
    Quote Originally Posted by drwho
    I am trying to use CreteFileMapping and MapViewOfFile in AIX These function use 2 pre-defined fields FILE_MAP_WRITE and PAGE_READWRITE. The problem I am having is that the compiler can not find the definiation. What include file are they suppose to be in and what is it supposed to be defined as. I have grep thru /usr/include and /usr/vac/ directorys for their defininations
    It is not in umalloc.h
    I need the values for FILE_MAP_WRITE and PAGE_READWRITE
    ie x'FFFFFFF1'
    Since They are not defined in umalloc.h I have no idea what the function is looking for

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    Well, google's third hit seems to indicate that FILE_MAP_WRITE is defined as 2, in winbase.h.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mutex and Shared Memory Segment Questions.
    By MadDog in forum Linux Programming
    Replies: 14
    Last Post: 06-20-2010, 04:04 AM
  2. Replies: 7
    Last Post: 02-06-2009, 11:27 AM
  3. Writing input from a file into shared memory
    By RazielX in forum C Programming
    Replies: 2
    Last Post: 09-23-2004, 12:34 PM
  4. Managing shared memory lookups
    By clancyPC in forum Linux Programming
    Replies: 0
    Last Post: 10-08-2003, 04:44 AM
  5. XP Shared Drive Problem(?)
    By Davros in forum Tech Board
    Replies: 2
    Last Post: 10-06-2002, 01:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21