Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 3632) sorted by relevance

12345678910>>...146

/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dparser.c41 (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 Dassfail.c233 (void) __write(2, buf, strlen(buf)); in lock_error()
235 Abort(buf, sizeof (buf)); in lock_error()
305 buf + strlen(buf)); in rwlock_error()
309 buf + strlen(buf)); in rwlock_error()
314 buf + strlen(buf)); in rwlock_error()
322 (void) __write(2, buf, strlen(buf)); in rwlock_error()
324 Abort(buf, sizeof (buf)); in rwlock_error()
370 (void) __write(2, buf, strlen(buf)); in thread_error()
372 Abort(buf, sizeof (buf)); in thread_error()
435 (void) __write(2, buf, strlen(buf)); in __assfail()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.c79 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 Dasn1_k_decode.h71 (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 Dasn1buf.h18 (const asn1buf *buf);
23 (((buf) == NULL || (buf)->base == NULL) \
25 : ((buf)->bound - (buf)->base + 1))
32 (((buf) == NULL || (buf)->base == NULL) \
34 : ((buf)->bound - (buf)->next + 1))
46 ? (asn1buf_expand((buf), (amount)-asn1buf_free(buf))) \
61 #define asn1buf_len(buf) ((buf)->next - (buf)->base) argument
103 (asn1buf **buf);
143 (asn1buf **buf);
159 (buf->next)++; in asn1buf_insert_octet()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrptime.c107 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 Dprintf-6961.c72 (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 Dsocks.c190 buf[1] = 1; in socks_connect()
213 buf[2] = 0; in socks_connect()
225 buf[2] = 0; in socks_connect()
238 buf[2] = 0; in socks_connect()
300 r = snprintf(buf, sizeof (buf), in socks_connect()
304 r = snprintf(buf, sizeof (buf), in socks_connect()
320 r = snprintf(buf, sizeof (buf), "%s:%s", in socks_connect()
324 b64_ntop((unsigned char *)buf, strlen(buf), resp, in socks_connect()
327 r = snprintf(buf, sizeof (buf), "Proxy-Authorization: " in socks_connect()
341 (void) proxy_read_line(proxyfd, buf, sizeof (buf)); in socks_connect()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Duni_common.c30 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 Dlibsff.c789 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 Dgnu_lex.c211 *buf = tmp; in extend_buf()
237 och.buf[0] = pch->buf[0]; in expand_es()
345 och.buf[0] = pch->buf[0]; in expand_es()
356 char *buf; in yylex() local
370 (void) memcpy(yylval.c.buf, pch->buf, pch->len); in yylex()
474 free(buf); in yylex()
477 free(buf); in yylex()
480 free(buf); in yylex()
483 free(buf); in yylex()
486 free(buf); in yylex()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/libsff/
H A Dlibsff_wave.c39 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()
68 bzero(buf, sizeof (buf)); in main()
73 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main()
86 bzero(buf, sizeof (buf)); in main()
91 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main()
110 bzero(buf, sizeof (buf)); in main()
119 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main()
145 bzero(buf, sizeof (buf)); in main()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dbuf.h82 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 DsoftKeystore.c550 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 Dnss_convert.c105 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 Dns_print.c153 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 Dutil_token.c97 unsigned char **buf; in der_write_length()
128 sf = *(*buf)++;
167 *(*buf)++ = 0x60;
168 der_write_length(buf,
170 *(*buf)++ = 0x06;
204 if (*buf++ != 0x60) {
207 buf--;
220 if (*buf++ != 0x06)
229 toid.elements = buf;
230 buf+=toid.length;
[all …]
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dstatfs.c29 buf->f_type = 0; in cnvtvfs64()
32 buf->f_bfree = vbuf->f_bfree; in cnvtvfs64()
37 buf->f_fsid.val[1] = 0; in cnvtvfs64()
46 if ((long)buf == -1L) { in statfs64()
52 cnvtvfs64(buf, &vbuf); in statfs64()
63 cnvtvfs64(buf, &vbuf); in fstatfs64()
71 buf->f_type = 0; in cnvtvfs()
79 buf->f_fsid.val[1] = 0; in cnvtvfs()
88 if ((long)buf == -1L) { in statfs()
94 cnvtvfs(buf, &vbuf); in statfs()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastlicense.c105 #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/uts/common/io/bnxe/
H A Dbnxe_debug.c82 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/c2/
H A Daudit_mem.c96 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/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_fwlog.c59 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/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c331 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.c43 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 Dsnoop_socks.c56 n = buf[1];
67 (buf[2] << 8) | buf[3]);
93 n = buf[1];
150 n = buf[1];
164 (buf[2] << 8) | buf[3]);
193 n = buf[1];
274 (buf[2] << 8) | buf[3]);
308 (buf[2] << 8) | buf[3]);
379 (buf[5] << 8) | buf[5 + 1]); in put_socks5_addr()
391 (buf[1 + i] << 8) | buf[1 + i + 1]); in put_socks5_addr()
[all …]

12345678910>>...146