Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/malloc.9
Show All 23 Lines | |||||
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
.\" POSSIBILITY OF SUCH DAMAGE. | .\" POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $ | .\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $ | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd January 24, 2018 | .Dd June 13, 2018 | ||||
.Dt MALLOC 9 | .Dt MALLOC 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm malloc , | .Nm malloc , | ||||
.Nm free , | .Nm free , | ||||
.Nm realloc , | .Nm realloc , | ||||
.Nm reallocf , | .Nm reallocf , | ||||
.Nm MALLOC_DEFINE , | .Nm MALLOC_DEFINE , | ||||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
function induces a panic. | function induces a panic. | ||||
.It Dv M_USE_RESERVE | .It Dv M_USE_RESERVE | ||||
Indicates that the system can use its reserve of memory to satisfy the | Indicates that the system can use its reserve of memory to satisfy the | ||||
request. | request. | ||||
This option should only be used in combination with | This option should only be used in combination with | ||||
.Dv M_NOWAIT | .Dv M_NOWAIT | ||||
when an allocation failure cannot be tolerated by the caller without | when an allocation failure cannot be tolerated by the caller without | ||||
catastrophic effects on the system. | catastrophic effects on the system. | ||||
.It Dv M_EXEC | |||||
Indicates that the system should allocate executable memory. | |||||
If this flag is not set, the system will not allocate executable memory. | |||||
Not all platforms enforce a distinction between executable and | |||||
non-executable memory. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
Exactly one of either | Exactly one of either | ||||
.Dv M_WAITOK | .Dv M_WAITOK | ||||
or | or | ||||
.Dv M_NOWAIT | .Dv M_NOWAIT | ||||
must be specified. | must be specified. | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |