| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: prop_array.h,v 1.15 2017/01/29 00:16:19 christos Exp $ */ | | 1 | /* $NetBSD: prop_array.h,v 1.16 2017/01/29 02:07:44 christos Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Jason R. Thorpe. | | 8 | * by Jason R. Thorpe. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -69,27 +69,28 @@ prop_array_t prop_array_internalize_from | | | @@ -69,27 +69,28 @@ prop_array_t prop_array_internalize_from |
69 | struct plistref; | | 69 | struct plistref; |
70 | | | 70 | |
71 | #if !defined(_KERNEL) && !defined(_STANDALONE) | | 71 | #if !defined(_KERNEL) && !defined(_STANDALONE) |
72 | bool prop_array_externalize_to_pref(prop_array_t, struct plistref *); | | 72 | bool prop_array_externalize_to_pref(prop_array_t, struct plistref *); |
73 | bool prop_array_internalize_from_pref(const struct plistref *, | | 73 | bool prop_array_internalize_from_pref(const struct plistref *, |
74 | prop_array_t *); | | 74 | prop_array_t *); |
75 | int prop_array_send_ioctl(prop_array_t, int, unsigned long); | | 75 | int prop_array_send_ioctl(prop_array_t, int, unsigned long); |
76 | int prop_array_recv_ioctl(int, unsigned long, prop_array_t *); | | 76 | int prop_array_recv_ioctl(int, unsigned long, prop_array_t *); |
77 | int prop_array_send_syscall(prop_array_t, struct plistref *); | | 77 | int prop_array_send_syscall(prop_array_t, struct plistref *); |
78 | int prop_array_recv_syscall(const struct plistref *, | | 78 | int prop_array_recv_syscall(const struct plistref *, |
79 | prop_array_t *); | | 79 | prop_array_t *); |
80 | #elif defined(_KERNEL) | | 80 | #elif defined(_KERNEL) |
81 | int prop_array_copyin(const struct plistref *, prop_array_t *); | | 81 | int prop_array_copyin(const struct plistref *, prop_array_t *); |
82 | int prop_array_copyin_size(const struct plistref *, prop_array_t *); | | 82 | int prop_array_copyin_size(const struct plistref *, prop_array_t *, |
| | | 83 | size_t); |
83 | int prop_array_copyout(struct plistref *, prop_array_t); | | 84 | int prop_array_copyout(struct plistref *, prop_array_t); |
84 | int prop_array_copyin_ioctl(const struct plistref *, const u_long, | | 85 | int prop_array_copyin_ioctl(const struct plistref *, const u_long, |
85 | prop_array_t *); | | 86 | prop_array_t *); |
86 | int prop_array_copyin_ioctl_size(const struct plistref *, | | 87 | int prop_array_copyin_ioctl_size(const struct plistref *, |
87 | const u_long, prop_array_t *, | | 88 | const u_long, prop_array_t *, |
88 | size_t); | | 89 | size_t); |
89 | int prop_array_copyout_ioctl(struct plistref *, const u_long, | | 90 | int prop_array_copyout_ioctl(struct plistref *, const u_long, |
90 | prop_array_t); | | 91 | prop_array_t); |
91 | #endif | | 92 | #endif |
92 | #endif /* __NetBSD__ */ | | 93 | #endif /* __NetBSD__ */ |
93 | | | 94 | |
94 | /* | | 95 | /* |
95 | * Utility routines to make it more convenient to work with values | | 96 | * Utility routines to make it more convenient to work with values |