Searched refs:cb (Results 1 - 25 of 99) sorted by relevance

1234

/osnet-11/usr/src/lib/libast/common/string/
H A Dccnative.c44 register unsigned char* cb = (unsigned char*)b;
50 cb[c] = ca[m[c]];
53 memcpy(cb + n * c, ca + n * m[c], n);
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dcompress.c85 * Pointers into the compressed data, i.e. the compression block (cb),
88 u8 *cb_end = cb_start + cb_size; /* End of cb. */
89 u8 *cb = cb_start; /* Current position in cb. */ local
90 u8 *cb_sb_start = cb; /* Beginning of the current sb in the cb. */
102 ntfs_log_debug("Beginning sub-block at offset = 0x%x in the cb.\n",
103 cb - cb_start);
110 if (cb == cb_end || !le16_to_cpup((u16*)cb) || des
331 u8 *dest, *cb, *cb_pos, *cb_end; local
[all...]
/osnet-11/usr/src/lib/libnsl/dial/
H A Dulockf.c199 char cb[100]; local
203 (void) snprintf(cb, sizeof (cb),
205 logent("ULOCKC", cb);
212 (void) snprintf(cb, sizeof (cb),
214 logent("ULOCKW", cb);
226 (void) snprintf(cb, sizeof (cb),
228 logent("ULOCKLNK", cb);
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_parse.c334 static void output_quoted_string(char *str, void (*cb)(const char *,void *),
340 cb("\"", data);
342 cb("\"", data);
349 cb("\\\\", data);
352 cb("\\n", data);
355 cb("\\t", data);
358 cb("\\b", data);
365 cb(buf, data);
369 cb("\"", data);
384 void (*cb)(cons
[all...]
/osnet-11/usr/src/cmd/hal/hald/
H A Dhald_runner.h53 * cb will be called on abnormal or premature termination
58 HalRunTerminatedCB cb, gpointer data1, gpointer data2);
66 HalRunTerminatedCB cb,
73 HalRunTerminatedCB cb,
H A Dhald_runner.c45 HalRunTerminatedCB cb; member in struct:__anon35
58 HalRunTerminatedCB cb; member in struct:__anon36
124 rp->cb (rp->device, 0, 0, NULL, rp->data1, rp->data2);
366 HalRunTerminatedCB cb, gpointer data1, gpointer data2)
397 if (cb != NULL) {
401 rp->cb = cb;
456 hb->cb(hb->d, exitt, return_code,
469 hb->cb(hb->d, HALD_RUN_FAILED, return_code, NULL, hb->data1, hb->data2);
485 HalRunTerminatedCB cb,
365 hald_runner_start(HalDevice *device, const gchar *command_line, char **extra_env, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument
481 hald_runner_run_method(HalDevice *device, const gchar *command_line, char **extra_env, gchar *input, gboolean error_on_stderr, guint32 timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument
532 hald_runner_run(HalDevice *device, const gchar *command_line, char **extra_env, guint timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gfxmenu/
H A Dgui_util.c57 grub_gui_component_callback cb,
62 state.match_callback = cb;
94 grub_gui_component_callback cb,
98 state.callback = cb;
55 grub_gui_find_by_id(grub_gui_component_t root, const char *id, grub_gui_component_callback cb, void *userdata) argument
93 grub_gui_iterate_recursively(grub_gui_component_t root, grub_gui_component_callback cb, void *userdata) argument
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dcluster.h36 int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void *data);
H A Dcluster.c44 int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void *data) argument
53 if (!vol || !cb)
103 if ((*cb) (m_ctx->inode, a_ctx->attr, runs+j, data))
H A Dntfscluster.c282 int cb, sb, cps; local
328 cb = vol->cluster_size_bits;
330 cps = cb - sb;
333 fc <<= cb; local
334 mc <<= cb; local
335 uc <<= cb; local
340 d = vol->nr_clusters << cb;
348 l = fc >> cb;
352 p = uc >> cb;
356 t = mc >> cb;
[all...]
/osnet-11/usr/src/lib/libbe/common/
H A Dbe_list.c153 list_callback_data_t cb = { 0 }; local
166 (void) strcpy(cb.current_be, "-");
168 (void) strncpy(cb.current_be, bt.obe_name,
169 sizeof (cb.current_be));
177 cb.be_name = strdup(be_name);
179 if ((zpool_iter(g_zfs, be_get_list_callback, &cb)) != 0) {
180 if (cb.be_nodes_head != NULL) {
181 be_free_list(cb.be_nodes_head);
182 cb.be_nodes_head = NULL;
183 cb
281 list_callback_data_t cb = { 0 }; local
349 list_callback_data_t *cb = (list_callback_data_t *)data; local
457 list_callback_data_t *cb = (list_callback_data_t *)data; local
[all...]
/osnet-11/usr/src/lib/libslp/clib/
H A DSLPFindSrvs.c40 SLPSrvURLCallback *cb; member in struct:caller_bundle
107 SLPSrvURLCallback cb, void *cookie,
118 /* traverse_surls:invoke cb for sync case,and free resources */
120 traverse_surls(hp, cb, cookie, *collator);
122 cb(hp, NULL, 0, SLP_LAST_CALL, cookie);
133 return (cb(hp, NULL, 0, errCode, cookie));
192 /* invoke cb */
194 cont = cb(
225 SLPSrvURLCallback cb, void *cookie,
234 /* traverse_surls:invoke cb fo
106 slp_unpackSrvReply(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument
224 unpackDAAdvert_srv(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument
282 unpackSAAdvert_srv(slp_handle_impl_t *hp, char *reply, SLPSrvURLCallback cb, void *cookie, void **collator, int *numResults) argument
505 traverse_surls(SLPHandle h, SLPSrvURLCallback cb, void *cookie, void *collator) argument
520 SLPSrvURLCallback *cb; local
[all...]
H A DSLPFindAttrs.c106 SLPAttrCallback cb, void *cookie,
125 cb(hp, pcAttrList, SLP_OK, cookie);
128 cb(hp, NULL, SLP_LAST_CALL, cookie);
140 return (cb(hp, NULL, errCode, cookie));
176 /* async: invoke cb */
177 cont = cb((SLPHandle) hp, pcAttrList, errCode, cookie);
197 SLPAttrCallback cb, void *cookie,
211 cb(hp, attrs, SLP_OK, cookie);
214 cb(hp, NULL, SLP_LAST_CALL, cookie);
223 return (cb(h
105 slp_UnpackAttrReply(slp_handle_impl_t *hp, char *reply, SLPAttrCallback cb, void *cookie, void **collator, int *numResults) argument
196 unpackDAAdvert_attr(slp_handle_impl_t *hp, char *reply, SLPAttrCallback cb, void *cookie, void **collator, int *numResults) argument
253 unpackSAAdvert_attr(slp_handle_impl_t *hp, char *reply, SLPAttrCallback cb, void *cookie, void **collator, int *numResults) argument
[all...]
H A Dslp_ua_common.c40 SLPGenericAppCB *cb; member in struct:thr_call_args
51 SLPGenericAppCB cb, void *cookie,
79 args->cb = cb;
134 /* while cb wants more and there is more to get ... */
140 cont = args->msg_cb(hp, reply, args->cb, args->cookie,
150 /* cb doesn't want any more; invoke last call */
151 args->msg_cb(hp, NULL, args->cb, args->cookie,
50 slp_ua_common(SLPHandle hSLP, const char *scopes, SLPGenericAppCB cb, void *cookie, SLPMsgReplyCB msg_cb) argument
H A DSLPFindSrvTypes.c73 SLPSrvTypeCallback cb, void *cookie,
90 cb(hp, pcSrvTypes, SLP_OK, cookie);
93 cb(hp, NULL, SLP_LAST_CALL, cookie);
105 return (cb(hp, NULL, errCode, cookie));
119 /* async; invoke cb */
120 cont = cb((SLPHandle) hp, pcSrvTypes, errCode, cookie);
72 UnpackSrvTypesReply(slp_handle_impl_t *hp, char *reply, SLPSrvTypeCallback cb, void *cookie, void **collator, int *numResults) argument
/osnet-11/usr/src/lib/libc/port/gen/
H A Dchkauthattr.c92 int (*cb)(const char *, kva_t *, void *, void *),
131 if (cb != NULL && (!wantattr || pa != NULL && pa->attr != NULL))
132 res = cb(prof, pa ? pa->attr : NULL, ctxt, pres);
136 res = _enum_common_p(GETPROF(pa->attr), cb,
155 int (*cb)(const char *, kva_t *, void *, void *),
166 if (cb == NULL)
174 res = cb(NULL, ua->attr, ctxt, pres);
177 cb, ctxt, pres, wantattr, &cnt, profs);
197 res = _enum_common_p(GETCONSPROF(dp->attr), cb,
202 res = _enum_common_p(GETPROF(dp->attr), cb, ctx
251 int (*cb)(const char *, void *, void *); member in struct:ccomm2auth
[all...]
/osnet-11/usr/src/lib/libipmi/common/
H A Dipmi_user.c294 ipmi_user_cb_t cb = { 0 }; local
296 cb.uic_name = name;
297 cb.uic_result = NULL;
299 if (ipmi_user_iter(ihp, ipmi_user_callback, &cb) != 0)
302 if (cb.uic_result == NULL)
306 return (cb.uic_result);
312 ipmi_user_cb_t cb = { 0 }; local
314 cb.uic_uid = uid;
315 cb.uic_result = NULL;
317 if (ipmi_user_iter(ihp, ipmi_user_callback, &cb) !
[all...]
/osnet-11/usr/src/lib/libpool/common/
H A Dpool.c269 char_buf_t *cb = (char_buf_t *)user; local
279 if (append_char_buf(cb, "\n%s\t%s\t%s ", cb->cb_tab_buf,
285 if (append_char_buf(cb, "%llu", (u_longlong_t)u) == PO_FAIL)
290 if (append_char_buf(cb, "%lld", (longlong_t)i) == PO_FAIL)
295 if (append_char_buf(cb, "%s", str) == PO_FAIL)
301 if (append_char_buf(cb, "%s", "false") == PO_FAIL)
304 if (append_char_buf(cb, "%s", "true") == PO_FAIL)
310 if (append_char_buf(cb, "%g", d) == PO_FAIL)
327 pool_base_info(const pool_elem_t *pe, char_buf_t *cb, in argument
892 char_buf_t *cb; local
1023 char_buf_t *cb; local
1072 char_buf_t *cb; local
1905 char_buf_t *cb = NULL; local
[all...]
H A Dpool_internal.c1262 char_buf_t *cb; local
1273 if ((cb = alloc_char_buf(CB_DEFAULT_LEN)) == NULL) {
1276 if (set_char_buf(cb, "%s.sys_id", type) != PO_SUCCESS) {
1277 free_char_buf(cb);
1280 if (pool_value_set_name(props[1], cb->cb_buf) != PO_SUCCESS) {
1281 free_char_buf(cb);
1284 free_char_buf(cb);
1464 resize_char_buf(char_buf_t *cb, size_t size) argument
1468 if ((re_cb = realloc(cb->cb_buf, size)) == NULL) {
1473 if (cb
1492 char_buf_t *cb; local
1511 free_char_buf(char_buf_t *cb) argument
1525 set_char_buf(char_buf_t *cb, const char *fmt, ...) argument
1551 append_char_buf(char_buf_t *cb, const char *fmt, ...) argument
[all...]
H A Dpool_xml.c942 char_buf_t *cb = NULL; local
971 if ((cb = alloc_char_buf(CB_DEFAULT_LEN)) == NULL) {
995 free_char_buf(cb);
999 if (set_char_buf(cb, "%s.%s",
1007 free_char_buf(cb);
1010 if (pool_value_set_name(result[i], cb->cb_buf) !=
1017 free_char_buf(cb);
1028 free_char_buf(cb);
1033 free_char_buf(cb);
1418 char_buf_t *cb local
2098 char_buf_t *cb = NULL; local
2259 pool_build_xpath_buf(pool_xml_connection_t *prov, const pool_elem_t *src, pool_elem_class_t class, pool_value_t *props[], char_buf_t *cb, int is_ref) argument
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_cksum.c35 kg_checksum_channel_bindings(context, cb, cksum, bigend)
37 gss_channel_bindings_t cb;
57 /* generate a buffer full of zeros if no cb specified */
59 if (cb == GSS_C_NO_CHANNEL_BINDINGS) {
70 cb->initiator_address.length+
71 cb->acceptor_address.length+
72 cb->application_data.length);
82 TWRITE_INT(ptr, cb->initiator_addrtype, bigend);
83 TWRITE_BUF(ptr, cb->initiator_address, bigend);
84 TWRITE_INT(ptr, cb
[all...]
/osnet-11/usr/src/lib/fm/libldom/sparc/
H A Dldom_xmpp_client.h91 ldom_reg_cb_t cb; member in struct:client_info
104 extern int xmpp_add_client(ldom_hdl_t *lhp, ldom_reg_cb_t cb,
/osnet-11/usr/src/lib/fm/libfmd_zfs/common/
H A Dfmd_zfs.c466 zfs_iter_cbdata_t cb; local
468 cb.cb_type = TYPE_DEVID;
469 cb.cb_devid = devid;
470 cb.cb_func = func;
471 cb.cb_arg = arg;
472 (void) zpool_iter(zhdl, iter_by_pool, &cb);
479 zfs_iter_cbdata_t cb; local
481 cb.cb_type = TYPE_LOCATION;
482 cb.cb_chassissn = chassissn;
483 cb
492 zfs_iter_cbdata_t cb; local
504 zfs_iter_cbdata_t cb; local
517 zfs_iter_cbdata_t cb; local
[all...]
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Devents.c133 dm_init_event_queue(void (*cb)(nvlist_t *, int), int *errp)
138 if (cb != callback) {
140 callback = cb;
141 if (cb == NULL) {
142 /* clearing the cb so shutdown the internal cb thread */
147 /* installing a cb; we didn't have one before */
165 if (cb != NULL) {
168 callback = cb;
/osnet-11/usr/src/lib/libwanboot/common/
H A Dbootinfo_aux.c320 cb_t cb; local
322 cb.cb_path = path;
323 cb.cb_node = DI_NODE_NIL;
325 (void) di_walk_node(root_node, DI_WALK_CLDFIRST, &cb, p2n_cb);
327 return (cb.cb_node);

Completed in 102 milliseconds

1234