/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | parser.c | 41 (buf) += (buf)[0]; \ 300 buf, _PTRDIFF(bufend, buf), in usb_parse_ia_descr() 332 buf, _PTRDIFF(bufend, buf), in usb_parse_if_descr() 362 buf += buf[0]; in usba_parse_if_pwr_descr() 413 if ((buf = usb_nth_descr(buf, in usb_parse_ep_descr() 422 buf, _PTRDIFF(bufend, buf), in usb_parse_ep_descr() 459 for (buf = buf + 2; buf+1 < bufend && ret_buf_len > 1 && in usba_ascii_string_descr() 460 buf[0] != 0 && buf[1] == 0 && (i < ret_buf_len); buf += 2, i++) { in usba_ascii_string_descr() 505 if ((buf = usb_nth_descr(buf, in usb_parse_CV_if_descr() 544 if ((buf = usb_nth_descr(buf, in usb_parse_CV_ep_descr() [all …]
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | assfail.c | 234 (void) __write(2, buf, strlen(buf)); in lock_error() 236 Abort(buf, sizeof (buf)); in lock_error() 306 buf + strlen(buf)); in rwlock_error() 310 buf + strlen(buf)); in rwlock_error() 315 buf + strlen(buf)); in rwlock_error() 323 (void) __write(2, buf, strlen(buf)); in rwlock_error() 325 Abort(buf, sizeof (buf)); in rwlock_error() 371 (void) __write(2, buf, strlen(buf)); in thread_error() 373 Abort(buf, sizeof (buf)); in thread_error() 436 (void) __write(2, buf, strlen(buf)); in __assfail() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1buf.c | 79 buf->next = buf->base = code->data; in asn1buf_wrap_data() 124 if (length <= buf->bound - buf->next + 1) in asn1buf_skiptail() 130 if (buf->bound - buf->next + 1 <= 0) in asn1buf_skiptail() 245 remain = buf->bound - buf->next +1; in asn1buf_remains() 344 return buf->bound - buf->base + 1; in asn1buf_size() 351 else return buf->bound - buf->next + 1; in asn1buf_free() 368 int next_offset = buf->next - buf->base; in asn1buf_expand() 371 else bound_offset = buf->bound - buf->base; in asn1buf_expand() 379 buf->base = realloc(buf->base, in asn1buf_expand() 383 buf->next = (buf->base) + next_offset; in asn1buf_expand() [all …]
|
H A D | asn1_k_decode.h | 71 (asn1buf *buf, int *val); 73 (asn1buf *buf, krb5_int32 *val); 75 (asn1buf *buf, krb5_kvno *val); 83 (asn1buf *buf, krb5_octet *val); 89 (asn1buf *buf, krb5_ui_2 *val); 91 (asn1buf *buf, krb5_ui_4 *val); 93 (asn1buf *buf, krb5_ui_4 *val); 97 (asn1buf *buf, krb5_flags *val); 111 (asn1buf *buf, krb5_flags *val); 117 (asn1buf *buf, krb5_flags *val); [all …]
|
H A D | asn1buf.h | 16 (const asn1buf *buf); 21 (((buf) == NULL || (buf)->base == NULL) \ 23 : ((buf)->bound - (buf)->base + 1)) 30 (((buf) == NULL || (buf)->base == NULL) \ 32 : ((buf)->bound - (buf)->next + 1)) 44 ? (asn1buf_expand((buf), (amount)-asn1buf_free(buf))) \ 59 #define asn1buf_len(buf) ((buf)->next - (buf)->base) argument 101 (asn1buf **buf); 141 (asn1buf **buf); 155 (buf->next)++; in asn1buf_insert_octet() [all …]
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strptime.c | 107 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 183 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 196 if (*buf == 0 || isspace(*buf)) in __strptime() 203 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 237 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 309 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 351 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 395 for (i = 0; len && isdigit(*buf); buf++) { in __strptime() 429 if (*buf == '\0' || isspace(*buf)) in __strptime() 461 (void) strncpy(zonestr, buf, cp - buf); in __strptime() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | printf-6961.c | 72 (void) memset(buf, 'r', sizeof (buf)); in main() 74 if (bcmp(octal0, buf, sizeof (buf)) != 0) { in main() 79 (void) memset(buf, 'r', sizeof (buf)); in main() 81 if (bcmp(octal1, buf, sizeof (buf)) != 0) { in main() 86 (void) memset(buf, 'r', sizeof (buf)); in main() 88 if (bcmp(decimal0, buf, sizeof (buf)) != 0) { in main() 93 (void) memset(buf, 'r', sizeof (buf)); in main() 100 (void) memset(buf, 'r', sizeof (buf)); in main() 102 if (bcmp(hex0, buf, sizeof (buf)) != 0) { in main() 107 (void) memset(buf, 'r', sizeof (buf)); in main() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 188 buf[1] = 1; in socks_connect() 211 buf[2] = 0; in socks_connect() 223 buf[2] = 0; in socks_connect() 236 buf[2] = 0; in socks_connect() 298 r = snprintf(buf, sizeof (buf), in socks_connect() 302 r = snprintf(buf, sizeof (buf), in socks_connect() 318 r = snprintf(buf, sizeof (buf), "%s:%s", in socks_connect() 322 b64_ntop((unsigned char *)buf, strlen(buf), resp, in socks_connect() 325 r = snprintf(buf, sizeof (buf), "Proxy-Authorization: " in socks_connect() 339 (void) proxy_read_line(proxyfd, buf, sizeof (buf)); in socks_connect() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | uni_common.c | 30 char *buf; 45 *(buf + size++) = (uchar_t)0xff; 46 *(buf + size++) = (uchar_t)0xfe; 63 char *buf; 96 char *buf; 113 *(buf + size++) = (uchar_t)0; 114 *(buf + size++) = (uchar_t)0; 133 char *buf; 148 *(buf + size++) = (uchar_t)0; 149 *(buf + size++) = (uchar_t)0; [all …]
|
/illumos-gate/usr/src/lib/libsff/common/ |
H A D | libsff.c | 789 if (buf[SFF_8472_LENGTH_SMF] != 0) { in sff_parse_lengths() 817 if (buf[SFF_8472_LENGTH_OM3] != 0) { in sff_parse_lengths() 844 if (buf[start + len - 1] != ' ') in sff_parse_string() 856 if (isascii(buf[start + i]) == 0 || in sff_parse_string() 861 bcopy(&buf[start], strbuf, len); in sff_parse_string() 886 buf[SFF_8472_WAVELENGTH_LOW]; in sff_parse_optical() 898 val = (buf[SFF_8472_OPTIONS_HI] << 8) | buf[SFF_8472_OPTIONS_LOW]; in sff_parse_options() 1238 (buf[SFF_8636_OPTIONS_MID] << 8) | buf[SFF_8636_OPTIONS_LOW]; in sff_qsfp_parse_options() 1247 const char *buf[2]; in sff_qsfp_parse_diag() local 1267 (char **)buf, count)); in sff_qsfp_parse_diag() [all …]
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_lex.c | 209 *buf = tmp; in extend_buf() 235 och.buf[0] = pch->buf[0]; in expand_es() 343 och.buf[0] = pch->buf[0]; in expand_es() 354 char *buf; in yylex() local 368 (void) memcpy(yylval.c.buf, pch->buf, pch->len); in yylex() 472 free(buf); in yylex() 475 free(buf); in yylex() 478 free(buf); in yylex() 481 free(buf); in yylex() 484 free(buf); in yylex() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/libsff/ |
H A D | libsff_wave.c | 39 uint8_t buf[256]; in main() local 47 bzero(buf, sizeof (buf)); in main() 51 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 67 bzero(buf, sizeof (buf)); in main() 72 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 85 bzero(buf, sizeof (buf)); in main() 90 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 109 bzero(buf, sizeof (buf)); in main() 118 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 143 bzero(buf, sizeof (buf)); in main() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | buf.h | 82 typedef struct buf { struct 346 extern struct buf *buf; /* The buffer pool itself */ 353 int iowait(struct buf *); 356 int biowait(struct buf *); 366 void bwrite(struct buf *); 370 void brelse(struct buf *); 371 void iodone(struct buf *); 372 void clrbuf(struct buf *); 395 struct buf *geteblk(void); 399 struct buf *bioclone(struct buf *, off_t, size_t, dev_t, daddr_t, [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystore.c | 550 buf = buf + sizeof (uint64_t); in soft_unpack_obj_attribute() 791 buf = buf + sizeof (uint64_t); in soft_pack_object() 797 buf = buf + sizeof (uint64_t); in soft_pack_object() 810 buf = buf + sizeof (uint64_t); in soft_pack_object() 823 buf = buf + sizeof (uint64_t); in soft_pack_object() 836 buf = buf + sizeof (uint64_t); in soft_pack_object() 849 buf = buf + sizeof (uint64_t); in soft_pack_object() 862 buf = buf + sizeof (uint64_t); in soft_pack_object() 875 buf = buf + sizeof (uint64_t); in soft_pack_object() 888 buf = buf + sizeof (uint64_t); in soft_pack_object() [all …]
|
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | nss_convert.c | 105 len = strlen(buf); in _cvt_printer_to_entry() 129 buf = NULL; in _cvt_printer_to_entry() 132 return (buf); in _cvt_printer_to_entry() 146 (void) memset(buf, 0, sizeof (buf)); in _cvt_nss_entry_to_printer() 152 name = strdup(buf); in _cvt_nss_entry_to_printer() 164 (void) memset(buf, 0, sizeof (buf)); in _cvt_nss_entry_to_printer() 170 key = strdup(buf); in _cvt_nss_entry_to_printer() 171 (void) memset(buf, 0, sizeof (buf)); in _cvt_nss_entry_to_printer() 180 name = strdup(buf); in _cvt_nss_entry_to_printer() 185 (void) memset(buf, 0, sizeof (buf)); in _cvt_nss_entry_to_printer() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_print.c | 153 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 323 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 414 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 653 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 676 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 947 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 952 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf() 1179 (*buf)[newlen] == '\0')) && (*buf)[newlen - 1] != '.') { in addname() 1190 **buf = '\0'; in addname() 1202 *buf += len; in addlen() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_token.c | 95 unsigned char **buf; in der_write_length() 126 sf = *(*buf)++; 165 *(*buf)++ = 0x60; 166 der_write_length(buf, 168 *(*buf)++ = 0x06; 202 if (*buf++ != 0x60) { 205 buf--; 218 if (*buf++ != 0x06) 227 toid.elements = buf; 228 buf+=toid.length; [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astlicense.c | 105 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz) 115 char* buf; member 443 PUT(buf, 0); in push() 472 PUT(buf, 0); in push() 482 PUT(buf, 0); in push() 521 Buffer_t buf; in astlicense() local 524 buf.end = (buf.buf = buf.nxt = p) + size; in astlicense() 788 PUT(&buf, 0); in astlicense() 1291 PUT(&buf, ']'); in astlicense() 1296 PUT(&buf, ']'); in astlicense() [all …]
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | statfs.c | 27 buf->f_type = 0; in cnvtvfs64() 30 buf->f_bfree = vbuf->f_bfree; in cnvtvfs64() 35 buf->f_fsid.val[1] = 0; in cnvtvfs64() 44 if ((long)buf == -1L) { in statfs64() 50 cnvtvfs64(buf, &vbuf); in statfs64() 61 cnvtvfs64(buf, &vbuf); in fstatfs64() 69 buf->f_type = 0; in cnvtvfs() 77 buf->f_fsid.val[1] = 0; in cnvtvfs() 86 if ((long)buf == -1L) { in statfs() 92 cnvtvfs(buf, &vbuf); in statfs() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/ |
H A D | bnxe_debug.c | 82 snprintf(buf, sizeof(buf), fmt); in elink_cb_dbg() 99 snprintf(buf, sizeof(buf), fmt, arg1); in elink_cb_dbg1() 116 snprintf(buf, sizeof(buf), fmt, arg1, arg2); in elink_cb_dbg2() 133 snprintf(buf, sizeof(buf), fmt, arg1, arg2, arg3); in elink_cb_dbg3() 161 vsnprintf(buf, sizeof(buf), pFmt, argp); in BnxeLogInfo() 182 vsnprintf(buf, sizeof(buf), pFmt, argp); in BnxeLogWarn() 206 vsnprintf(buf, sizeof(buf), pFmt, argp); in BnxeLogDbg() 220 char buf[256]; in BnxeDumpMem() local 241 strcat(buf, c); in BnxeDumpMem() 258 char buf[256]; in BnxeDumpPkt() local [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_fwlog.c | 59 caddr_t buf = NULL; in pmcs_register_dump_int() local 75 buf = pwp->regdumpp; in pmcs_register_dump_int() 80 buf += n; size_left -= n; in pmcs_register_dump_int() 83 buf += n; size_left -= n; in pmcs_register_dump_int() 86 buf += n; size_left -= n; in pmcs_register_dump_int() 89 buf += n; size_left -= n; in pmcs_register_dump_int() 118 buf, size_left); in pmcs_register_dump_int() 149 buf, size_left); in pmcs_register_dump_int() 180 buf, size_left); in pmcs_register_dump_int() 200 buf, size_left); in pmcs_register_dump_int() [all …]
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_mem.c | 96 while (buf != NULL) { in au_free_rec() 97 next = buf->next_buf; in au_free_rec() 99 buf = next; in au_free_rec() 131 bcopy(buf->buf, (char *)(rec->buf + rec->len), in au_append_rec() 132 (uint_t)buf->len); in au_append_rec() 133 rec->len += buf->len; in au_append_rec() 137 rec->next_buf = buf; in au_append_rec() 156 buf = buf->next_buf; in au_append_buf() 160 bcopy(data, (buf->buf + buf->len), (uint_t)new_len); in au_append_buf() 170 buf = new_buf; in au_append_buf() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | asn1.c | 331 if (! buf) { in ber_encode_INTEGER() 380 free(buf); in ber_encode_INTEGER() 478 if (! buf) { in ber_encode_OCTET_STRING() 488 *str = buf; in ber_encode_OCTET_STRING() 500 *str = buf; in ber_encode_OCTET_STRING() 513 *str = buf; in ber_encode_OCTET_STRING() 527 *str = buf; in ber_encode_OCTET_STRING() 531 free(buf); in ber_encode_OCTET_STRING() 624 if (! buf) { in ber_encode_SEQUENCE() 827 free(buf); in ber_encode_PrivateKeyInfo() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | _getmessage.c | 43 char *buf; in _getmessage() 67 endbuf = buf + (long)stoh(buf); 108 buf += 4; 120 buf += 8; 132 buf += 4; 140 *t_string = buf; 141 buf += *t_short; 152 temp = stoh(buf); 153 buf += 4; 160 *t_string = buf; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_socks.c | 54 n = buf[1]; 65 (buf[2] << 8) | buf[3]); 91 n = buf[1]; 148 n = buf[1]; 162 (buf[2] << 8) | buf[3]); 191 n = buf[1]; 272 (buf[2] << 8) | buf[3]); 306 (buf[2] << 8) | buf[3]); 377 (buf[5] << 8) | buf[5 + 1]); in put_socks5_addr() 389 (buf[1 + i] << 8) | buf[1 + i + 1]); in put_socks5_addr() [all …]
|