summaryrefslogtreecommitdiffstats
path: root/lib/libutil/property.3
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2000-11-08 11:57:03 +0000
committermurray <murray@FreeBSD.org>2000-11-08 11:57:03 +0000
commit6cea38cf1a4a0b20f777f7cc06c6a06f16afda10 (patch)
tree371b15b9a944b88058132c50c9878fd115b01437 /lib/libutil/property.3
parentbbaa0eac15144a50028913f7f32940543d8114d1 (diff)
downloadFreeBSD-src-6cea38cf1a4a0b20f777f7cc06c6a06f16afda10.zip
FreeBSD-src-6cea38cf1a4a0b20f777f7cc06c6a06f16afda10.tar.gz
Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so
that applications know how large of a buffer they must allocate before calling property_find(). Also added a $FreeBSD$ tag while I'm here. Approved by: jkh
Diffstat (limited to 'lib/libutil/property.3')
-rw-r--r--lib/libutil/property.34
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libutil/property.3 b/lib/libutil/property.3
index 22b6e99..6d5cd4f 100644
--- a/lib/libutil/property.3
+++ b/lib/libutil/property.3
@@ -66,7 +66,9 @@ of error.
.Fn property_find
Returns the associated value string for the property named
.Fa name
-if found, otherwise NULL.
+if found, otherwise NULL. The value returned may be up to
+.Dv PROPERTY_MAX_VALUE
+bytes in length.
.Pp
.Fn properties_free
is used to free the structure returned by
OpenPOWER on IntegriCloud