/osnet-11/usr/src/lib/libcontract/common/ |
H A D | device.c | 69 ct_dev_tmpl_get_minor(int fd, char *buf, size_t *buflenp) argument 71 int ret = ct_tmpl_get_internal_string(fd, CTDP_MINOR, buf, *buflenp);
|
/osnet-11/usr/src/lib/libcpc/common/ |
H A D | subr.c | 51 char *buf = NULL; local 122 if (nvlist_pack(setlist, &buf, &packsize, NV_ENCODE_NATIVE, 133 return (buf);
|
/osnet-11/usr/src/lib/libcrypt/common/ |
H A D | des.c | 99 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec) argument 108 err = common_crypt(key, buf, len, mode, &dp); 119 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode) argument 127 ret = common_crypt(key, buf, len, mode, &dp); 138 common_crypt(char *key, char *buf, unsigned len, argument 166 DESCOPY(buf, desp->des_data, len); 168 DESCOPY(desp->des_data, buf, len); 170 desp->des_buf = (uchar_t *)buf; 180 if (!__des_crypt(buf, len, desp)) {
|
/osnet-11/usr/src/lib/libdevinfo/ |
H A D | devinfo_profile.c | 84 char *buf = NULL; local 88 if (nvlist_pack((nvlist_t *)prof, &buf, &buflen, NV_ENCODE_NATIVE, 0)) 90 rv = modctl(MODDEVNAME, MODDEVNAME_PROFILE, buf, buflen); 91 free(buf);
|
/osnet-11/usr/src/lib/libdll/common/ |
H A D | dllnext.c | 75 char buf[1024]; local 139 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: next %s\n", vp)); 145 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: skip %s\n", vp)); 152 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dl [all...] |
/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_buf.c | 86 const void *buf, size_t len, size_t align) 121 bcopy(buf, bp->dbu_ptr, len); 166 void *buf = bp->dbu_buf; local 169 dt_free(dtp, buf); 170 buf = NULL; 176 return (buf); 85 dt_buf_write(dtrace_hdl_t *dtp, dt_buf_t *bp, const void *buf, size_t len, size_t align) argument
|
/osnet-11/usr/src/lib/libeti/form/common/ |
H A D | ty_int.c | 116 char buf[80]; local 133 (void) sprintf(buf, "%.*ld", prec, v); 134 (void) set_field_buffer(f, 0, buf);
|
H A D | ty_num.c | 116 char buf[80]; local 138 (void) sprintf(buf, "%.*f", prec, v); 139 (void) set_field_buffer(f, 0, buf);
|
/osnet-11/usr/src/lib/libgss/ |
H A D | g_imp_name.c | 193 unsigned char *buf; local 205 buf = (unsigned char *)expName.value; 206 if (memcmp(expNameTokId, buf, expNameTokIdLen) != 0) 209 buf += expNameTokIdLen; 212 mechOidLen = (*buf++ << 8); 213 mechOidLen |= (*buf++); 221 if (*buf++ != 0x06) 232 mechOid.length = get_der_length(&buf, 234 mechOid.elements = (void *)buf; 243 buf [all...] |
H A D | g_utils.c | 60 char buf[BUFLEN]; /* one line from the file */ local 91 line = fgets(buf, BUFLEN, fp); 104 name = &(buf[0]);
|
/osnet-11/usr/src/lib/libilb/common/ |
H A D | ilb_nat.c | 48 * buf: The buffer to return the NAT table entries. 49 * num: The caller sets it to the number of ilb_nat_info_t entries buf can 50 * hold. On return, it contains the actual number of entries put in buf. 61 ilb_show_nat(ilb_handle_t h, ilb_nat_info_t buf[], size_t *num, argument 64 return (ilb_show_info(h, (char *)buf, num, end, show_nat)); 70 * buf: The buffer to return the persistent table entries. 71 * num: The caller sets it to the number of ilb_persist_info_t entries buf can 72 * hold. On return, it contains the actual number of entries put in buf. 83 ilb_show_persist(ilb_handle_t h, ilb_persist_info_t buf[], size_t *num, argument 86 return (ilb_show_info(h, (char *)buf, nu 94 ilb_show_info(ilb_handle_t h, char *buf, size_t *num, boolean_t *end, enum which_tbl tbl) argument [all...] |
/osnet-11/usr/src/lib/libipmi/common/ |
H A D | ipmi_fru.c | 52 ipmi_fru_read(ipmi_handle_t *ihp, ipmi_sdr_fru_locator_t *fru_loc, char **buf) argument 115 *buf = tmp; 121 ipmi_fru_prod_info_t *buf) 145 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_manuf_name); 151 buf->ifpi_product_name); 156 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_part_number); 162 buf->ifpi_product_version); 168 buf->ifpi_product_serial); 173 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_asset_tag); 185 ipmi_fru_brd_info_t *buf) 120 ipmi_fru_parse_product(ipmi_handle_t *ihp, char *fru_area, ipmi_fru_prod_info_t *buf) argument 184 ipmi_fru_parse_board(ipmi_handle_t *ihp, char *fru_area, ipmi_fru_brd_info_t *buf) argument [all...] |
/osnet-11/usr/src/lib/libipmp/common/ |
H A D | ipmp_mpathd.c | 166 const char *buf = buffer; local 169 nbytes = write(fd, &buf[nwritten], buflen - nwritten); 204 * to by `buf' before the current time becomes `endtp'; a `endtp' of NULL
|
/osnet-11/usr/src/lib/efcode/engine/ |
H A D | tracing.c | 104 static char buf[80]; local
|
/osnet-11/usr/src/lib/efcode/fcdriver/ |
H A D | property.c | 60 getprop(common_data_t *cdp, fc_phandle_t node, char *propname, char *buf, argument 70 fc_ptr2cell(buf), fc_ptr2cell(propname), &len); 79 int inherit, char **buf, int *len) 109 *buf = prop_buf; 78 os_get_prop_common(common_data_t *cdp, fc_phandle_t node, char *name, int inherit, char **buf, int *len) argument
|
/osnet-11/usr/src/lib/efcode/packages/ |
H A D | populate.c | 59 char *buf; local 78 buf = MALLOC(len); 80 fc_ptr2cell(dropin_name), fc_ptr2cell(buf), len, &result); 82 FREE(buf); 86 if (check_fcode_header(dropin_name, (uchar_t *)buf, len) == 0) 93 PUSH(DS, (fstack_t)buf); 239 char *method, *path, *buf; local 269 buf = MALLOC(len); 271 fc_ptr2cell(method), fc_ptr2cell(buf), len, &result); 273 FREE(buf); [all...] |
/osnet-11/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_util.c | 209 dflt_free(void *buf, size_t sz) argument 211 umem_free(buf, sz);
|
/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | fmd.c | 114 fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen) argument 121 return (snprintf(buf, buflen,
|
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/ |
H A D | chip_serial.c | 57 ipmi_serial_lookup(topo_mod_t *mod, char *ipmi_tag, char *buf) argument 115 (void) memcpy(buf, prod_info.ifpi_product_serial, 18); 116 *(buf+18) = '\0'; 127 * buf to an empty string. 130 *buf = '\0'; 182 (void) memcpy(buf, jedec_tbl[i][1], 4); 184 (void) memcpy(buf, (char *)("0000"), 4); 190 (void) memcpy((buf+4), (char *)("000000"), 6); 196 (void) memcpy((buf+10), prod_info.ifpi_product_serial, 8); 197 *(buf [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_make.c | 31 asn1_make_etag(asn1buf *buf, asn1_class asn1class, asn1_tagnum tagnum, argument 34 return asn1_make_tag(buf,asn1class,CONSTRUCTED,tagnum,in_len,retlen); 38 asn1_make_tag(asn1buf *buf, asn1_class asn1class, argument 47 retval = asn1_make_length(buf,in_len, &length); 50 retval = asn1_make_id(buf,asn1class,construction,tagnum,&length); 59 asn1_make_length(asn1buf *buf, const unsigned int in_len, unsigned int *retlen) argument 64 retval = asn1buf_insert_octet(buf, (asn1_octet)(in_len&0x7F)); 71 retval = asn1buf_insert_octet(buf, (asn1_octet)(in_copy&0xFF)); 76 retval = asn1buf_insert_octet(buf, (asn1_octet) (0x80 | (asn1_octet)(length&0x7F))); 86 asn1_make_id(asn1buf *buf, asn1_clas argument 122 asn1_make_sequence(asn1buf *buf, const unsigned int seq_len, unsigned int *retlen) argument 140 asn1_make_set(asn1buf *buf, const unsigned int set_len, unsigned int *retlen) argument 157 asn1_make_string(asn1buf *buf, const unsigned int length, const char *string, int *retlen) argument [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnssrv.c | 69 struct k5buf buf; local 87 krb5int_buf_init_fixed(&buf, host, sizeof(host)); 88 krb5int_buf_add_fmt(&buf, "%s.%s.", service, protocol); 89 krb5int_buf_add_len(&buf, realm->data, realm->length); 100 len = krb5int_buf_len(&buf); 102 krb5int_buf_add(&buf, "."); 104 if (krb5int_buf_data(&buf) == NULL)
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | k5buf.c | 50 static int ensure_space(struct k5buf *buf, size_t len) argument 55 if (buf->buftype == BUFTYPE_ERROR) 57 if (buf->space - 1 - buf->len >= len) /* Enough room already. */ 59 if (buf->buftype == BUFTYPE_FIXED) /* Can't resize a fixed buffer. */ 61 assert(buf->buftype == BUFTYPE_DYNAMIC); 62 new_space = buf->space * 2; 63 while (new_space <= SPACE_MAX && new_space - buf->len - 1 < len) 67 new_data = realloc(buf->data, new_space); 70 buf 83 krb5int_buf_init_fixed(struct k5buf *buf, char *data, size_t space) argument 93 krb5int_buf_init_dynamic(struct k5buf *buf) argument 106 krb5int_buf_add(struct k5buf *buf, const char *data) argument 111 krb5int_buf_add_len(struct k5buf *buf, const char *data, size_t len) argument 120 krb5int_buf_add_fmt(struct k5buf *buf, const char *fmt, ...) argument 185 krb5int_buf_truncate(struct k5buf *buf, size_t len) argument 195 krb5int_buf_data(struct k5buf *buf) argument 200 krb5int_buf_len(struct k5buf *buf) argument 205 krb5int_free_buf(struct k5buf *buf) argument [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | kdb_xdr.c | 110 krb5_octet buf[4]; /* this is the encoded size of an int32 */ local 113 tl_data.tl_data_length = sizeof(buf); 114 krb5_kdb_encode_int32((krb5_int32) stamp, buf); 115 tl_data.tl_data_contents = buf;
|
/osnet-11/usr/src/lib/libadm/common/ |
H A D | fulldevnm.c | 154 struct stat64 buf; local 157 if (stat64(new_path, &buf) != 0) 160 if (!S_ISBLK(buf.st_mode)) 163 if (raw_dev != buf.st_rdev) 175 struct stat64 buf; local 178 if (stat64(new_path, &buf) != 0) 181 if (!S_ISCHR(buf.st_mode)) 184 if (blk_dev != buf.st_rdev) 338 struct stat64 buf; local 355 if (stat64(cp, &buf) ! 420 struct stat64 buf; local [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/commands/ |
H A D | minicmd.c | 41 char buf[GRUB_DISK_SECTOR_SIZE]; local 51 while ((size = grub_file_read (file, buf, sizeof (buf))) > 0) 57 unsigned char c = buf[i];
|