Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

PRIVALLOC(2)

NAME

privalloc, privfree − per-process private storage management

SYNOPSIS

­#include <u.h>
­#include <libc.h>

void∗∗privalloc(void)

voidprivfree(void ∗∗p)

DESCRIPTION

­Privalloc returns a pointer to a per-process private storage location.  The location is not shared among processes, even if they share the same data segments.  It returns ­nil if there are no free slots available. 

­Privfree releases a location allocated with privalloc. It is legal to call ­privfree with ­p set to nil. 

SOURCE

­/sys/src/libc/9sys/privalloc.c

SEE ALSO

exec(2)

Plan 9  —  March 15, 2001

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026