diff options
| author | tedu <> | 2014-12-08 20:42:23 +0000 |
|---|---|---|
| committer | tedu <> | 2014-12-08 20:42:23 +0000 |
| commit | 8645fd24a4be2d377f4b0f4eb9eaf33f9da4ebdc (patch) | |
| tree | ef964416bf35785d530cd5ceac2ee6a39c9de53a | |
| parent | 0c22449a0dd3e3e61718aa116e3f4492fef3237a (diff) | |
| download | openbsd-8645fd24a4be2d377f4b0f4eb9eaf33f9da4ebdc.tar.gz openbsd-8645fd24a4be2d377f4b0f4eb9eaf33f9da4ebdc.tar.bz2 openbsd-8645fd24a4be2d377f4b0f4eb9eaf33f9da4ebdc.zip | |
remove cfree from documentation
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index 153fd54dbd..0a7198dbc0 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
| @@ -30,9 +30,9 @@ | |||
| 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 31 | .\" SUCH DAMAGE. | 31 | .\" SUCH DAMAGE. |
| 32 | .\" | 32 | .\" |
| 33 | .\" $OpenBSD: malloc.3,v 1.86 2014/12/06 18:54:55 schwarze Exp $ | 33 | .\" $OpenBSD: malloc.3,v 1.87 2014/12/08 20:42:23 tedu Exp $ |
| 34 | .\" | 34 | .\" |
| 35 | .Dd $Mdocdate: December 6 2014 $ | 35 | .Dd $Mdocdate: December 8 2014 $ |
| 36 | .Dt MALLOC 3 | 36 | .Dt MALLOC 3 |
| 37 | .Os | 37 | .Os |
| 38 | .Sh NAME | 38 | .Sh NAME |
| @@ -41,7 +41,6 @@ | |||
| 41 | .Nm reallocarray , | 41 | .Nm reallocarray , |
| 42 | .Nm realloc , | 42 | .Nm realloc , |
| 43 | .Nm free , | 43 | .Nm free , |
| 44 | .Nm cfree | ||
| 45 | .Nd memory allocation and deallocation | 44 | .Nd memory allocation and deallocation |
| 46 | .Sh SYNOPSIS | 45 | .Sh SYNOPSIS |
| 47 | .In stdlib.h | 46 | .In stdlib.h |
| @@ -55,8 +54,6 @@ | |||
| 55 | .Fn realloc "void *ptr" "size_t size" | 54 | .Fn realloc "void *ptr" "size_t size" |
| 56 | .Ft void | 55 | .Ft void |
| 57 | .Fn free "void *ptr" | 56 | .Fn free "void *ptr" |
| 58 | .Ft void | ||
| 59 | .Fn cfree "void *ptr" | ||
| 60 | .Ft char * Ns | 57 | .Ft char * Ns |
| 61 | .Va malloc_options ; | 58 | .Va malloc_options ; |
| 62 | .Sh DESCRIPTION | 59 | .Sh DESCRIPTION |
| @@ -139,13 +136,6 @@ was previously freed by | |||
| 139 | or | 136 | or |
| 140 | .Fn reallocarray , | 137 | .Fn reallocarray , |
| 141 | the behavior is undefined and the double free is a security concern. | 138 | the behavior is undefined and the double free is a security concern. |
| 142 | .Pp | ||
| 143 | A | ||
| 144 | .Fn cfree | ||
| 145 | function is also provided for compatibility with old systems and other | ||
| 146 | .Nm malloc | ||
| 147 | libraries; it is simply an alias for | ||
| 148 | .Fn free . | ||
| 149 | .Sh RETURN VALUES | 139 | .Sh RETURN VALUES |
| 150 | Upon successful completion, the functions | 140 | Upon successful completion, the functions |
| 151 | .Fn malloc , | 141 | .Fn malloc , |
| @@ -187,9 +177,7 @@ to | |||
| 187 | .Pp | 177 | .Pp |
| 188 | The | 178 | The |
| 189 | .Fn free | 179 | .Fn free |
| 190 | and | 180 | function returns no value. |
| 191 | .Fn cfree | ||
| 192 | functions return no value. | ||
| 193 | .Sh IDIOMS | 181 | .Sh IDIOMS |
| 194 | Consider | 182 | Consider |
| 195 | .Fn calloc | 183 | .Fn calloc |
| @@ -510,10 +498,6 @@ The | |||
| 510 | .Fn reallocarray | 498 | .Fn reallocarray |
| 511 | function appeared in | 499 | function appeared in |
| 512 | .Ox 5.6 . | 500 | .Ox 5.6 . |
| 513 | .Pp | ||
| 514 | The | ||
| 515 | .Fn cfree | ||
| 516 | function appeared in SunOS 4.x. | ||
| 517 | .Sh CAVEATS | 501 | .Sh CAVEATS |
| 518 | When using | 502 | When using |
| 519 | .Fn malloc , | 503 | .Fn malloc , |
