Query: memalign
OS: hpux
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
memalign(3C) memalign(3C)NAMEmemalign() - allocate aligned memorySYNOPSISDESCRIPTIONallocates space for a block of size bytes, whose address is a multiple of boundary. The space is not initialized. The boundary must be a power of 2.EXTERNAL INFLUENCESemploys the allocator. For tuning information, see the malloc(3C) man page.RETURN VALUEUpon successful completion, returns a pointer to space aligned to a multiple of boundary. Otherwise, it returns a NULL pointer.DIAGNOSTICSreturns a NULL pointer if there is no available memory, or if the value of boundary is not a power of 2.ERRORSsets to and returns a NULL pointer when an out-of-memory condition arises. sets to and returns a NULL pointer when the value of boundary is not a power of 2. sets to and returns a NULL pointer when the memory being managed by has been detectably corrupted.WARNINGSFor warnings, see the malloc(3C) man page.SEE ALSOthread_safety(5).STANDARDS CONFORMANCEThere appear to be no standards applicable to Some implementations do not check that boundary is a power of 2. The HP-UX implementation is not derived from any predecessor. memalign(3C)
Related Man Pages |
---|
posix_memalign(3) - linux |
valloc(3) - linux |
alloca(3c) - sunos |
posix_memalign(3) - suse |
valloc(3) - suse |
Similar Topics in the Unix Linux Community |
---|
sh: syntax error at line 1: `>' unexpected |
For a research race potentially affecting tens of millions of lives, Pharmasset choos |
Increase for the Page space |