| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: prop_send_syscall.3,v 1.3 2011/01/20 10:48:37 wiz Exp $ | | 1 | .\" $NetBSD: prop_send_syscall.3,v 1.4 2011/06/19 08:53:02 pgoyette Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2006 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2006 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Jason R. Thorpe. | | 7 | .\" by Jason R. Thorpe. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -65,27 +65,27 @@ If successful, the functions return true | | | @@ -65,27 +65,27 @@ If successful, the functions return true |
65 | The following | | 65 | The following |
66 | .Pq simplified | | 66 | .Pq simplified |
67 | example demonstrates using | | 67 | example demonstrates using |
68 | .Fn prop_dictionary_send_syscall | | 68 | .Fn prop_dictionary_send_syscall |
69 | and | | 69 | and |
70 | .Fn prop_dictionary_recv_syscall | | 70 | .Fn prop_dictionary_recv_syscall |
71 | in an application: | | 71 | in an application: |
72 | .Bd -literal | | 72 | .Bd -literal |
73 | void | | 73 | void |
74 | foo_setprops(prop_dictionary_t dict) | | 74 | foo_setprops(prop_dictionary_t dict) |
75 | { | | 75 | { |
76 | struct pref pref; | | 76 | struct pref pref; |
77 | | | 77 | |
78 | (void) prop_dictionary_send_ioctl(dict, \*[Am]pref); | | 78 | (void) prop_dictionary_send_syscall(dict, \*[Am]pref); |
79 | (void) my_syscall_set(\*[Am]pref); | | 79 | (void) my_syscall_set(\*[Am]pref); |
80 | | | 80 | |
81 | } | | 81 | } |
82 | | | 82 | |
83 | prop_dictionary_t | | 83 | prop_dictionary_t |
84 | foo_getprops(void) | | 84 | foo_getprops(void) |
85 | { | | 85 | { |
86 | prop_dictionary_t dict; | | 86 | prop_dictionary_t dict; |
87 | struct pref pref; | | 87 | struct pref pref; |
88 | | | 88 | |
89 | (void) my_syscall_get(\*[Am]pref); | | 89 | (void) my_syscall_get(\*[Am]pref); |
90 | if (!prop_dictionary_recv_syscall(\*[Am]pref, \*[Am]dict)) | | 90 | if (!prop_dictionary_recv_syscall(\*[Am]pref, \*[Am]dict)) |
91 | return (NULL); | | 91 | return (NULL); |