Home
last modified time | relevance | path

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

12345678910>>...156

/titanic_41/usr/src/uts/common/io/usb/usba/
H A Dparser.c36 #define INCREMENT_BUF(buf) \ argument
37 if ((buf)[0] == 0) { \
40 (buf) += (buf)[0]; \
190 usb_nth_descr(uchar_t *buf, in usb_nth_descr() argument
197 uchar_t *bufstart = buf; in usb_nth_descr()
198 uchar_t *bufend = buf + buflen; in usb_nth_descr()
200 if (buf == NULL) { in usb_nth_descr()
205 while (buf + 2 <= bufend) { in usb_nth_descr()
206 if ((buf != bufstart) && ((buf[1] == stop_descr_type1) || in usb_nth_descr()
207 (buf[1] == stop_descr_type2))) { in usb_nth_descr()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.c66 asn1_error_code asn1buf_create(asn1buf **buf) in asn1buf_create() argument
68 *buf = (asn1buf*)malloc(sizeof(asn1buf)); in asn1buf_create()
69 if (*buf == NULL) return ENOMEM; in asn1buf_create()
70 (*buf)->base = NULL; in asn1buf_create()
71 (*buf)->bound = NULL; in asn1buf_create()
72 (*buf)->next = NULL; in asn1buf_create()
76 asn1_error_code asn1buf_wrap_data(asn1buf *buf, const krb5_data *code) in asn1buf_wrap_data() argument
79 buf->next = buf->base = code->data; in asn1buf_wrap_data()
80 buf->bound = code->data + code->length - 1; in asn1buf_wrap_data()
84 asn1_error_code asn1buf_imbed(asn1buf *subbuf, const asn1buf *buf, const unsigned int length, const… in asn1buf_imbed() argument
[all …]
H A Dasn1buf.h18 (const asn1buf *buf);
22 #define asn1buf_size(buf) \ argument
23 (((buf) == NULL || (buf)->base == NULL) \
25 : ((buf)->bound - (buf)->base + 1))
28 (const asn1buf *buf);
31 #define asn1buf_free(buf) \ argument
32 (((buf) == NULL || (buf)->base == NULL) \
34 : ((buf)->bound - (buf)->next + 1))
38 (asn1buf *buf, const unsigned int amount);
44 #define asn1buf_ensure_space(buf,amount) \ argument
[all …]
H A Dasn1_k_decode.h71 (asn1buf *buf, int *val);
73 (asn1buf *buf, krb5_int32 *val);
75 (asn1buf *buf, krb5_kvno *val);
77 (asn1buf *buf, krb5_enctype *val);
79 (asn1buf *buf, krb5_msgtype *val);
81 (asn1buf *buf, krb5_cksumtype *val);
83 (asn1buf *buf, krb5_octet *val);
85 (asn1buf *buf, krb5_addrtype *val);
87 (asn1buf *buf, krb5_authdatatype *val);
89 (asn1buf *buf, krb5_ui_2 *val);
[all …]
/titanic_41/usr/src/lib/libc/port/locale/
H A Dstrptime.c54 __strptime(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, in __strptime() argument
70 if (*buf == 0) in __strptime()
77 while (isspace(*buf)) in __strptime()
78 buf++; in __strptime()
79 else if (c != *buf++) in __strptime()
91 if (*buf++ != '%') in __strptime()
96 buf = __strptime(buf, tptr->date_fmt, tm, flagsp, loc); in __strptime()
97 if (buf == NULL) in __strptime()
102 if (!isdigit(*buf)) in __strptime()
107 for (i = 0; len && isdigit(*buf); buf++) { in __strptime()
[all …]
/titanic_41/usr/src/lib/libc/port/threads/
H A Dassfail.c166 char buf[800]; in lock_error() local
196 (void) strcpy(buf, in lock_error()
198 (void) strcat(buf, who); in lock_error()
199 (void) strcat(buf, "("); in lock_error()
201 ultos((uint64_t)(uintptr_t)cv, 16, buf + strlen(buf)); in lock_error()
202 (void) strcat(buf, ", "); in lock_error()
204 ultos((uint64_t)(uintptr_t)mp, 16, buf + strlen(buf)); in lock_error()
205 (void) strcat(buf, ")"); in lock_error()
207 (void) strcat(buf, ": "); in lock_error()
208 (void) strcat(buf, msg); in lock_error()
[all …]
/titanic_41/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/type/
H A DOpFilter.java240 public void genInitCode(StringBuffer buf, String varname) { in genInitCode() argument
241 buf.append(/* NOI18N */" "); in genInitCode()
242 buf.append(varname); in genInitCode()
243 buf.append(/* NOI18N */".filterType = "); in genInitCode()
244 buf.append(/* NOI18N */"OpFilter."); in genInitCode()
245 buf.append(constantToString(filterType)); in genInitCode()
246 buf.append(/* NOI18N */";"); in genInitCode()
247 Global.newline(buf); in genInitCode()
251 buf.append(/* NOI18N */" "); in genInitCode()
252 buf.append(varname); in genInitCode()
[all …]
H A DOpAction.java292 public void genInitCode(StringBuffer buf, String varname) { in genInitCode() argument
294 buf.append(/* NOI18N */" "); in genInitCode()
295 buf.append(varname); in genInitCode()
296 buf.append(/* NOI18N */".actionType = "); in genInitCode()
297 buf.append(/* NOI18N */"OpAction."); in genInitCode()
298 buf.append(constantToString(actionType)); in genInitCode()
299 buf.append(/* NOI18N */";"); in genInitCode()
300 Global.newline(buf); in genInitCode()
304 buf.append(/* NOI18N */" "); in genInitCode()
305 buf.append(varname); in genInitCode()
[all …]
H A DOp.java191 public void genInitCode(StringBuffer buf, String name) { in genInitCode() argument
192 Global.newline(buf); in genInitCode()
193 buf.append(/* NOI18N */" "); in genInitCode()
194 buf.append(name); in genInitCode()
195 buf.append(/* NOI18N */" = new Op(gui);"); in genInitCode()
196 Global.newline(buf); in genInitCode()
199 buf.append(/* NOI18N */" "); in genInitCode()
200 buf.append(name); in genInitCode()
201 buf.append(/* NOI18N */".name = "); in genInitCode()
202 ListParser.quote(this.name, buf, true); in genInitCode()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dsocks.c107 proxy_read_line(int fd, char *buf, size_t bufsz) in proxy_read_line() argument
114 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line()
117 if (buf[off] == '\r') in proxy_read_line()
119 if (buf[off] == '\n') { in proxy_read_line()
120 buf[off] = '\0'; in proxy_read_line()
157 char buf[1024]; in socks_connect() local
189 buf[0] = SOCKS_V5; in socks_connect()
190 buf[1] = 1; in socks_connect()
191 buf[2] = SOCKS_NOAUTH; in socks_connect()
192 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
[all …]
/titanic_41/usr/src/cmd/msgfmt/
H A Dgnu_lex.c138 (void) memcpy(backbuf, pch->buf, backlen); in po_ungetc()
150 (void) memcpy(och.buf, backbuf, backlen); in po_getc()
177 och.buf[0] = '\\'; in po_getc()
186 och.buf[0] = '\n'; in po_getc()
193 och.buf[0] = (unsigned char)c; in po_getc()
197 och.len = get_mb(&och.buf[0], (unsigned char)c); in po_getc()
205 extend_buf(char **buf, size_t *size, size_t add) in extend_buf() argument
210 tmp = (char *)Xrealloc(*buf, *size); in extend_buf()
211 *buf = tmp; in extend_buf()
234 switch (pch->buf[0]) { in expand_es()
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dbuf.h80 typedef struct buf { struct
82 struct buf *b_forw; /* headed by d_tab of conf.c */ argument
83 struct buf *b_back; /* " */ argument
84 struct buf *av_forw; /* position on free list, */ argument
85 struct buf *av_back; /* if not BUSY */ argument
116 int (*b_iodone)(struct buf *); /* function called by iodone */ argument
118 struct buf *b_chain; /* chain together all buffers here */ argument
125 struct buf *b_list; /* List of potential B_DELWRI bufs */ argument
139 struct buf *b_forw, *b_back; /* queue of unit queues */ argument
140 struct buf *av_forw, *av_back; /* queue of bufs for this unit */
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystore.c338 uchar_t *buf, *buf1; in soft_keystore_pack_obj() local
370 buf = calloc(1, ks_len); in soft_keystore_pack_obj()
371 if (buf == NULL) { in soft_keystore_pack_obj()
374 (void) memcpy(buf, &hdr, sizeof (ks_obj_hdr_t)); in soft_keystore_pack_obj()
375 buf1 = buf + sizeof (ks_obj_hdr_t); in soft_keystore_pack_obj()
395 *ks_buf = buf; in soft_keystore_pack_obj()
430 uchar_t *buf; in soft_keystore_unpack_obj() local
439 hdr = (ks_obj_hdr_t *)ks_obj->buf; in soft_keystore_unpack_obj()
455 buf = ks_obj->buf + sizeof (ks_obj_hdr_t); in soft_keystore_unpack_obj()
462 attr_hdr = (ks_attr_hdr_t *)buf; in soft_keystore_unpack_obj()
[all …]
/titanic_41/usr/src/lib/libast/common/port/
H A Dastlicense.c91 #define BUF(b) ((b)->buf)
92 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz)
93 #define SIZ(b) ((b)->nxt-(b)->buf)
94 #define END(b) (*((b)->nxt>=(b)->end?((b)->nxt=(b)->end-1):(b)->nxt)=0,(b)->nxt-(b)->buf)
102 char* buf; member
398 Buffer_t buf; in astlicense() local
401 buf.end = (buf.buf = buf.nxt = p) + size; in astlicense()
402 tmp.end = (tmp.buf = tmp.nxt = tmpbuf) + sizeof(tmpbuf); in astlicense()
407 copy(&buf, file, -1); in astlicense()
408 copy(&buf, ": cannot open", -1); in astlicense()
[all …]
/titanic_41/usr/src/lib/print/libprint/common/
H A Dnss_convert.c75 _cvt_printer_to_entry(ns_printer_t *printer, char *buf, int buflen) in _cvt_printer_to_entry() argument
80 (void) memset(buf, NULL, buflen); in _cvt_printer_to_entry()
85 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) { in _cvt_printer_to_entry()
86 (void) memset(buf, NULL, buflen); in _cvt_printer_to_entry()
95 (void) strlcat(buf, "|", buflen); in _cvt_printer_to_entry()
96 (void) strncat_escaped(buf, *alias++, buflen, in _cvt_printer_to_entry()
101 if (strlcat(buf, ":", buflen) >= buflen) { in _cvt_printer_to_entry()
102 (void) memset(buf, NULL, buflen); in _cvt_printer_to_entry()
107 len = strlen(buf); in _cvt_printer_to_entry()
114 (void) strlcat(buf, "\\\n\t:", buflen); in _cvt_printer_to_entry()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_token.c96 static void der_write_length(buf, length) in der_write_length() argument
97 unsigned char **buf; in der_write_length()
101 *(*buf)++ = (unsigned char) length;
103 *(*buf)++ = (unsigned char) (der_length_size(length)+127);
106 *(*buf)++ = (unsigned char) (length>>24);
108 *(*buf)++ = (unsigned char) ((length>>16)&0xff);
111 *(*buf)++ = (unsigned char) ((length>>8)&0xff);
112 *(*buf)++ = (unsigned char) (length&0xff);
119 static int der_read_length(buf, bufsize) in der_read_length() argument
120 unsigned char **buf; in der_read_length()
[all …]
/titanic_41/usr/src/ucblib/libucb/port/gen/
H A Dstatfs.c27 cnvtvfs64(struct statfs64 *buf, struct statvfs64 *vbuf) in cnvtvfs64() argument
29 buf->f_type = 0; in cnvtvfs64()
30 buf->f_bsize = vbuf->f_frsize; in cnvtvfs64()
31 buf->f_blocks = vbuf->f_blocks; in cnvtvfs64()
32 buf->f_bfree = vbuf->f_bfree; in cnvtvfs64()
33 buf->f_bavail = vbuf->f_bavail; in cnvtvfs64()
34 buf->f_files = vbuf->f_files; in cnvtvfs64()
35 buf->f_ffree = vbuf->f_ffree; in cnvtvfs64()
36 buf->f_fsid.val[0] = vbuf->f_fsid; in cnvtvfs64()
37 buf->f_fsid.val[1] = 0; in cnvtvfs64()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/nameser/
H A Dns_print.c52 char **buf, size_t *buflen);
55 char **buf, size_t *buflen);
56 static void addlen(size_t len, char **buf, size_t *buflen);
58 char **buf, size_t *buflen);
60 char **buf, size_t *buflen);
84 char *buf, size_t buflen) in ns_sprintrr() argument
91 name_ctx, origin, buf, buflen); in ns_sprintrr()
106 char *buf, size_t buflen) in ns_sprintrrf() argument
108 const char *obuf = buf; in ns_sprintrrf()
120 T(addstr("\t\t\t", 3, &buf, &buflen)); in ns_sprintrrf()
[all …]
/titanic_41/usr/src/uts/common/c2/
H A Daudit_mem.c80 au_free_rec(au_buff_t *buf) in au_free_rec() argument
93 softcall(audit_async_discard_backend, buf); in au_free_rec()
96 while (buf != NULL) { in au_free_rec()
97 next = buf->next_buf; in au_free_rec()
98 kmem_cache_free(au_buf_cache, buf); in au_free_rec()
99 buf = next; in au_free_rec()
123 au_append_rec(au_buff_t *rec, au_buff_t *buf, int pack) in au_append_rec() argument
130 if (((int)(rec->len + buf->len) <= AU_BUFSIZE) && pack) { in au_append_rec()
131 bcopy(buf->buf, (char *)(rec->buf + rec->len), in au_append_rec()
132 (uint_t)buf->len); in au_append_rec()
[all …]
/titanic_41/usr/src/uts/common/io/bnxe/
H A Dbnxe_debug.c74 char buf[BNXE_LOG_LEN]; in elink_cb_dbg() local
82 snprintf(buf, sizeof(buf), fmt); in elink_cb_dbg()
83 cmn_err(CE_NOTE, "!%s: ELINK %s", BnxeDevName(pUM), buf); in elink_cb_dbg()
91 char buf[BNXE_LOG_LEN]; in elink_cb_dbg1() local
99 snprintf(buf, sizeof(buf), fmt, arg1); in elink_cb_dbg1()
100 cmn_err(CE_NOTE, "!%s: ELINK %s", BnxeDevName(pUM), buf); in elink_cb_dbg1()
108 char buf[BNXE_LOG_LEN]; in elink_cb_dbg2() local
116 snprintf(buf, sizeof(buf), fmt, arg1, arg2); in elink_cb_dbg2()
117 cmn_err(CE_NOTE, "!%s: ELINK %s", BnxeDevName(pUM), buf); in elink_cb_dbg2()
125 char buf[BNXE_LOG_LEN]; in elink_cb_dbg3() local
[all …]
/titanic_41/usr/src/cmd/lp/lib/msgs/
H A D_getmessage.c40 int _getmessage ( char * buf, short rtype, va_list arg ) in _getmessage() argument
42 int _getmessage (buf, rtype, arg) in _getmessage()
43 char *buf; in _getmessage()
56 if (buf == (char *)0)
67 endbuf = buf + (long)stoh(buf);
68 if ((buf + MESG_DATA) > endbuf)
74 etype = stoh(buf + MESG_TYPE);
94 buf += MESG_LEN;
100 if ((buf + 4) > endbuf)
107 *t_short = stoh(buf);
[all …]
/titanic_41/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()
78 n = pmcs_dump_spc_ver(pwp, buf, size_left); in pmcs_register_dump_int()
80 buf += n; size_left -= n; in pmcs_register_dump_int()
81 n = pmcs_dump_gsm_conf(pwp, buf, size_left); in pmcs_register_dump_int()
83 buf += n; size_left -= n; in pmcs_register_dump_int()
84 n = pmcs_dump_pcie_conf(pwp, buf, size_left); in pmcs_register_dump_int()
86 buf += n; size_left -= n; in pmcs_register_dump_int()
87 n = pmcs_dump_mpi_table(pwp, buf, size_left); in pmcs_register_dump_int()
89 buf += n; size_left -= n; in pmcs_register_dump_int()
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c302 CK_BYTE *buf = NULL; in ber_encode_INTEGER() local
330 buf = (CK_BYTE *)malloc(len); in ber_encode_INTEGER()
331 if (! buf) { in ber_encode_INTEGER()
335 buf[0] = 0x02; in ber_encode_INTEGER()
336 buf[1] = data_len; in ber_encode_INTEGER()
337 (void) memcpy(&buf[2], data, data_len); in ber_encode_INTEGER()
340 *ber_int = buf; in ber_encode_INTEGER()
345 buf[0] = 0x02; in ber_encode_INTEGER()
346 buf[1] = 0x81; in ber_encode_INTEGER()
347 buf[2] = data_len; in ber_encode_INTEGER()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_socks.c36 static void put_socks5_addr(char *cp, const unsigned char *buf, int fraglen);
46 unsigned char *buf = (unsigned char *)line; local
54 switch (buf[0]) {
56 n = buf[1];
61 (void) memcpy(&ipaddr, &buf[4],
67 (buf[2] << 8) | buf[3]);
75 if (buf[i] == '\0')
77 *cp++ = buf[i];
93 n = buf[1];
99 put_method(cp, buf[2 + i]);
[all …]
/titanic_41/usr/src/cmd/mandoc/
H A Dread.c45 struct buf { struct
46 char *buf; /* binary input buffer */ argument
64 struct buf *secondary;
68 static void resize_buf(struct buf *, size_t);
69 static void mparse_buf_r(struct mparse *, struct buf, int);
71 static int read_whole_file(const char *, int, struct buf *, int *);
73 static void mparse_parse_buffer(struct mparse *, struct buf,
218 resize_buf(struct buf *buf, size_t initial) in resize_buf() argument
221 buf->sz = buf->sz > initial/2 ? 2 * buf->sz : initial; in resize_buf()
222 buf->buf = mandoc_realloc(buf->buf, buf->sz); in resize_buf()
[all …]

12345678910>>...156