PROP_SEND_SYCALL(3) | NetBSD Library Functions Manual | PROP_SEND_SYCALL(3) |
bool
prop_array_send_syscall(prop_array_t array, struct plistref *prefp);
bool
prop_array_recv_syscall(const struct plistref *prefp, prop_array_t *arrayp);
bool
prop_dictionary_send_syscall(prop_dictionary_t dict, struct plistref *prefp);
bool
prop_dictionary_recv_syscall(const struct plistref *prefp, prop_dictionary_t *dictp);
void foo_setprops(prop_dictionary_t dict) { struct pref pref; (void) prop_dictionary_send_syscall(dict, &pref); (void) my_syscall_set(&pref); } prop_dictionary_t foo_getprops(void) { prop_dictionary_t dict; struct pref pref; (void) my_syscall_get(&pref); if (!prop_dictionary_recv_syscall(&pref, &dict)) return (NULL); return (dict); }
January 17, 2011 | NetBSD 5.99 |