home *** CD-ROM | disk | FTP | other *** search
-
- SHPALLOC(3F) SHPALLOC(3F)
-
-
- NNNNAAAAMMMMEEEE
- SSSSHHHHPPPPAAAALLLLLLLLOOOOCCCC - Allocates a block of memory from the symmetric heap
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- PPPPOOOOIIIINNNNTTTTEEEERRRR ((((_a_d_d_r,,,, AAAA((((1111))))))))
- IIIINNNNTTTTEEEEGGGGEEEERRRR ((((_l_e_n_g_t_h,,,, _e_r_r_c_o_d_e,,,, _a_b_o_r_t))))
- CCCCAAAALLLLLLLL SSSSHHHHPPPPAAAALLLLLLLLOOOOCCCC((((_a_d_d_r,,,, _l_e_n_g_t_h,,,, _e_r_r_c_o_d_e,,,, _a_b_o_r_t))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- SSSSHHHHPPPPAAAALLLLLLLLOOOOCCCC allocates a block of memory from the program's symmetric heap
- that is greater than or equal to the size requested. If the request
- cannot be satisfied from the free blocks currently in the heap, it
- will try to allocate more memory from the system. To maintain
- symmetric heap consistency, all PEs in an program must call SSSSHHHHPPPPAAAALLLLLLLLOOOOCCCC
- with the same value of _l_e_n_g_t_h; if any processing elements (PEs) are
- missing, the program will hang.
-
- The SSSSHHHHPPPPAAAALLLLLLLLOOOOCCCC function accepts the following arguments:
-
- AAAArrrrgggguuuummmmeeeennnntttt DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
- _a_d_d_r First word address of the allocated block (output).
- _l_e_n_g_t_h Number of words of memory requested (input). One word
- is 32 bits.
- _e_r_r_c_o_d_e Error code is 0 if no error was detected; otherwise, it
- is a negative integer code for the type of error
- (output).
- _a_b_o_r_t Abort code; nonzero requests abort on error; 0 requests
- an error code (input).
-
- By using the Fortran PPPPOOOOIIIINNNNTTTTEEEERRRR mechanism in the following manner, you
- can use array AAAA to refer to the block allocated by SSSSHHHHPPPPAAAALLLLLLLLOOOOCCCC:
-
- POINTER (addr, A(1))
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- Error conditions are as follows:
-
- EEEErrrrrrrroooorrrr CCCCooooddddeeee CCCCoooonnnnddddiiiittttiiiioooonnnn
- ----1111 Length is not an integer greater than 0.
- ----2222 No more memory is available from the system (checked if
- the request cannot be satisfied from the available
- blocks on the symmetric heap).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- iiiinnnnttttrrrroooo____sssshhhhmmmmeeeemmmm(3), sssshhhhmmmmaaaalllllllloooocccc(3F), sssshhhhppppccccllllmmmmoooovvvveeee(3F), sssshhhhppppddddeeeeaaaallllllllcccc(3F)
-