summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2000-11-08 11:57:03 +0000
committerMurray Stokely <murray@FreeBSD.org>2000-11-08 11:57:03 +0000
commit7b76a38dceb42997d22be9413d88e97ca41b7926 (patch)
tree1f44f622788cbd82279d54d628f3ed2078324082 /libutil
parentdcbc2eec155f1abda6e3f21555f114996b0079d4 (diff)
downloadpw-darwin-7b76a38dceb42997d22be9413d88e97ca41b7926.tar.gz
pw-darwin-7b76a38dceb42997d22be9413d88e97ca41b7926.tar.zst
pw-darwin-7b76a38dceb42997d22be9413d88e97ca41b7926.zip
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 'libutil')
-rw-r--r--libutil/libutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h
index 18fb83f..4125b1a 100644
--- a/libutil/libutil.h
+++ b/libutil/libutil.h
@@ -31,6 +31,9 @@
#include <sys/cdefs.h>
+#define PROPERTY_MAX_NAME 64
+#define PROPERTY_MAX_VALUE 512
+
/* for properties.c */
typedef struct _property {
struct _property *next;