Lines Matching refs:out
363 scf_type_base_type(scf_type_t type, scf_type_t *out)
369 *out = scf_protocol_type_to_type(scf_proto_underlying_type(t));
452 char *out = out_arg;
475 *out++ = (a << 4) | b;
479 return (out - out_arg);
487 char *out = out_arg;
489 if (out == NULL)
499 *out++ = a + '0';
501 *out++ = a + 'a' - 10;
504 *out++ = b + '0';
506 *out++ = b + 'a' - 10;
509 *out = 0;
511 return (out - out_arg);
810 * _NO_RESOURCES - server is out of memory
1026 * _NO_RESOURCES - server out of memory
1116 * _NO_RESOURCES - server is out of memory
1143 /* wait until any active fd users have cleared out */
1408 scf_myname(scf_handle_t *h, char *out, size_t len)
1419 return (strlcpy(out, cp, len));
1720 * Fails with _HANDLE_MISMATCH, _INVALID_ARGUMENT (out does not have type type,
1729 uint32_t type, scf_datael_t *out, scf_iter_t *iter)
1738 if (h != out->rd_handle)
1741 if (out->rd_type != type)
1762 datael_finish_reset(out);
1782 read_request.rpr_entityid = out->rd_entity;
1807 * Fails with _HANDLE_MISMATCH, _INVALID_ARGUMENT (out does not have type type,
1814 uint32_t type, scf_datael_t *out)
1822 if (h != out->rd_handle)
1825 if (out->rd_type != type)
1832 request.rpr_childid = out->rd_entity;
1840 datael_finish_reset(out);
1854 * Fails with _HANDLE_MISMATCH, _INVALID_ARGUMENT (out does not have type type,
1863 scf_datael_t *out, boolean_t composed)
1874 if (out == NULL) {
1877 out = &HANDLE_HOLD_SERVICE(h)->rd_d;
1882 out = &HANDLE_HOLD_INSTANCE(h)->rd_d;
1887 out = &HANDLE_HOLD_SNAPSHOT(h)->rd_d;
1892 out = &HANDLE_HOLD_SNAPLVL(h)->rd_d;
1897 out = &HANDLE_HOLD_PG(h)->rd_d;
1902 out = &HANDLE_HOLD_PROPERTY(h)->rd_d;
1914 ret = datael_get_child_composed_locked(dp, name, type, out,
1917 ret = datael_get_child_locked(dp, name, type, out);
2229 handle_get_local_scope_locked(scf_handle_t *handle, scf_scope_t *out)
2237 if (handle != out->rd_d.rd_handle)
2241 request.rpr_entityid = out->rd_d.rd_entity;
2244 datael_finish_reset(&out->rd_d);
2284 scf_iter_next_scope(scf_iter_t *iter, scf_scope_t *out)
2289 if (h != out->rd_d.rd_handle)
2302 if ((ret = handle_get_local_scope_locked(h, out)) ==
2308 datael_reset_locked(&out->rd_d);
2316 scf_handle_get_scope(scf_handle_t *h, const char *name, scf_scope_t *out)
2320 if (h != out->rd_d.rd_handle)
2325 ret = handle_get_local_scope_locked(h, out);
2327 datael_reset_locked(&out->rd_d);
2430 datael_iter_next(scf_iter_t *iter, scf_datael_t *out)
2438 if (h != out->rd_handle)
2448 if (out->rd_type != iter->iter_type) {
2456 request.rpr_entityid = out->rd_entity;
2458 datael_finish_reset(out);
2489 scf_iter_next_service(scf_iter_t *iter, scf_service_t *out)
2491 return (datael_iter_next(iter, &out->rd_d));
2502 scf_iter_next_instance(scf_iter_t *iter, scf_instance_t *out)
2504 return (datael_iter_next(iter, &out->rd_d));
2529 scf_iter_next_snapshot(scf_iter_t *iter, scf_snapshot_t *out)
2531 return (datael_iter_next(iter, &out->rd_d));
2585 scf_iter_next_pg(scf_iter_t *iter, scf_propertygroup_t *out)
2587 return (datael_iter_next(iter, &out->rd_d));
2598 scf_iter_next_property(scf_iter_t *iter, scf_property_t *out)
2600 return (datael_iter_next(iter, &out->rd_d));
2647 scf_scope_get_name(const scf_scope_t *rep, char *out, size_t len)
2649 return (datael_get_name(&rep->rd_d, out, len, RP_ENTITY_NAME_NAME));
2887 scf_service_get_name(const scf_service_t *rep, char *out, size_t len)
2889 return (datael_get_name(&rep->rd_d, out, len, RP_ENTITY_NAME_NAME));
2932 scf_instance_get_name(const scf_instance_t *rep, char *out, size_t len)
2934 return (datael_get_name(&rep->rd_d, out, len, RP_ENTITY_NAME_NAME));
2977 scf_snapshot_get_name(const scf_snapshot_t *rep, char *out, size_t len)
2979 return (datael_get_name(&rep->rd_d, out, len, RP_ENTITY_NAME_NAME));
3022 scf_snaplevel_get_scope_name(const scf_snaplevel_t *rep, char *out, size_t len)
3024 return (datael_get_name(&rep->rd_d, out, len,
3029 scf_snaplevel_get_service_name(const scf_snaplevel_t *rep, char *out,
3032 return (datael_get_name(&rep->rd_d, out, len,
3037 scf_snaplevel_get_instance_name(const scf_snaplevel_t *rep, char *out,
3040 return (datael_get_name(&rep->rd_d, out, len,
3114 scf_snaplevel_t *out)
3116 return (snaplevel_next(&base->rd_d, out));
3120 scf_snaplevel_t *out)
3122 return (snaplevel_next(&base->rd_d, out));
3164 scf_pg_get_name(const scf_propertygroup_t *pg, char *out, size_t len)
3166 return (datael_get_name(&pg->rd_d, out, len, RP_ENTITY_NAME_NAME));
3170 scf_pg_get_type(const scf_propertygroup_t *pg, char *out, size_t len)
3172 return (datael_get_name(&pg->rd_d, out, len, RP_ENTITY_NAME_PGTYPE));
3176 scf_pg_get_flags(const scf_propertygroup_t *pg, uint32_t *out)
3187 if (uu_strtouint(buf, out, sizeof (*out), 0, 0, UINT32_MAX) == -1)
3329 _scf_notify_wait(scf_propertygroup_t *pg, char *out, size_t sz)
3383 return (strlcpy(out, response.rpr_fmri, sz));
3564 rep_protocol_value_type_t *out)
3589 *out = response.rpr_value;
3594 scf_property_type(const scf_property_t *prop, scf_type_t *out)
3605 *out = scf_protocol_type_to_type(out_raw);
3649 scf_property_get_name(const scf_property_t *prop, char *out, size_t len)
3651 return (datael_get_name(&prop->rd_d, out, len, RP_ENTITY_NAME_NAME));
3981 struct rep_protocol_transaction_cmd *out)
3986 caddr_t data = (caddr_t)out->rptc_data;
3989 if (out != NULL) {
3992 out->rptc_action = cur->entry_action;
3993 out->rptc_type = cur->entry_type;
3994 out->rptc_name_len = len + 1;
4010 if (out != NULL) {
4030 if (out != NULL)
4031 out->rptc_size = REP_PROTOCOL_TRANSACTION_CMD_SIZE(sz);
4504 scf_value_get_boolean(const scf_value_t *val, uint8_t *out)
4521 if (out != NULL)
4522 *out = o;
4527 scf_value_get_count(const scf_value_t *val, uint64_t *out)
4540 if (out != NULL)
4541 *out = o;
4546 scf_value_get_integer(const scf_value_t *val, int64_t *out)
4559 if (out != NULL)
4560 *out = o;
4598 scf_value_get_astring(const scf_value_t *val, char *out, size_t len)
4608 ret = (ssize_t)strlcpy(out, val->value_value, len);
4614 scf_value_get_ustring(const scf_value_t *val, char *out, size_t len)
4624 ret = (ssize_t)strlcpy(out, val->value_value, len);
4630 scf_value_get_opaque(const scf_value_t *v, void *out, size_t len)
4644 (void) memcpy(out, v->value_value, len);
4813 * Note that we only write out full hex bytes -- if they're
5677 scf_scope_to_fmri(const scf_scope_t *scope, char *out, size_t sz)
5688 len = strlcpy(out, SCF_FMRI_SVC_PREFIX, sz);
5693 len = strlcat(out, tmp, sz);
5696 len = strlcat(out,
5709 scf_service_to_fmri(const scf_service_t *svc, char *out, size_t sz)
5724 if (out != NULL && sz > 0)
5725 len = scf_scope_to_fmri(scope, out, sz);
5734 if (out == NULL || len >= sz)
5737 len = strlcat(out, SCF_FMRI_SERVICE_PREFIX, sz);
5743 if (out == NULL || len >= sz)
5746 len = strlcat(out, tmp, sz);
5752 scf_instance_to_fmri(const scf_instance_t *inst, char *out, size_t sz)
5766 len = scf_service_to_fmri(svc, out, sz);
5776 len = strlcat(out, SCF_FMRI_INSTANCE_PREFIX, sz);
5785 len = strlcat(out, tmp, sz);
5791 scf_pg_to_fmri(const scf_propertygroup_t *pg, char *out, size_t sz)
5827 len = scf_service_to_fmri(svc, out, sz);
5841 len = scf_instance_to_fmri(inst, out, sz);
5861 len = scf_instance_to_fmri(inst, out, sz);
5879 len = strlcat(out, SCF_FMRI_PROPERTYGRP_PREFIX, sz);
5889 len = strlcat(out, tmp, sz);
5895 scf_property_to_fmri(const scf_property_t *prop, char *out, size_t sz)
5910 len = scf_pg_to_fmri(pg, out, sz);
5917 len = strlcat(out, SCF_FMRI_PROPERTY_PREFIX, sz);
5927 len = strlcat(out, tmp, sz);
5944 scf_propertygroup_t *out)
5953 if (h != out->rd_d.rd_handle)
5969 goto out;
5971 r = scf_service_get_pg(svc, me, out);
5976 out:
6506 * If we got here because of a fatal error, bail out
7041 uchar_t *out = (uchar_t *)output;
7075 *out++ = base32[in[0] >> 3];
7077 *out++ = base32[((in[0] << 2) & 0x1c) | (in[1] >> 6)];
7079 *out++ = base32[(in[1] >> 1) & 0x1f];
7081 *out++ = base32[((in[1] << 4) & 0x10) | ((in[2] >> 4) & 0xf)];
7083 *out++ = base32[((in[2] << 1) & 0x1e) | (in[3] >> 7)];
7085 *out++ = base32[(in[3] >> 2) & 0x1f];
7087 *out++ = base32[((in[3] << 3) & 0x18) | (in[4] >> 5)];
7089 *out++ = base32[in[4] & 0x1f];
7096 *out++ = base32[in[0] >> 3];
7103 *out++ = base32[oval];
7108 *out++ = base32[oval];
7110 *out++ = base32[(in[1] >> 1) & 0x1f];
7117 *out++ = base32[oval];
7122 *out++ = base32[oval];
7129 *out++ = base32[oval];
7134 *out++ = base32[oval];
7136 *out++ = base32[(in[3] >> 2) & 0x1f];
7138 *out++ = base32[(in[3] << 3) & 0x18];
7146 *out++ = pad;
7153 *out = 0;
7203 char *out = outbuf;
7221 while ((i < inlen) && (out < bufend)) {
7254 if ((count >= 2) && (out < bufend)) {
7260 *out++ = (g[0] << 3) | ((g[1] >> 2) & 0x7);
7262 if ((count >= 4) && (out < bufend)) {
7269 *out++ = (g[1] << 6) | (g[2] << 1) | \
7272 if ((count >= 5) && (out < bufend)) {
7278 *out++ = (g[3] << 4) | ((g[4] >> 1) & 0xf);
7280 if ((count >= 7) && (out < bufend)) {
7287 *out++ = (g[4] << 7) | (g[5] << 2) |
7290 if ((count == 8) && (out < bufend)) {
7296 *out++ = (g[6] << 5) | g[7];
7304 *outlen = out - outbuf;
7306 if (out < bufend)
7307 *out = 0;
7356 * _NO_RESOURCES svc.configd is out of memory
7394 _scf_pg_is_read_protected(const scf_propertygroup_t *pg, boolean_t *out)
7405 if (uu_strtouint(buf, out, sizeof (*out), 0, 0, 1) == -1)