]> git.lizzy.rs Git - plan9front.git/blob - sys/man/2/privalloc
merge
[plan9front.git] / sys / man / 2 / privalloc
1 .TH PRIVALLOC 2
2 .SH NAME
3 privalloc \- per-process private storage management
4 .SH SYNOPSIS
5 .B #include <u.h>
6 .br
7 .B #include <libc.h>
8 .ta \w'voidmmm'u
9 .PP
10 .B
11 void**  privalloc(void)
12 .SH DESCRIPTION
13 .I Privalloc
14 returns a pointer to a per-process private storage location.
15 The location is not shared among processes,
16 even if they share the same data segments.
17 It returns
18 .B nil
19 if there are no free slots available.
20 .SH SOURCE
21 .B /sys/src/libc/9sys/privalloc.c
22 .SH SEE ALSO
23 .IR exec (2)