⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 valloc.3

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3
字号:
.\" SCCSID: @(#)valloc.3	8.1	9/11/90.TH valloc 3.SH Namevalloc \- aligned memory allocator.SH Syntax.nf.B #include <stdlib.h>.PP.B void *valloc(\fIsize\fP) .B size_t \fIsize\fP; .fi.SH Description.NXR "valloc subroutine".NXR "memory" "allocating"The.PN vallocsubroutine allocates.I sizebytes aligned on a page boundary.It is implemented by calling .MS malloc 3 with a slightly larger request, saving the true beginning of the blockallocated, and returning a properly aligned pointer..SH DiagnosticsThe.PN vallocsubroutinereturns a null pointer (0) if there is no available memoryor if the arena has been detectablycorrupted by storing outside the boundsof a block.The.PN vallocsubroutine will fail and no additional memory will be allocated ifone of the following is true:.TP 12[ENOMEM]The limit, as set by.MS setrlimit 2 ,is exceeded..TP[ENOMEM]The maximum possible size of a data segment (compiled into thesystem) is exceeded..TP[ENOMEM]Insufficient space exists in the swap area to support the expansion.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -