CVS commit: src/common/lib/libppath

2020-06-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jun  6 22:28:07 UTC 2020

Modified Files:
src/common/lib/libppath: ppath.c

Log Message:
Update for proplib(3) API changes.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libppath/ppath.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath.c
diff -u src/common/lib/libppath/ppath.c:1.4 src/common/lib/libppath/ppath.c:1.5
--- src/common/lib/libppath/ppath.c:1.4	Sat Dec 29 20:08:23 2012
+++ src/common/lib/libppath/ppath.c	Sat Jun  6 22:28:07 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: ppath.c,v 1.4 2012/12/29 20:08:23 christos Exp $ */
+/* $NetBSD: ppath.c,v 1.5 2020/06/06 22:28:07 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: ppath.c,v 1.4 2012/12/29 20:08:23 christos Exp $");
+__RCSID("$NetBSD: ppath.c,v 1.5 2020/06/06 22:28:07 thorpej Exp $");
 
 #ifdef _KERNEL
 #include 
@@ -412,7 +412,7 @@ int
 ppath_create_string(prop_object_t o, const ppath_t *p, const char *s)
 {
 	return ppath_create_object_and_release(o, p,
-	prop_string_create_cstring(s));
+	prop_string_create_copy(s));
 }
 
 int
@@ -420,21 +420,21 @@ ppath_create_data(prop_object_t o, const
 const void *data, size_t size)
 {
 	return ppath_create_object_and_release(o, p,
-	prop_data_create_data(data, size));
+	prop_data_create_copy(data, size));
 }
 
 int
 ppath_create_uint64(prop_object_t o, const ppath_t *p, uint64_t u)
 {
 	return ppath_create_object_and_release(o, p,
-	prop_number_create_unsigned_integer(u));
+	prop_number_create_unsigned(u));
 }
 
 int
 ppath_create_int64(prop_object_t o, const ppath_t *p, int64_t i)
 {
 	return ppath_create_object_and_release(o, p,
-	prop_number_create_integer(i));
+	prop_number_create_signed(i));
 }
 
 int
@@ -746,14 +746,14 @@ ppath_copyset_data(prop_object_t o, prop
 const void *data, size_t size)
 {
 	return ppath_copyset_object_and_release(o, op, p,
-	prop_data_create_data(data, size));
+	prop_data_create_copy(data, size));
 }
 
 int
 ppath_set_data(prop_object_t o, const ppath_t *p, const void *data, size_t size)
 {
 	return ppath_set_object_and_release(o, p,
-	prop_data_create_data(data, size));
+	prop_data_create_copy(data, size));
 }
 
 int
@@ -767,7 +767,7 @@ ppath_get_data(prop_object_t o, const pp
 		return rc;
 
 	if (datap != NULL)
-		*datap = prop_data_data_nocopy(v);
+		*datap = prop_data_value(v);
 	if (sizep != NULL)
 		*sizep = prop_data_size(v);
 
@@ -783,10 +783,16 @@ ppath_dup_data(prop_object_t o, const pp
 	if ((rc = ppath_get_object_of_type(o, p, , PROP_TYPE_DATA)) != 0)
 		return rc;
 
-	if (datap != NULL)
-		*datap = prop_data_data(v);
+	const size_t data_size = prop_data_size(v);
+
+	if (datap != NULL) {
+		void *buf = ppath_alloc(data_size);
+		if (buf != NULL)
+			(void) prop_data_copy_value(v, buf, data_size);
+		*datap = buf;
+	}
 	if (sizep != NULL)
-		*sizep = prop_data_size(v);
+		*sizep = data_size;
 
 	return 0;
 }
@@ -802,14 +808,14 @@ ppath_copyset_int64(prop_object_t o, pro
 int64_t i)
 {
 	return ppath_copyset_object_and_release(o, op, p,
-	prop_number_create_integer(i));
+	prop_number_create_signed(i));
 }
 
 int
 ppath_set_int64(prop_object_t o, const ppath_t *p, int64_t i)
 {
 	return ppath_set_object_and_release(o, p,
-	prop_number_create_integer(i));
+	prop_number_create_signed(i));
 }
 
 int
@@ -825,7 +831,7 @@ ppath_get_int64(prop_object_t o, const p
 		return EFTYPE;
 
 	if (ip != NULL)
-		*ip = prop_number_integer_value(v);
+		*ip = prop_number_signed_value(v);
 
 	return 0;
 }
@@ -841,14 +847,14 @@ ppath_copyset_string(prop_object_t o, pr
 const char *s)
 {
 	return ppath_copyset_object_and_release(o, op, p,
-	prop_string_create_cstring(s));
+	prop_string_create_copy(s));
 }
 
 int
 ppath_set_string(prop_object_t o, const ppath_t *p, const char *s)
 {
 	return ppath_set_object_and_release(o, p,
-	prop_string_create_cstring(s));
+	prop_string_create_copy(s));
 }
 
 int
@@ -861,7 +867,7 @@ ppath_get_string(prop_object_t o, const 
 		return rc;
 
 	if (sp != NULL)
-		*sp = prop_string_cstring_nocopy(v);
+		*sp = prop_string_value(v);
 
 	return 0;
 }
@@ -875,8 +881,14 @@ ppath_dup_string(prop_object_t o, const 
 	if ((rc = ppath_get_object_of_type(o, p, , PROP_TYPE_STRING)) != 0)
 		return rc;
 
-	if (sp != NULL)
-		*sp = prop_string_cstring(v);
+	const size_t string_size = prop_string_size(v);
+
+	if (sp != NULL) {
+		char *cp = ppath_alloc(string_size + 1);
+		if (cp != NULL)
+			(void)prop_string_copy_value(v, cp, string_size + 1);
+		*sp = cp;
+	}
 
 	return 0;
 }
@@ -892,14 +904,14 @@ ppath_copyset_uint64(prop_object_t o, pr
 uint64_t u)
 {
 	return ppath_copyset_object_and_release(o, op, p,
-	prop_number_create_unsigned_integer(u));
+	

CVS commit: src/common/lib/libppath

2017-10-22 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Oct 23 00:59:44 UTC 2017

Modified Files:
src/common/lib/libppath: ppath.3 ppath_bool.3 ppath_number.3
ppath_object.3

Log Message:
Simplify, and comment out xrefs to non-existing pages.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libppath/ppath.3 \
src/common/lib/libppath/ppath_number.3
cvs rdiff -u -r1.6 -r1.7 src/common/lib/libppath/ppath_bool.3
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libppath/ppath_object.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath.3
diff -u src/common/lib/libppath/ppath.3:1.4 src/common/lib/libppath/ppath.3:1.5
--- src/common/lib/libppath/ppath.3:1.4	Sun Oct 22 15:34:13 2017
+++ src/common/lib/libppath/ppath.3	Mon Oct 23 00:59:44 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ppath.3,v 1.4 2017/10/22 15:34:13 abhinav Exp $
+.\"	$NetBSD: ppath.3,v 1.5 2017/10/23 00:59:44 wiz Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -295,9 +295,7 @@ component of
 Before returning a component,
 .Fn ppath_component_at
 increases its reference count.
-.Po
-The first component is 0.
-.Pc
+(The first component is 0.)
 .It Fn ppath_subpath "const ppath_t *p" "unsigned int first" "unsigned int exclast"
 Create a new
 .Vt ppath_t
@@ -424,10 +422,10 @@ is under
 .\" Cross-references should be ordered by section (low to high), then in
 .\" alphabetical order.
 .Xr ppath_bool 3 ,
-.Xr ppath_data 3 ,
+.\" .Xr ppath_data 3 ,
 .Xr ppath_number 3 ,
 .Xr ppath_object 3 ,
-.Xr ppath_string 3 ,
+.\" .Xr ppath_string 3 ,
 .Xr proplib 3
 .Sh HISTORY
 The
Index: src/common/lib/libppath/ppath_number.3
diff -u src/common/lib/libppath/ppath_number.3:1.4 src/common/lib/libppath/ppath_number.3:1.5
--- src/common/lib/libppath/ppath_number.3:1.4	Sat Dec 29 20:08:23 2012
+++ src/common/lib/libppath/ppath_number.3	Mon Oct 23 00:59:44 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ppath_number.3,v 1.4 2012/12/29 20:08:23 christos Exp $
+.\"	$NetBSD: ppath_number.3,v 1.5 2017/10/23 00:59:44 wiz Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -263,9 +263,9 @@ if there was insufficient memory to comp
 .\" Cross-references should be ordered by section (low to high), then in
 .\" alphabetical order.
 .Xr ppath 3 ,
-.Xr ppath_data 3 ,
+.\" .Xr ppath_data 3 ,
 .Xr ppath_object 3 ,
-.Xr ppath_string 3 ,
+.\" .Xr ppath_string 3 ,
 .Xr proplib 3
 .Sh HISTORY
 The

Index: src/common/lib/libppath/ppath_bool.3
diff -u src/common/lib/libppath/ppath_bool.3:1.6 src/common/lib/libppath/ppath_bool.3:1.7
--- src/common/lib/libppath/ppath_bool.3:1.6	Sat Dec 29 20:08:23 2012
+++ src/common/lib/libppath/ppath_bool.3	Mon Oct 23 00:59:44 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ppath_bool.3,v 1.6 2012/12/29 20:08:23 christos Exp $
+.\"	$NetBSD: ppath_bool.3,v 1.7 2017/10/23 00:59:44 wiz Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -218,9 +218,9 @@ if there was insufficient memory to comp
 .\" Cross-references should be ordered by section (low to high), then in
 .\" alphabetical order.
 .Xr ppath 3 ,
-.Xr ppath_data 3 ,
+.\" .Xr ppath_data 3 ,
 .Xr ppath_object 3 ,
-.Xr ppath_string 3 ,
+.\" .Xr ppath_string 3 ,
 .Xr proplib 3
 .Sh HISTORY
 The

Index: src/common/lib/libppath/ppath_object.3
diff -u src/common/lib/libppath/ppath_object.3:1.3 src/common/lib/libppath/ppath_object.3:1.4
--- src/common/lib/libppath/ppath_object.3:1.3	Sat Dec 29 20:08:23 2012
+++ src/common/lib/libppath/ppath_object.3	Mon Oct 23 00:59:44 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ppath_object.3,v 1.3 2012/12/29 20:08:23 christos Exp $
+.\"	$NetBSD: ppath_object.3,v 1.4 2017/10/23 00:59:44 wiz Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -261,9 +261,9 @@ if there was insufficient memory to comp
 .\" Cross-references should be ordered by section (low to high), then in
 .\" alphabetical order.
 .Xr ppath 3 ,
-.Xr ppath_data 3 ,
+.\" .Xr ppath_data 3 ,
 .Xr ppath_number 3 ,
-.Xr ppath_string 3 ,
+.\" .Xr ppath_string 3 ,
 .Xr proplib 3
 .Sh HISTORY
 The



CVS commit: src/common/lib/libppath

2017-10-22 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Oct 22 15:34:13 UTC 2017

Modified Files:
src/common/lib/libppath: ppath.3

Log Message:
Remove comma after last Nm entry in the NAME section


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libppath/ppath.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath.3
diff -u src/common/lib/libppath/ppath.3:1.3 src/common/lib/libppath/ppath.3:1.4
--- src/common/lib/libppath/ppath.3:1.3	Sat Dec 29 20:08:23 2012
+++ src/common/lib/libppath/ppath.3	Sun Oct 22 15:34:13 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ppath.3,v 1.3 2012/12/29 20:08:23 christos Exp $
+.\"	$NetBSD: ppath.3,v 1.4 2017/10/22 15:34:13 abhinav Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -55,7 +55,7 @@
 .Nm ppath_retain ,
 .Nm ppath_release ,
 .\" ,
-.Nm ppath_lookup ,
+.Nm ppath_lookup
 .\" ,
 .Nd property container path library
 .Sh LIBRARY



CVS commit: src/common/lib/libppath

2012-12-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 29 20:08:23 UTC 2012

Modified Files:
src/common/lib/libppath: ppath.3 ppath.c ppath_bool.3 ppath_extant.c
ppath_kmem_alloc.c ppath_malloc.c ppath_number.3 ppath_object.3

Log Message:
kill Id RCS keyword.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libppath/ppath.3 \
src/common/lib/libppath/ppath_object.3
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libppath/ppath.c \
src/common/lib/libppath/ppath_number.3
cvs rdiff -u -r1.5 -r1.6 src/common/lib/libppath/ppath_bool.3
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libppath/ppath_extant.c \
src/common/lib/libppath/ppath_kmem_alloc.c \
src/common/lib/libppath/ppath_malloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath.3
diff -u src/common/lib/libppath/ppath.3:1.2 src/common/lib/libppath/ppath.3:1.3
--- src/common/lib/libppath/ppath.3:1.2	Thu Aug 25 11:12:38 2011
+++ src/common/lib/libppath/ppath.3	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,4 @@
-.\	$NetBSD: ppath.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
-.\	$Id: ppath.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$NetBSD: ppath.3,v 1.3 2012/12/29 20:08:23 christos Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
Index: src/common/lib/libppath/ppath_object.3
diff -u src/common/lib/libppath/ppath_object.3:1.2 src/common/lib/libppath/ppath_object.3:1.3
--- src/common/lib/libppath/ppath_object.3:1.2	Thu Aug 25 11:12:38 2011
+++ src/common/lib/libppath/ppath_object.3	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,4 @@
-.\	$NetBSD: ppath_object.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
-.\	$Id: ppath_object.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$NetBSD: ppath_object.3,v 1.3 2012/12/29 20:08:23 christos Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.

Index: src/common/lib/libppath/ppath.c
diff -u src/common/lib/libppath/ppath.c:1.3 src/common/lib/libppath/ppath.c:1.4
--- src/common/lib/libppath/ppath.c:1.3	Fri Sep 30 06:23:03 2011
+++ src/common/lib/libppath/ppath.c	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,5 @@
-/* $NetBSD: ppath.c,v 1.3 2011/09/30 10:23:03 mrg Exp $ */
-/* $Id: ppath.c,v 1.3 2011/09/30 10:23:03 mrg Exp $ */
+/* $NetBSD: ppath.c,v 1.4 2012/12/29 20:08:23 christos Exp $ */
+
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($Id: ppath.c,v 1.3 2011/09/30 10:23:03 mrg Exp $);
+__RCSID($NetBSD: ppath.c,v 1.4 2012/12/29 20:08:23 christos Exp $);
 
 #ifdef _KERNEL
 #include sys/systm.h
Index: src/common/lib/libppath/ppath_number.3
diff -u src/common/lib/libppath/ppath_number.3:1.3 src/common/lib/libppath/ppath_number.3:1.4
--- src/common/lib/libppath/ppath_number.3:1.3	Tue Sep 13 14:07:22 2011
+++ src/common/lib/libppath/ppath_number.3	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,4 @@
-.\	$NetBSD: ppath_number.3,v 1.3 2011/09/13 18:07:22 dyoung Exp $
-.\	$Id: ppath_number.3,v 1.3 2011/09/13 18:07:22 dyoung Exp $
+.\	$NetBSD: ppath_number.3,v 1.4 2012/12/29 20:08:23 christos Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.

Index: src/common/lib/libppath/ppath_bool.3
diff -u src/common/lib/libppath/ppath_bool.3:1.5 src/common/lib/libppath/ppath_bool.3:1.6
--- src/common/lib/libppath/ppath_bool.3:1.5	Tue Sep 13 14:05:20 2011
+++ src/common/lib/libppath/ppath_bool.3	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,4 @@
-.\	$NetBSD: ppath_bool.3,v 1.5 2011/09/13 18:05:20 dyoung Exp $
-.\	$Id: ppath_bool.3,v 1.5 2011/09/13 18:05:20 dyoung Exp $
+.\	$NetBSD: ppath_bool.3,v 1.6 2012/12/29 20:08:23 christos Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.

Index: src/common/lib/libppath/ppath_extant.c
diff -u src/common/lib/libppath/ppath_extant.c:1.1 src/common/lib/libppath/ppath_extant.c:1.2
--- src/common/lib/libppath/ppath_extant.c:1.1	Thu Aug 25 10:55:36 2011
+++ src/common/lib/libppath/ppath_extant.c	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,5 @@
-/* $NetBSD: ppath_extant.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $ */
-/* $Id: ppath_extant.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $ */
+/* $NetBSD: ppath_extant.c,v 1.2 2012/12/29 20:08:23 christos Exp $ */
+
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($Id: ppath_extant.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $);
+__RCSID($NetBSD: ppath_extant.c,v 1.2 2012/12/29 20:08:23 christos Exp $);
 
 #include ppath/ppath_impl.h
 
Index: src/common/lib/libppath/ppath_kmem_alloc.c
diff -u src/common/lib/libppath/ppath_kmem_alloc.c:1.1 src/common/lib/libppath/ppath_kmem_alloc.c:1.2
--- src/common/lib/libppath/ppath_kmem_alloc.c:1.1	Thu Aug 25 10:55:36 2011
+++ src/common/lib/libppath/ppath_kmem_alloc.c	Sat Dec 29 15:08:23 2012
@@ -1,5 +1,5 @@
-/* $NetBSD: 

CVS commit: src/common/lib/libppath

2011-09-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 29 20:53:30 UTC 2011

Modified Files:
src/common/lib/libppath: ppath.c

Log Message:
Include sys/systm.h for panic()


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libppath/ppath.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath.c
diff -u src/common/lib/libppath/ppath.c:1.1 src/common/lib/libppath/ppath.c:1.2
--- src/common/lib/libppath/ppath.c:1.1	Thu Aug 25 10:55:36 2011
+++ src/common/lib/libppath/ppath.c	Thu Sep 29 16:53:30 2011
@@ -1,5 +1,5 @@
-/* $NetBSD: ppath.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $ */
-/* $Id: ppath.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $ */
+/* $NetBSD: ppath.c,v 1.2 2011/09/29 20:53:30 christos Exp $ */
+/* $Id: ppath.c,v 1.2 2011/09/29 20:53:30 christos Exp $ */
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,8 +30,9 @@
  */
 
 #include sys/cdefs.h
-__RCSID($Id: ppath.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $);
+__RCSID($Id: ppath.c,v 1.2 2011/09/29 20:53:30 christos Exp $);
 
+#include sys/systm.h
 #include ppath/ppath.h
 #include ppath/ppath_impl.h
 



CVS commit: src/common/lib/libppath

2011-09-13 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Tue Sep 13 18:04:54 UTC 2011

Modified Files:
src/common/lib/libppath: ppath_bool.3

Log Message:
Name arguments in a couple of prototypes before the arguments are
referred to by name.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libppath/ppath_bool.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath_bool.3
diff -u src/common/lib/libppath/ppath_bool.3:1.3 src/common/lib/libppath/ppath_bool.3:1.4
--- src/common/lib/libppath/ppath_bool.3:1.3	Thu Aug 25 15:14:43 2011
+++ src/common/lib/libppath/ppath_bool.3	Tue Sep 13 18:04:54 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_bool.3,v 1.3 2011/08/25 15:14:43 wiz Exp $
-.\	$Id: ppath_bool.3,v 1.3 2011/08/25 15:14:43 wiz Exp $
+.\	$NetBSD: ppath_bool.3,v 1.4 2011/09/13 18:04:54 dyoung Exp $
+.\	$Id: ppath_bool.3,v 1.4 2011/09/13 18:04:54 dyoung Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -156,7 +156,7 @@
 .Fa o ,
 it creates a private copy of the property for
 .Fa *op .
-.It Fn ppath_set_bool prop_object_t const ppath_t * bool
+.It Fn ppath_set_bool prop_object_t o const ppath_t *p bool v
 Replace with
 .Fa v
 the
@@ -165,7 +165,7 @@
 .Fa o
 named by
 .Fa p .
-.It Fn ppath_get_bool prop_object_t const ppath_t * bool *
+.It Fn ppath_get_bool prop_object_t o const ppath_t *p bool *vp
 Retrieve the
 .Vt prop_bool_t
 named by



CVS commit: src/common/lib/libppath

2011-09-13 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Tue Sep 13 18:05:20 UTC 2011

Modified Files:
src/common/lib/libppath: ppath_bool.3

Log Message:
Bump date for previous change.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libppath/ppath_bool.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath_bool.3
diff -u src/common/lib/libppath/ppath_bool.3:1.4 src/common/lib/libppath/ppath_bool.3:1.5
--- src/common/lib/libppath/ppath_bool.3:1.4	Tue Sep 13 18:04:54 2011
+++ src/common/lib/libppath/ppath_bool.3	Tue Sep 13 18:05:20 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_bool.3,v 1.4 2011/09/13 18:04:54 dyoung Exp $
-.\	$Id: ppath_bool.3,v 1.4 2011/09/13 18:04:54 dyoung Exp $
+.\	$NetBSD: ppath_bool.3,v 1.5 2011/09/13 18:05:20 dyoung Exp $
+.\	$Id: ppath_bool.3,v 1.5 2011/09/13 18:05:20 dyoung Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -28,7 +28,7 @@
 .\ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd August 24, 2011
+.Dd September 13, 2011
 .Dt PPATH_BOOL 3
 .Os
 .Sh NAME



CVS commit: src/common/lib/libppath

2011-09-13 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Tue Sep 13 18:07:22 UTC 2011

Modified Files:
src/common/lib/libppath: ppath_number.3

Log Message:
Name arguments in a couple of prototypes before the arguments are
referred to by name.  Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libppath/ppath_number.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath_number.3
diff -u src/common/lib/libppath/ppath_number.3:1.2 src/common/lib/libppath/ppath_number.3:1.3
--- src/common/lib/libppath/ppath_number.3:1.2	Thu Aug 25 15:12:38 2011
+++ src/common/lib/libppath/ppath_number.3	Tue Sep 13 18:07:22 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_number.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
-.\	$Id: ppath_number.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$NetBSD: ppath_number.3,v 1.3 2011/09/13 18:07:22 dyoung Exp $
+.\	$Id: ppath_number.3,v 1.3 2011/09/13 18:07:22 dyoung Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -28,7 +28,7 @@
 .\ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd August 24, 2011
+.Dd September 13, 2011
 .Dt PPATH_NUMBER 3
 .Os
 .Sh NAME
@@ -194,8 +194,8 @@
 .Fa o ,
 they create a private copy of the property for
 .Fa *op .
-.It Fn ppath_set_int64 prop_object_t const ppath_t * int64_t
-.It Fn ppath_set_uint64 prop_object_t const ppath_t * uint64_t
+.It Fn ppath_set_int64 prop_object_t o const ppath_t *p int64_t v
+.It Fn ppath_set_uint64 prop_object_t o const ppath_t * uint64_t v
 Replace with
 .Fa v
 the
@@ -204,8 +204,8 @@
 .Fa o
 named by
 .Fa p .
-.It Fn ppath_get_int64 prop_object_t const ppath_t * int64_t *
-.It Fn ppath_get_uint64 prop_object_t const ppath_t * uint64_t *
+.It Fn ppath_get_int64 prop_object_t o const ppath_t *p int64_t *vp
+.It Fn ppath_get_uint64 prop_object_t o const ppath_t *p uint64_t *vp
 Retrieve the
 .Vt prop_number_t
 named by



CVS commit: src/common/lib/libppath

2011-08-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Aug 25 15:12:38 UTC 2011

Modified Files:
src/common/lib/libppath: ppath.3 ppath_bool.3 ppath_number.3
ppath_object.3

Log Message:
Fix Dt argument, remove trailing whitespace, fix formatting nit.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libppath/ppath.3 \
src/common/lib/libppath/ppath_bool.3 \
src/common/lib/libppath/ppath_number.3 \
src/common/lib/libppath/ppath_object.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath.3
diff -u src/common/lib/libppath/ppath.3:1.1 src/common/lib/libppath/ppath.3:1.2
--- src/common/lib/libppath/ppath.3:1.1	Thu Aug 25 14:55:36 2011
+++ src/common/lib/libppath/ppath.3	Thu Aug 25 15:12:38 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
-.\	$Id: ppath.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
+.\	$NetBSD: ppath.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$Id: ppath.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -29,7 +29,7 @@
 .\ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\
 .Dd August 24, 2011
-.Dt ppath 3
+.Dt PPATH 3
 .Os
 .Sh NAME
 .Nm ppath ,
@@ -125,7 +125,7 @@
 The abstract function
 .Fn E
 evaluates
-a property-list path against a 
+a property-list path against a
 .Vt prop_object_t ,
 .Va o ,
 to yield a
@@ -169,7 +169,6 @@
 to paths in a file system, where property arrays and dictionaries
 correspond to directories, and all other property types correspond
 to files.
-.Pp
 .Sh DATA TYPES
 .Nm
 provides two opaque types:
@@ -177,13 +176,13 @@
 .It Vt ppath_component_t
 A property-list path component: a single key or index.
 .Nm
-counts references to a 
+counts references to a
 .Vt ppath_component_t
 and reclaims its storage when there are no more references.
 .It Vt ppath_t
 An array of zero or more property-list path components.
 .Nm
-counts references to a 
+counts references to a
 .Vt ppath_t
 and reclaims its storage when there are no more references.
 .El
@@ -251,13 +250,13 @@
 is the empty path or
 .Dv NULL ,
 return
-.Dv NULL.
+.Dv NULL .
 Otherwise, remove the last component from
 .Fa p
 and return
 .Fa p ,
 and if
-.Fa pcp 
+.Fa pcp
 is not
 .Dv NULL ,
 write the removed component to
Index: src/common/lib/libppath/ppath_bool.3
diff -u src/common/lib/libppath/ppath_bool.3:1.1 src/common/lib/libppath/ppath_bool.3:1.2
--- src/common/lib/libppath/ppath_bool.3:1.1	Thu Aug 25 14:55:36 2011
+++ src/common/lib/libppath/ppath_bool.3	Thu Aug 25 15:12:38 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_bool.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
-.\	$Id: ppath_bool.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
+.\	$NetBSD: ppath_bool.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$Id: ppath_bool.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -29,7 +29,7 @@
 .\ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\
 .Dd August 24, 2011
-.Dt ppath_bool 3
+.Dt PPATH_BOOL 3
 .Os
 .Sh NAME
 .Nm ppath_bool ,
@@ -212,8 +212,8 @@
 and
 .Fn ppath_copyset_bool
 return
-.Er ENOMEM 
-if there was insufficient memory to complete the operation.  
+.Er ENOMEM
+if there was insufficient memory to complete the operation.
 .El
 .Sh SEE ALSO
 .\ Cross-references should be ordered by section (low to high), then in
Index: src/common/lib/libppath/ppath_number.3
diff -u src/common/lib/libppath/ppath_number.3:1.1 src/common/lib/libppath/ppath_number.3:1.2
--- src/common/lib/libppath/ppath_number.3:1.1	Thu Aug 25 14:55:36 2011
+++ src/common/lib/libppath/ppath_number.3	Thu Aug 25 15:12:38 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_number.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
-.\	$Id: ppath_number.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
+.\	$NetBSD: ppath_number.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$Id: ppath_number.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -29,7 +29,7 @@
 .\ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\
 .Dd August 24, 2011
-.Dt ppath_number 3
+.Dt PPATH_NUMBER 3
 .Os
 .Sh NAME
 .Nm ppath_number ,
@@ -257,8 +257,8 @@
 and
 .Fn ppath_copyset_uint64
 return
-.Er ENOMEM 
-if there was insufficient memory to complete the operation.  
+.Er ENOMEM
+if there was insufficient memory to complete the operation.
 .El
 .Sh SEE ALSO
 .\ Cross-references should be ordered by section (low to high), then in
Index: src/common/lib/libppath/ppath_object.3
diff -u src/common/lib/libppath/ppath_object.3:1.1 src/common/lib/libppath/ppath_object.3:1.2
--- src/common/lib/libppath/ppath_object.3:1.1	Thu Aug 25 14:55:36 2011
+++ src/common/lib/libppath/ppath_object.3	Thu Aug 25 15:12:38 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_object.3,v 1.1 2011/08/25 14:55:36 dyoung Exp $
-.\	$Id: ppath_object.3,v 1.1 2011/08/25 

CVS commit: src/common/lib/libppath

2011-08-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Aug 25 15:14:43 UTC 2011

Modified Files:
src/common/lib/libppath: ppath_bool.3

Log Message:
Fix Nd argument.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libppath/ppath_bool.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libppath/ppath_bool.3
diff -u src/common/lib/libppath/ppath_bool.3:1.2 src/common/lib/libppath/ppath_bool.3:1.3
--- src/common/lib/libppath/ppath_bool.3:1.2	Thu Aug 25 15:12:38 2011
+++ src/common/lib/libppath/ppath_bool.3	Thu Aug 25 15:14:43 2011
@@ -1,5 +1,5 @@
-.\	$NetBSD: ppath_bool.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
-.\	$Id: ppath_bool.3,v 1.2 2011/08/25 15:12:38 wiz Exp $
+.\	$NetBSD: ppath_bool.3,v 1.3 2011/08/25 15:14:43 wiz Exp $
+.\	$Id: ppath_bool.3,v 1.3 2011/08/25 15:14:43 wiz Exp $
 .\
 .\ Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -39,7 +39,7 @@
 .Nm ppath_set_bool ,
 .Nm ppath_get_bool ,
 .Nm ppath_delete_bool
-.Nd integer property path operations
+.Nd boolean property path operations
 .Sh LIBRARY
 .Lb libppath
 .Sh SYNOPSIS