FreeBSD Bugzilla – Attachment 25347 Details for
Bug 43357
PATCH: fix error in reallocf(3) manpage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 794 bytes, created by
dschultz
on 2002-09-25 12:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dschultz
Created:
2002-09-25 12:40:01 UTC
Size:
794 bytes
patch
obsolete
>Index: malloc.3 >=================================================================== >RCS file: /home/ncvs/src/lib/libc/stdlib/malloc.3,v >retrieving revision 1.25.2.14 >diff -u -r1.25.2.14 malloc.3 >--- malloc.3 2001/12/14 18:33:58 1.25.2.14 >+++ malloc.3 2002/09/25 11:26:55 >@@ -294,14 +294,17 @@ > to the allocated memory > if successful; otherwise a > .Dv NULL >-pointer is returned, in which case the >-memory referenced by >-.Fa ptr >-is still available and intact. >-In the case of memory allocation failure, >+pointer is returned, and > .Va errno > is set to >-.Er ENOMEM . >+.Er ENOMEM >+if the error was the result of an allocation failure. >+The >+.Fn realloc >+function always leaves the original buffer intact >+when an error occurs, whereas >+.Fn reallocf >+deallocates it in this case. > .Pp > The > .Fn free
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43357
: 25347