Add reminder to return memory allocated by this call.
Obtained from: OpenBSD
This commit is contained in:
parent
766e996f98
commit
81e4e6a2d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41841
@ -81,10 +81,19 @@ is to modify future file modes correctly.
|
||||
.Pp
|
||||
If the mode passed to
|
||||
.Fn setmode
|
||||
is invalid,
|
||||
is invalid or if memory cannot be allocated for the return value,
|
||||
.Fn setmode
|
||||
returns
|
||||
.Dv NULL .
|
||||
.Pp
|
||||
The value returned from
|
||||
.Fn setmode
|
||||
is obtained from
|
||||
.Fn malloc
|
||||
and should be returned to the system with
|
||||
.Fn free
|
||||
when the program is done with it, generally after a call to
|
||||
.Fn getmode .
|
||||
.Sh ERRORS
|
||||
The
|
||||
.Fn setmode
|
||||
|
Loading…
Reference in New Issue
Block a user