Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
valloc - request memory aligned with page boundary
&pagelevel(4)&pagelevel
Syntax | #include <stdlib.h> void *valloc (size_t size); |
Description | valloc() has the same effect as malloc() , except that the allocated memory area is aligned with the page border, i.e. an integer multiple of the return value of sysconf(_SC_PA GESIZE) .
If size = 0, valloc() returns a null pointer. errno is not set in this case. |
Return val. | Pointer to the allocated memory area |
| if successful. |
Null pointer | otherwise. errno is set to indicate the error. |
Errors | valloc() will fail if
|
| ENOMEM
| There is not enough memory available. |
Notes | Instead of valloc() , applications should use malloc() or mmap() . In systems with a large page size, it may not be possible to call valloc() successfully. valloc() will no longer be supported in the next version of the X/Open standard.
|
See also | malloc() , sysconf() , stdlib.h .
|