Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/include/prop add sized versions of the copyin ioctls.



details:   https://anonhg.NetBSD.org/src/rev/de91d1f64102
branches:  trunk
changeset: 821222:de91d1f64102
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 29 00:16:19 2017 +0000

description:
add sized versions of the copyin ioctls.

diffstat:

 common/include/prop/prop_array.h      |  6 +++++-
 common/include/prop/prop_dictionary.h |  7 ++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 8032837a4379 -r de91d1f64102 common/include/prop/prop_array.h
--- a/common/include/prop/prop_array.h  Sun Jan 29 00:15:54 2017 +0000
+++ b/common/include/prop/prop_array.h  Sun Jan 29 00:16:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_array.h,v 1.14 2016/05/31 09:29:25 pgoyette Exp $    */
+/*     $NetBSD: prop_array.h,v 1.15 2017/01/29 00:16:19 christos Exp $    */
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -79,9 +79,13 @@
                                        prop_array_t *);
 #elif defined(_KERNEL)
 int            prop_array_copyin(const struct plistref *, prop_array_t *);
+int            prop_array_copyin_size(const struct plistref *, prop_array_t *);
 int            prop_array_copyout(struct plistref *, prop_array_t);
 int            prop_array_copyin_ioctl(const struct plistref *, const u_long,
                                        prop_array_t *);
+int            prop_array_copyin_ioctl_size(const struct plistref *,
+                                            const u_long, prop_array_t *,
+                                            size_t);
 int            prop_array_copyout_ioctl(struct plistref *, const u_long,
                                         prop_array_t);
 #endif
diff -r 8032837a4379 -r de91d1f64102 common/include/prop/prop_dictionary.h
--- a/common/include/prop/prop_dictionary.h     Sun Jan 29 00:15:54 2017 +0000
+++ b/common/include/prop/prop_dictionary.h     Sun Jan 29 00:16:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prop_dictionary.h,v 1.15 2016/01/22 23:03:46 dholland Exp $    */
+/*     $NetBSD: prop_dictionary.h,v 1.16 2017/01/29 00:16:19 christos Exp $    */
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -103,11 +103,16 @@
 #elif defined(_KERNEL)
 int            prop_dictionary_copyin(const struct plistref *,
                                       prop_dictionary_t *);
+int            prop_dictionary_copyin_size(const struct plistref *,
+                                           prop_dictionary_t *, size_t);
 int            prop_dictionary_copyout(struct plistref *,
                                       prop_dictionary_t);
 int            prop_dictionary_copyin_ioctl(const struct plistref *,
                                             const u_long,
                                             prop_dictionary_t *);
+int            prop_dictionary_copyin_ioctl_size(const struct plistref *,
+                                                 const u_long,
+                                                 prop_dictionary_t *, size_t);
 int            prop_dictionary_copyout_ioctl(struct plistref *,
                                              const u_long,
                                              prop_dictionary_t);



Home | Main Index | Thread Index | Old Index