Searched refs:buf (Results 26 - 50 of 4412) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathposix.c27 * convert native path to posix fs representation in <buf,siz>
29 * if return length >= siz then buf is indeterminate, but another call
31 * if buf==0 then required size is returned
41 pathposix(const char* path, char* buf, size_t siz) argument
43 return uwin_unpath(path, buf, siz);
53 pathposix(const char* path, char* buf, size_t siz) argument
57 if (!buf || siz < PATH_MAX)
62 if ((n = strlen(tmp)) < siz && buf)
63 memcpy(buf, tmp, n + 1);
66 cygwin_conv_to_posix_path(path, buf);
75 pathposix(const char* path, char* buf, size_t siz) argument
98 pathposix(const char* path, char *buf, size_t siz) argument
113 pathposix(const char* path, char* buf, size_t siz) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrptime.c54 __strptime(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, argument
70 if (*buf == 0)
77 while (isspace(*buf))
78 buf++;
79 else if (c != *buf++)
91 if (*buf++ != '%')
96 buf = __strptime(buf, tptr->date_fmt, tm, flagsp, loc);
97 if (buf == NULL)
102 if (!isdigit(*buf))
522 strptime(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm) argument
537 __strptime_dontzero(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm) argument
556 strptime_l(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm, locale_t loc) argument
[all...]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A D_getmessage.c40 int _getmessage ( char * buf, short rtype, va_list arg ) argument
42 int _getmessage (buf, rtype, arg)
43 char *buf;
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
[all...]
H A Dwrite_fifo.c49 int write_fifo ( int fifo, char * buf, unsigned int size ) argument
51 int write_fifo (fifo, buf, size)
53 char *buf;
60 (void)memcpy (buf + HEAD_RESYNC, Resync, HEAD_RESYNC_LEN);
61 (void)memcpy (buf + TAIL_ENDSYNC(size), Endsync, TAIL_ENDSYNC_LEN);
63 CALC_CHKSUM (buf, size, chksum);
64 (void)htos (buf + TAIL_CHKSUM(size), chksum);
86 if ((wbytes = write(fifo, buf, size)) > 0)
/illumos-gate/usr/src/cmd/mailwrapper/
H A Dfgetln.c46 static char *buf = NULL; local
51 if (buf == NULL) {
53 if ((buf = malloc(bufsiz)) == NULL)
57 if (fgets(buf, bufsiz, fp) == NULL)
61 while ((ptr = strchr(&buf[*len], '\n')) == NULL) {
63 char *nbuf = realloc(buf, nbufsiz);
67 free(buf);
69 buf = NULL;
72 buf = nbuf;
75 if (fgets(&buf[bufsi
[all...]
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dmktemp.c44 temp(char* buf, int* fdp) argument
51 len = strlen(buf);
52 if (s = strrchr(buf, '/'))
55 d = buf;
59 s = buf;
63 *buf = 0;
67 if (!pathtemp(buf, len, d, s, fdp))
68 *buf = 0;
70 return buf;
74 mktemp(char* buf) argument
80 mkstemp(char* buf) argument
[all...]
/illumos-gate/usr/src/lib/libdll/common/
H A Ddlllook.c37 char buf[256]; local
39 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2))
41 buf[0] = '_';
42 strcpy(buf + 1, name);
43 addr = dlsym(dll, buf);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_k_decode.h34 /* asn1_error_code asn1_decode_scalar_type(asn1buf *buf, krb5_scalar *val); */
35 /* requires *buf is allocated, *buf's current position points to the
38 effects Decodes the encoding in *buf, returning the result in *val.
42 the bounds of *buf */
45 /* asn1_error_code asn1_decode_structure_type(asn1buf *buf,
47 /* requires *buf is allocated, *buf's current position points to the
52 effects Decodes the encoding in *buf, returning the result in *val.
56 the bounds of *buf */
[all...]
H A Dasn1_decode.h56 /* asn1_error_code asn1_decode_type(asn1buf *buf, ctype *val); */
57 /* requires *buf is allocated
58 modifies *buf, *len
59 effects Decodes the octet string in *buf into *val.
64 (asn1buf *buf, long *val);
66 (asn1buf *buf, unsigned long *val);
68 (asn1buf *buf, unsigned long *val);
70 (asn1buf *buf);
73 (asn1buf *buf, unsigned int *retlen, asn1_octet **val);
75 (asn1buf *buf, unsigne
[all...]
H A Dasn1_k_encode.h37 asn1_error_code asn1_encode_asn1_type(asn1buf *buf,
40 requires *buf is allocated
41 effects Inserts the encoding of val into *buf and
47 asn1_error_code asn1_encode_asn1_type(asn1buf *buf,
50 requires *buf is allocated
51 effects Inserts the encoding of *val into *buf and
57 asn1_error_code asn1_encode_asn1_type(asn1buf *buf,
60 requires *buf is allocated, **val != NULL, *val[0] != NULL,
62 effects Inserts the encoding of **val into *buf and
71 (asn1buf *buf, cons
[all...]
H A Dasn1buf.c66 asn1_error_code asn1buf_create(asn1buf **buf) argument
68 *buf = (asn1buf*)malloc(sizeof(asn1buf));
69 if (*buf == NULL) return ENOMEM;
70 (*buf)->base = NULL;
71 (*buf)->bound = NULL;
72 (*buf)->next = NULL;
76 asn1_error_code asn1buf_wrap_data(asn1buf *buf, const krb5_data *code) argument
79 buf->next = buf->base = code->data;
80 buf
84 asn1buf_imbed(asn1buf *subbuf, const asn1buf *buf, const unsigned int length, const int indef) argument
96 asn1buf_sync(asn1buf *buf, asn1buf *subbuf, asn1_class asn1class, asn1_tagnum lasttag, unsigned int length, int indef, int seqindef) argument
116 asn1buf_skiptail(asn1buf *buf, const unsigned int length, const int indef) argument
148 asn1buf_destroy(asn1buf **buf) argument
161 asn1buf_insert_octet(asn1buf *buf, const int o) argument
172 asn1buf_insert_octetstring(asn1buf *buf, const unsigned int len, const krb5_octet *s) argument
184 asn1buf_insert_charstring(asn1buf *buf, const unsigned int len, const char *s) argument
197 asn1buf_remove_octet(asn1buf *buf, asn1_octet *o) argument
204 asn1buf_remove_octetstring(asn1buf *buf, const unsigned int len, asn1_octet **s) argument
223 asn1buf_remove_charstring(asn1buf *buf, const unsigned int len, char **s) argument
241 asn1buf_remains(asn1buf *buf, int indef) argument
255 asn12krb5_buf(const asn1buf *buf, krb5_data **code) argument
281 asn1buf_unparse(const asn1buf *buf, char **s) argument
305 asn1buf_hex_unparse(const asn1buf *buf, char **s) argument
341 asn1buf_size(const asn1buf *buf) argument
348 asn1buf_free(const asn1buf *buf) argument
355 asn1buf_ensure_space(asn1buf *buf, const unsigned int amount) argument
365 asn1buf_expand(asn1buf *buf, unsigned int inc) argument
388 asn1buf_len(const asn1buf *buf) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/
H A Ddisasm.c39 static char buf[256]; local
41 (void) snprintf(buf, 256, "0x%x", instr);
43 return (buf);
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dgetrandom.c30 uint8_t buf[32]; local
34 ret = getrandom(buf, sizeof (buf), 42);
38 ret = getrandom(buf, sizeof (buf), 0);
41 ret = getrandom(buf, sizeof (buf), GRND_NONBLOCK);
44 ret = getrandom(buf, sizeof (buf), GRND_RANDOM);
47 ret = getrandom(buf, sizeo
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgcvt.c42 gcvt(double number, int ndigits, char *buf) argument
44 return (gconvert(number, ndigits, 0, buf));
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_token.c96 static void der_write_length(buf, length)
97 unsigned char **buf;
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);
116 /* returns decoded length, or < 0 on failure. Advances buf and
119 static int der_read_length(buf, bufsiz
197 unsigned char *buf = *buf_in; local
[all...]
/illumos-gate/usr/src/lib/libast/common/stdio/
H A D_stdvbuf.c29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument
31 return setvbuf(f, buf, type, size);
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmform.c37 * end of buf is returned
41 tmform(char* buf, const char* format, time_t* clock) argument
43 return tmfmt(buf, 256, format, clock);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/java_api/src/
H A DTestMultiAggPrinta.java46 StringBuffer buf = new StringBuffer();
47 buf.append(PrintaRecord.class.getName());
48 buf.append("[aggregations = ");
49 buf.append(rec.getAggregations());
50 buf.append(", formattedStrings = ");
51 buf.append(rec.getFormattedStrings());
52 buf.append(", tuples = ");
53 buf.append(rec.getTuples());
54 buf.append(", output = ");
55 buf
[all...]
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_mem.c77 * au_buff_t *buf; start of the record chain
80 au_free_rec(au_buff_t *buf) argument
93 softcall(audit_async_discard_backend, buf);
96 while (buf != NULL) {
97 next = buf->next_buf;
98 kmem_cache_free(au_buf_cache, buf);
99 buf = next;
119 * au_buff_t *buf; buffer to append
123 au_append_rec(au_buff_t *rec, au_buff_t *buf, int pack) argument
130 if (((int)(rec->len + buf
150 au_append_buf(const char *data, int len, au_buff_t *buf) argument
[all...]
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dparser.c36 #define INCREMENT_BUF(buf) \
37 if ((buf)[0] == 0) { \
40 (buf) += (buf)[0]; \
190 usb_nth_descr(uchar_t *buf, argument
197 uchar_t *bufstart = buf;
198 uchar_t *bufend = buf + buflen;
200 if (buf == NULL) {
205 while (buf + 2 <= bufend) {
206 if ((buf !
232 usb_parse_dev_descr(uchar_t *buf, size_t buflen, usb_dev_descr_t *ret_descr, size_t ret_buf_len) argument
249 usb_parse_cfg_descr(uchar_t *buf, size_t buflen, usb_cfg_descr_t *ret_descr, size_t ret_buf_len) argument
266 usba_parse_cfg_pwr_descr( uchar_t *buf, size_t buflen, usba_cfg_pwr_descr_t *ret_descr, size_t ret_buf_len) argument
301 usb_parse_ia_descr(uchar_t *buf, size_t buflen, size_t first_if, usb_ia_descr_t *ret_descr, size_t ret_buf_len) argument
335 usb_parse_if_descr(uchar_t *buf, size_t buflen, uint_t if_number, uint_t alt_if_setting, usb_if_descr_t *ret_descr, size_t ret_buf_len) argument
370 usba_parse_if_pwr_descr(uchar_t *buf, size_t buflen, uint_t if_number, uint_t alt_if_setting, usba_if_pwr_descr_t *ret_descr, size_t ret_buf_len) argument
425 usb_parse_ep_descr(uchar_t *buf, size_t buflen, uint_t if_number, uint_t alt_if_setting, uint_t ep_index, usb_ep_descr_t *ret_descr, size_t ret_buf_len) argument
476 usba_ascii_string_descr(uchar_t *buf, size_t buflen, char *ret_descr, size_t ret_buf_len) argument
504 usb_parse_CV_cfg_descr(uchar_t *buf, size_t buflen, char *fmt, uint_t descr_type, uint_t descr_index, void *ret_descr, size_t ret_buf_len) argument
528 usb_parse_CV_if_descr(uchar_t *buf, size_t buflen, char *fmt, uint_t if_number, uint_t alt_if_setting, uint_t descr_type, uint_t descr_index, void *ret_descr, size_t ret_buf_len) argument
573 usb_parse_CV_ep_descr(uchar_t *buf, size_t buflen, char *fmt, uint_t if_number, uint_t alt_if_setting, uint_t ep_index, uint_t descr_type, uint_t descr_index, void *ret_descr, size_t ret_buf_len) argument
[all...]
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-cancel.c43 char buf[128]; /* this should be overkill */ local
48 snprintf(buf, sizeof (buf), "%d", id);
49 list[0] = buf;
55 memset(buf, 0, sizeof (buf));
56 if (fdgets(buf, sizeof (buf), fd) != NULL) {
57 if (buf[0] == '\0')
59 else if ((strstr(buf, "permissio
79 char buf[256]; local
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dassfail.c176 char buf[800]; local
206 (void) strcpy(buf,
208 (void) strcat(buf, who);
209 (void) strcat(buf, "(");
211 ultos((uint64_t)(uintptr_t)cv, 16, buf + strlen(buf));
212 (void) strcat(buf, ", ");
214 ultos((uint64_t)(uintptr_t)mp, 16, buf + strlen(buf));
215 (void) strcat(buf, ")");
267 char buf[800]; local
354 char buf[800]; local
404 char buf[800]; /* no assert() message in the library is this long */ local
479 char buf[1000]; local
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_bio.h38 extern struct buf *sd_alloc_iob(dev_t, nsc_off_t, int, int);
39 extern void sd_add_fba(struct buf *, sd_addr_t *, nsc_off_t, nsc_size_t);
40 extern void sd_add_mem(struct buf *, char *, nsc_size_t);
41 extern int sd_start_io(struct buf *, strategy_fn_t, sdbc_ea_fn_t, blind_t);
/illumos-gate/usr/src/lib/libast/common/vec/
H A Dvecstring.c40 register char* buf; local
43 if (!str || !*str || !(buf = strdup(str))) vec = 0;
44 else if (!(vec = vecload(buf))) free(buf);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dcrc32.h11 uint32_t crc32(const void *buf, size_t size);

Completed in 86 milliseconds

1234567891011>>