diff options
Diffstat (limited to 'src/lib/libc/stdlib')
| -rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index ea8f41e6c5..804f0b9094 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
| 35 | .\" | 35 | .\" |
| 36 | .\" $OpenBSD: malloc.3,v 1.17 1999/11/10 22:19:22 aaron Exp $ | 36 | .\" $OpenBSD: malloc.3,v 1.18 2000/01/19 05:36:38 pjanzen Exp $ |
| 37 | .\" | 37 | .\" |
| 38 | .Dd August 27, 1996 | 38 | .Dd August 27, 1996 |
| 39 | .Dt MALLOC 3 | 39 | .Dt MALLOC 3 |
| @@ -241,8 +241,11 @@ The | |||
| 241 | and | 241 | and |
| 242 | .Fn calloc | 242 | .Fn calloc |
| 243 | functions return | 243 | functions return |
| 244 | a pointer to the allocated space if successful; otherwise | 244 | a pointer to the allocated space if successful; otherwise, |
| 245 | a null pointer is returned. | 245 | a null pointer is returned and |
| 246 | .Va errno | ||
| 247 | is set to | ||
| 248 | .Er ENOMEM . | ||
| 246 | .Pp | 249 | .Pp |
| 247 | The | 250 | The |
| 248 | .Fn free | 251 | .Fn free |
| @@ -252,8 +255,11 @@ functions return no value. | |||
| 252 | .Pp | 255 | .Pp |
| 253 | The | 256 | The |
| 254 | .Fn realloc | 257 | .Fn realloc |
| 255 | function a pointer to the possibly moved allocated space; | 258 | function returns a pointer to the (possibly moved) allocated space |
| 256 | otherwise a null pointer is returned. | 259 | if successful; otherwise, a null pointer is returned and |
| 260 | .Va errno | ||
| 261 | is set to | ||
| 262 | .Er ENOMEM . | ||
| 257 | .Sh MESSAGES | 263 | .Sh MESSAGES |
| 258 | If | 264 | If |
| 259 | .Fn malloc , | 265 | .Fn malloc , |
