Lines Matching refs:err

119 	int		err;  in post_req()  local
140 err = ret->ret_error.errnum; in post_req()
142 err = PICL_UNKNOWNSERVICE; in post_req()
145 return (err); in post_req()
155 int err; in handshake() local
163 if ((err = post_req(&darg, &req, sizeof (picl_reqinit_t), NULL, in handshake()
165 return (err); in handshake()
181 int err; in trysend_req() local
191 while ((err = post_req(dargp, data_ptr, data_size, desc_ptr, desc_num, in trysend_req()
199 err = PICL_NORESPONSE; in trysend_req()
215 err = PICL_NOTINITIALIZED; in trysend_req()
222 return (err); in trysend_req()
232 int err; in picl_initialize() local
236 err = handshake(); in picl_initialize()
237 if (err == PICL_SUCCESS) { in picl_initialize()
240 return (err); in picl_initialize()
242 if (err != PICL_NORESPONSE) { in picl_initialize()
244 return (err); in picl_initialize()
257 err = handshake(); in picl_initialize()
258 if (err != PICL_SUCCESS) in picl_initialize()
263 return (err); in picl_initialize()
273 int err; in picl_shutdown() local
284 err = post_req(&darg, &req_fini, sizeof (picl_reqfini_t), in picl_shutdown()
290 if (err != PICL_SUCCESS) in picl_shutdown()
291 return (err); in picl_shutdown()
308 int err; in picl_wait() local
312 err = trysend_req(&darg, &req_wait, sizeof (picl_reqwait_t), in picl_wait()
314 if (err != PICL_SUCCESS) in picl_wait()
315 return (err); in picl_wait()
319 err = ret->ret_wait.retcode; in picl_wait()
322 return (err); in picl_wait()
336 int err; in picl_get_root() local
339 err = trysend_req(&darg, &req_root, sizeof (picl_reqroot_t), NULL, in picl_get_root()
341 if (err != PICL_SUCCESS) in picl_get_root()
342 return (err); in picl_get_root()
362 int err; in picl_get_propval() local
371 err = trysend_req(&darg, &req_attrval, sizeof (picl_reqattrval_t), in picl_get_propval()
374 if (err != PICL_SUCCESS) in picl_get_propval()
375 return (err); in picl_get_propval()
380 err = PICL_VALUETOOBIG; in picl_get_propval()
386 return (err); in picl_get_propval()
401 int err; in picl_get_propval_by_name() local
411 err = trysend_req(&darg, &req_attrvalbyname, in picl_get_propval_by_name()
414 if (err != PICL_SUCCESS) in picl_get_propval_by_name()
415 return (err); in picl_get_propval_by_name()
420 err = PICL_VALUETOOBIG; in picl_get_propval_by_name()
426 return (err); in picl_get_propval_by_name()
439 int err; in picl_set_propval() local
452 err = trysend_req(&darg, inargs, sizeof (picl_reqsetattrval_t) + in picl_set_propval()
455 if (err != PICL_SUCCESS) in picl_set_propval()
456 return (err); in picl_set_propval()
474 int err; in picl_set_propval_by_name() local
488 err = trysend_req(&darg, inargs, in picl_set_propval_by_name()
492 if (err != PICL_SUCCESS) in picl_set_propval_by_name()
493 return (err); in picl_set_propval_by_name()
511 int err; in picl_get_propinfo() local
516 err = trysend_req(&darg, &req_attrinfo, in picl_get_propinfo()
519 if (err != PICL_SUCCESS) in picl_get_propinfo()
520 return (err); in picl_get_propinfo()
544 int err; in picl_get_first_prop() local
549 err = trysend_req(&darg, &req_firstattr, in picl_get_first_prop()
552 if (err != PICL_SUCCESS) in picl_get_first_prop()
553 return (err); in picl_get_first_prop()
574 int err; in picl_get_next_prop() local
580 err = trysend_req(&darg, &req_nextattr, in picl_get_next_prop()
583 if (err != PICL_SUCCESS) in picl_get_next_prop()
584 return (err); in picl_get_next_prop()
606 int err; in picl_get_prop_by_name() local
612 err = trysend_req(&darg, &req_attrbyname, in picl_get_prop_by_name()
615 if (err != PICL_SUCCESS) in picl_get_prop_by_name()
616 return (err); in picl_get_prop_by_name()
639 int err; in picl_get_next_by_row() local
644 err = trysend_req(&darg, &req_attrbyrow, in picl_get_next_by_row()
647 if (err != PICL_SUCCESS) in picl_get_next_by_row()
648 return (err); in picl_get_next_by_row()
671 int err; in picl_get_next_by_col() local
676 err = trysend_req(&darg, (char *)&req_attrbycol, in picl_get_next_by_col()
679 if (err != PICL_SUCCESS) in picl_get_next_by_col()
680 return (err); in picl_get_next_by_col()
695 picl_strerror(int err) in picl_strerror() argument
697 if ((err < N_ERRORS) && (err >= 0)) { in picl_strerror()
698 return (gettext(picl_errmsg[err])); in picl_strerror()
710 int err; in do_walk() local
714 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &chdh, in do_walk()
716 while (err == PICL_SUCCESS) { in do_walk()
717 err = picl_get_propval_by_name(chdh, PICL_PROP_CLASSNAME, in do_walk()
719 if (err != PICL_SUCCESS) in do_walk()
720 return (err); in do_walk()
723 err = callback_fn(chdh, c_args); in do_walk()
724 if (err != PICL_WALK_CONTINUE) in do_walk()
725 return (err); in do_walk()
728 if ((err = do_walk(chdh, classname, c_args, callback_fn)) != in do_walk()
730 return (err); in do_walk()
732 err = picl_get_propval_by_name(chdh, PICL_PROP_PEER, &chdh, in do_walk()
735 if (err == PICL_PROPNOTFOUND) /* end of a branch */ in do_walk()
737 return (err); in do_walk()
749 int err; in picl_walk_tree_by_class() local
753 err = do_walk(rooth, classname, c_args, callback_fn); in picl_walk_tree_by_class()
754 if ((err == PICL_WALK_CONTINUE) || (err == PICL_WALK_TERMINATE)) in picl_walk_tree_by_class()
756 return (err); in picl_walk_tree_by_class()
766 int err; in picl_get_propinfo_by_name() local
770 err = picl_get_prop_by_name(nodeh, prop_name, &tmpproph); in picl_get_propinfo_by_name()
771 if (err != PICL_SUCCESS) in picl_get_propinfo_by_name()
772 return (err); in picl_get_propinfo_by_name()
774 err = picl_get_propinfo(tmpproph, &tmppinfo); in picl_get_propinfo_by_name()
775 if (err != PICL_SUCCESS) in picl_get_propinfo_by_name()
776 return (err); in picl_get_propinfo_by_name()
790 int err; in picl_get_node_by_path() local
798 err = trysend_req(&darg, &req, sizeof (req), NULL, 0, &out, in picl_get_node_by_path()
800 if (err != PICL_SUCCESS) in picl_get_node_by_path()
801 return (err); in picl_get_node_by_path()
808 return (err); in picl_get_node_by_path()
819 int err; in picl_find_node() local
833 err = trysend_req(&darg, req, sizeof (picl_reqfindnode_t) + valsize, in picl_find_node()
835 if (err != PICL_SUCCESS) in picl_find_node()
836 return (err); in picl_find_node()
843 return (err); in picl_find_node()
853 int err; in picl_get_frutree_parent() local
858 err = trysend_req(&darg, &req, sizeof (req), NULL, 0, &out, in picl_get_frutree_parent()
860 if (err != PICL_SUCCESS) in picl_get_frutree_parent()
861 return (err); in picl_get_frutree_parent()
868 return (err); in picl_get_frutree_parent()