Searched refs:buf (Results 301 - 325 of 4982) sorted by relevance

<<11121314151617181920>>

/freebsd-10.2-release/lib/librpcsvc/
H A Dxcrypt.c63 char *buf; local
68 if ((buf = malloc((unsigned)len)) == NULL) {
72 hex2bin(len, secret, buf);
76 err = cbc_crypt(key, buf, len, DES_ENCRYPT | DES_HW, ivec);
78 free(buf);
81 bin2hex(len, (unsigned char *) buf, secret);
82 free(buf);
96 char *buf; local
101 if ((buf = malloc((unsigned)len)) == NULL) {
105 hex2bin(len, secret, buf);
[all...]
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/gen/
H A Dt_ttyname.c93 char *buf; local
97 buf = malloc(ttymax + 1);
99 if (buf == NULL)
102 (void)memset(buf, '\0', ttymax + 1);
110 rv = ttyname_r(-1, buf, ttymax);
116 rv = ttyname_r(fd, buf, ttymax);
121 free(buf);
133 char *buf; local
139 buf = malloc(ttymax + 1);
141 if (buf
[all...]
/freebsd-10.2-release/crypto/openssh/
H A Dbufec.c53 u_char *buf = NULL; local
69 buf = xmalloc(len);
71 buf, len, bnctx) != len) {
76 buffer_put_string(buffer, buf, len);
79 if (buf != NULL) {
80 explicit_bzero(buf, len);
81 free(buf);
99 u_char *buf; local
104 if ((buf = buffer_get_string_ret(buffer, &len)) == NULL) {
119 if (buf[
[all...]
H A Dprogressmeter.c88 format_rate(char *buf, int size, off_t bytes) argument
99 snprintf(buf, size, "%3lld.%1lld%c%s",
107 format_size(char *buf, int size, off_t bytes) argument
113 snprintf(buf, size, "%4lld%c%s",
122 char buf[MAX_WINSIZE + 1]; local
161 buf[0] = '\0';
164 len = snprintf(buf, file_len + 1, "\r%s", file);
170 buf[i] = ' ';
171 buf[file_len] = '\0';
179 snprintf(buf
[all...]
/freebsd-10.2-release/usr.sbin/bluetooth/sdpd/
H A Dgn.c43 uint8_t *buf, uint8_t const * const eob,
51 buf, eob,
58 uint8_t *buf, uint8_t const * const eob,
67 buf, eob,
74 uint8_t *buf, uint8_t const * const eob,
80 buf, eob,
86 uint8_t *buf, uint8_t const * const eob,
93 buf, eob,
100 uint8_t *buf, uint8_t const * const eob,
107 buf, eo
42 gn_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
57 gn_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
73 gn_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
85 gn_profile_create_service_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
99 gn_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
112 gn_profile_create_security_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
125 gn_profile_create_service_availability( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
[all...]
H A Dpanu.c43 uint8_t *buf, uint8_t const * const eob,
51 buf, eob,
58 uint8_t *buf, uint8_t const * const eob,
67 buf, eob,
74 uint8_t *buf, uint8_t const * const eob,
80 buf, eob,
86 uint8_t *buf, uint8_t const * const eob,
93 buf, eob,
100 uint8_t *buf, uint8_t const * const eob,
107 buf, eo
42 panu_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
57 panu_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
73 panu_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
85 panu_profile_create_service_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
99 panu_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
120 panu_profile_create_service_availability( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
132 panu_profile_create_security_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
[all...]
/freebsd-10.2-release/usr.bin/from/
H A Dfrom.c66 char buf[MAXPATHLEN]; local
68 char buf[BUFSIZ]; local
96 (void)snprintf(buf, sizeof(buf), "%s/%s", _PATH_MAILDIR, *argv);
97 file = buf;
103 (void)snprintf(buf, sizeof(buf),
105 file = buf;
117 for (newline = 1; fgets(buf, sizeof(buf), mbo
[all...]
/freebsd-10.2-release/contrib/ntp/lib/isc/
H A Dbase32.c59 char buf[9]; local
65 memset(buf, 0, sizeof(buf));
67 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
69 buf[1] = base[(source->base[0]<<2)&0x1c];
70 buf[2] = buf[3] = buf[4] = '=';
71 buf[5] = buf[
222 unsigned char buf[5]; local
[all...]
/freebsd-10.2-release/contrib/mdocml/
H A Dread.c49 struct buf { struct
50 char *buf; /* binary input buffer */ member in struct:buf
68 struct buf *secondary;
71 static void resize_buf(struct buf *, size_t);
72 static void mparse_buf_r(struct mparse *, struct buf, int);
75 static int read_whole_file(const char *, int, struct buf *, int *);
216 resize_buf(struct buf *buf, size_t initial) argument
219 buf->sz = buf
224 pset(const char *buf, int pos, struct mparse *curp) argument
665 mparse_readmem(struct mparse *curp, const void *buf, size_t len, const char *file) argument
789 char buf[256]; local
[all...]
/freebsd-10.2-release/contrib/ofed/management/infiniband-diags/src/
H A Dibdiag_common.c59 char buf[512], *s; local
64 n = vsprintf(buf, msg, va);
66 buf[n] = 0;
72 printf("%s: iberror: [pid %d] %s: failed: %s\n", argv0, getpid(), fn, buf);
74 printf("%s: iberror: failed: %s\n", argv0, buf);
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_system.c50 char buf[23]; local
63 (void)memset(buf, '\0', sizeof(buf));
65 ATF_REQUIRE(read(fd, buf, 21) == 21);
66 ATF_REQUIRE(strcmp(buf, "garbagegarbagegarbage") == 0);
/freebsd-10.2-release/contrib/netbsd-tests/lib/libutil/
H A Dt_sockaddr_snprintf.c56 char buf[1024]; local
65 i = sockaddr_snprintf(buf, sizeof(buf), "%f %l %p %a",
69 ATF_REQUIRE_STREQ(buf, "2 16 80 127.0.0.1");
81 char buf[1024]; local
90 i = sockaddr_snprintf(buf, sizeof(buf), "%f %l %p %a",
94 ATF_REQUIRE_STREQ(buf, "24 28 80 ff01::1");
108 char buf[1024]; local
116 i = sockaddr_snprintf(buf, sizeo
131 char buf[1024]; local
155 char buf[1024]; local
[all...]
/freebsd-10.2-release/crypto/heimdal/lib/roken/
H A Dparse_bytes-test.c64 char buf[256]; local
76 len = unparse_bytes (tests[i].val, buf, sizeof(buf));
77 if (strcmp (tests[i].str, buf) != 0) {
79 tests[i].val, buf, tests[i].str);
/freebsd-10.2-release/crypto/heimdal/admin/
H A Dlist.c51 char buf[1024]; local
55 buf, sizeof(buf)) != -1) {
58 if(do_list(opt, buf))
92 char buf[1024], *s; local
94 snprintf(buf, sizeof(buf), "%d", entry.vno);
95 rtbl_add_column_entry_by_id(table, 0, buf);
100 snprintf(buf, sizeof(buf), "unknow
[all...]
/freebsd-10.2-release/crypto/openssl/crypto/rand/
H A Drandfile.c120 MS_STATIC unsigned char buf[BUFSIZE]; local
172 i = fread(buf, 1, n, in);
176 RAND_add(buf, i, (double)i);
179 RAND_add(buf, n, (double)i);
189 OPENSSL_cleanse(buf, BUFSIZE);
196 unsigned char buf[BUFSIZE]; local
270 if (RAND_bytes(buf, i) <= 0)
272 i = fwrite(buf, 1, i, out);
283 OPENSSL_cleanse(buf, BUFSIZE);
288 const char *RAND_file_name(char *buf, size_ argument
[all...]
/freebsd-10.2-release/crypto/openssl/crypto/ui/
H A Dui_util.c59 int UI_UTIL_read_pw_string(char *buf, int length, const char *prompt, argument
66 UI_UTIL_read_pw(buf, buff, (length > BUFSIZ) ? BUFSIZ : length,
72 int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, argument
83 ok = UI_add_input_string(ui, prompt, 0, buf, 0, size - 1);
85 ok = UI_add_verify_string(ui, prompt, 0, buff, 0, size - 1, buf);
/freebsd-10.2-release/libexec/bootpd/
H A Dreport.c95 static char buf[128]; local
101 vsnprintf(buf, sizeof(buf), fmt, ap);
109 progname, levelnames[priority], buf);
113 syslog((priority | LOG_BOOTP), "%s", buf);
/freebsd-10.2-release/lib/libc/quad/TESTS/
H A Dmul.c51 char buf[300]; local
56 if (fgets(buf, sizeof buf, stdin) == NULL)
58 if (sscanf(buf, "%lu:%lu %lu:%lu",
60 sscanf(buf, "0x%lx:%lx 0x%lx:%lx",
/freebsd-10.2-release/lib/libc/stdio/
H A Dvdprintf.c49 unsigned char buf[BUFSIZ]; local
57 f._p = buf;
58 f._w = sizeof(buf);
63 f._bf._base = buf;
64 f._bf._size = sizeof(buf);
/freebsd-10.2-release/cddl/contrib/opensolaris/lib/libzfs_core/common/
H A Dlibzfs_core_compat.c37 char *buf, *val; local
57 buf = fnvlist_lookup_string(*source, "origin");
58 strlcpy(zc->zc_value, buf, MAXPATHLEN);
67 buf = nvpair_name(pair);
68 pos = strcspn(buf, "@");
69 strlcpy(zc->zc_name, buf, pos + 1);
70 strlcpy(zc->zc_value, buf + pos + 1, MAXPATHLEN);
82 buf = fnvlist_lookup_string(*source, "firstsnap");
83 strlcpy(zc->zc_value, buf, MAXPATHLEN);
89 buf
[all...]
/freebsd-10.2-release/contrib/expat/examples/
H A Delements.c46 char buf[BUFSIZ]; local
53 int len = (int)fread(buf, 1, sizeof(buf), stdin);
54 done = len < sizeof(buf);
55 if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
/freebsd-10.2-release/sys/boot/userboot/userboot/
H A Dcopy.c55 char buf[4096]; local
60 if (sz > sizeof(buf))
61 sz = sizeof(buf);
62 s = read(fd, buf, sz);
67 CALLBACK(copyin, buf, va, s);
/freebsd-10.2-release/tests/sys/kqueue/
H A Dmain.c75 char *buf; local
79 strncat(buf, #attrib" ", 64);
81 if ((buf = calloc(1, 1024)) == NULL)
86 snprintf(buf, 1024, "fflags = %d", kev->fflags);
87 return (buf);
90 snprintf(buf, 1024, "fflags = %d (", kev->fflags);
103 buf[strlen(buf) - 1] = ')';
105 return (buf);
111 char *buf; local
144 char buf[512]; local
[all...]
/freebsd-10.2-release/sys/dev/drm/
H A Dvia_verifier.c241 eat_words(const uint32_t ** buf, const uint32_t * buf_end, unsigned num_words) argument
243 if ((buf_end - *buf) >= num_words) {
244 *buf += num_words;
527 const uint32_t *buf = *buffer; local
529 while (buf < buf_end) {
531 if ((buf_end - buf) < 2) {
537 if ((*buf & HC_ACMD_MASK) != HC_ACMD_HCmdB)
539 bcmd = *buf++;
540 if ((*buf & HC_ACMD_MASK) != HC_ACMD_HCmdA) {
542 *buf);
629 const uint32_t *buf = *buffer; local
720 const uint32_t *buf = *buffer; local
786 const uint32_t *buf = *buffer; local
806 const uint32_t *buf = *buffer; local
839 const uint32_t *buf = *buffer; local
856 const uint32_t *buf = *buffer; local
890 const uint32_t *buf = *buffer; local
908 const uint32_t *buf = *buffer; local
947 const uint32_t *buf = *buffer; local
963 via_verify_command_stream(const uint32_t * buf, unsigned int size, struct drm_device * dev, int agp) argument
1039 via_parse_command_stream(struct drm_device * dev, const uint32_t * buf, unsigned int size) argument
[all...]
/freebsd-10.2-release/contrib/file/src/
H A Dencoding.c69 file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, unichar **ubuf, size_t *ulen, const char **code, const char **code_mime, const char **type) argument
91 if (looks_ascii(buf, nbytes, *ubuf, ulen)) {
92 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) {
101 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) {
105 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) {
109 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) {
118 } else if (looks_latin1(buf, nbytes, *ubuf, ulen)) {
122 } else if (looks_extended(buf, nbytes, *ubuf, ulen)) {
127 from_ebcdic(buf, nbytes, nbuf);
231 looks_ascii(const unsigned char *buf, size_ argument
251 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
270 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
301 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
372 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
382 looks_utf7(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
401 looks_ucs16(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
522 from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out) argument
[all...]

Completed in 135 milliseconds

<<11121314151617181920>>