Searched refs:buf (Results 1 - 25 of 5655) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/mdocml/
H A Dtest-strlcat.c6 char buf[3] = "a"; local
7 return ! (strlcat(buf, "b", sizeof(buf)) == 2 &&
8 buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0');
H A Dtest-strlcpy.c6 char buf[2] = ""; local
7 return ! (strlcpy(buf, "a", sizeof(buf)) == 1 &&
8 buf[0] == 'a' && buf[1] == '\0');
H A Dtest-strsep.c6 char buf[6] = "aybxc"; local
7 char *workp = buf;
9 return ! (retp == buf && buf[1] == '\0' && workp == buf + 2);
/freebsd-11-stable/sys/dev/qlxgb/
H A Dqla_dbg.c54 uint32_t *buf; local
57 buf = dbuf32;
63 i, buf[0], buf[1], buf[2], buf[3]);
66 buf += 4;
70 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]);
73 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[
93 uint16_t *buf; local
152 uint8_t *buf; local
[all...]
/freebsd-11-stable/sys/dev/qlxgbe/
H A Dql_dbg.c50 uint32_t *buf; local
53 buf = dbuf32;
59 i, buf[0], buf[1], buf[2], buf[3]);
62 buf += 4;
66 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]);
69 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[
89 uint16_t *buf; local
148 uint8_t *buf; local
[all...]
/freebsd-11-stable/sys/dev/qlxge/
H A Dqls_dbg.c53 uint32_t *buf; local
56 buf = dbuf32;
62 i, buf[0], buf[1], buf[2], buf[3]);
65 buf += 4;
69 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]);
72 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[
95 uint16_t *buf; local
157 uint8_t *buf; local
[all...]
/freebsd-11-stable/contrib/gdb/gdb/gdbserver/
H A Di387-fp.h25 void i387_cache_to_fsave (void *buf);
26 void i387_fsave_to_cache (const void *buf);
28 void i387_cache_to_fxsave (void *buf);
29 void i387_fxsave_to_cache (const void *buf);
/freebsd-11-stable/contrib/sendmail/include/sm/
H A Dsetjmp.h31 # define sm_setjmp_sig(buf) sigsetjmp(buf, 1)
32 # define sm_setjmp_nosig(buf) sigsetjmp(buf, 0)
33 # define sm_longjmp_sig(buf, val) siglongjmp(buf, val)
34 # define sm_longjmp_nosig(buf, val) siglongjmp(buf, val)
39 # define sm_setjmp_sig(buf) setjmp(buf)
[all...]
/freebsd-11-stable/tools/regression/ccd/layout/
H A Da.c4 static uint32_t buf[512/4]; variable
10 buf[0] = u++;
12 if (512 != write(1, buf, sizeof buf))
H A Db.c6 static uint32_t buf[512/4]; variable
13 if (512 != read(0, buf, sizeof buf))
16 printf("%u %u\n", u++, buf[0]);
/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintsbuf.c19 printsbuf(buf)
20 char *buf;
25 for (s = (u_char *)buf, i = ISC_TLEN; i; i--, s++) {
33 void printsbuf(char *buf);
35 void printsbuf(buf)
36 char *buf;
39 buf = buf; /* gcc -Wextra */
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dxfree.c39 rk_xfree (void *buf) argument
41 free(buf);
/freebsd-11-stable/tools/tools/ath/ath_ee_9287_print/
H A D9287.h6 extern void eeprom_9287_base_print(uint16_t *buf);
7 extern void eeprom_9287_custdata_print(uint16_t *buf);
8 extern void eeprom_9287_modal_print(uint16_t *buf);
9 extern void eeprom_9287_calfreqpiers_print(uint16_t *buf);
10 extern void eeprom_9287_ctl_print(uint16_t *buf);
11 extern void eeprom_9287_print_targets(uint16_t *buf);
12 extern void eeprom_9287_print_edges(uint16_t *buf);
13 extern void eeprom_9287_print_other(uint16_t *buf);
/freebsd-11-stable/tools/tools/ath/ath_ee_v4k_print/
H A Dv4k.h6 extern void eeprom_v4k_base_print(uint16_t *buf);
7 extern void eeprom_v4k_custdata_print(uint16_t *buf);
8 extern void eeprom_v4k_modal_print(uint16_t *buf);
9 extern void eeprom_v4k_calfreqpiers_print(uint16_t *buf);
10 extern void eeprom_v4k_ctl_print(uint16_t *buf);
11 extern void eeprom_v4k_print_targets(uint16_t *buf);
12 extern void eeprom_v4k_print_edges(uint16_t *buf);
13 extern void eeprom_v4k_print_other(uint16_t *buf);
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dbuf.c41 int mlx4_alloc_buf(struct mlx4_buf *buf, size_t size, int page_size) argument
45 buf->length = align(size, page_size);
46 buf->buf = mmap(NULL, buf->length, PROT_READ | PROT_WRITE,
48 if (buf->buf == MAP_FAILED)
51 ret = ibv_dontfork_range(buf->buf, size);
53 munmap(buf
58 mlx4_free_buf(struct mlx4_buf *buf) argument
[all...]
/freebsd-11-stable/crypto/openssh/
H A Dsshbuf.c32 sshbuf_check_sanity(const struct sshbuf *buf) argument
35 if (__predict_false(buf == NULL ||
36 (!buf->readonly && buf->d != buf->cd) ||
37 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX ||
38 buf->cd == NULL ||
39 (buf->dont_free && (buf
54 sshbuf_maybe_pack(struct sshbuf *buf, int force) argument
119 sshbuf_fromb(struct sshbuf *buf) argument
148 sshbuf_free(struct sshbuf *buf) argument
187 sshbuf_reset(struct sshbuf *buf) argument
208 sshbuf_max_size(const struct sshbuf *buf) argument
214 sshbuf_alloc(const struct sshbuf *buf) argument
220 sshbuf_parent(const struct sshbuf *buf) argument
226 sshbuf_refcount(const struct sshbuf *buf) argument
232 sshbuf_set_max_size(struct sshbuf *buf, size_t max_size) argument
271 sshbuf_len(const struct sshbuf *buf) argument
279 sshbuf_avail(const struct sshbuf *buf) argument
287 sshbuf_ptr(const struct sshbuf *buf) argument
295 sshbuf_mutable_ptr(const struct sshbuf *buf) argument
303 sshbuf_check_reserve(const struct sshbuf *buf, size_t len) argument
319 sshbuf_allocate(struct sshbuf *buf, size_t len) argument
362 sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp) argument
382 sshbuf_consume(struct sshbuf *buf, size_t len) argument
399 sshbuf_consume_end(struct sshbuf *buf, size_t len) argument
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/net/
H A Dip.h61 ip_eth_mc_map(uint32_t addr, char *buf) argument
66 buf[0] = 0x01;
67 buf[1] = 0x00;
68 buf[2] = 0x5e;
69 buf[3] = (addr >> 16) & 0x7f;
70 buf[4] = (addr >> 8) & 0xff;
71 buf[5] = (addr & 0xff);
75 ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf) argument
81 buf[0] = 0;
82 buf[
[all...]
/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dspaces.c51 static char *buf; local
56 if (buf)
58 free (buf);
60 buf = (char *) malloc (count + 1);
61 if (buf == (char *) 0)
63 for (t = buf + count ; t != buf ; )
68 buf[count] = '\0';
70 return (const char *) (buf + maxsize - count);
H A Dvsnprintf.c28 @deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, const char *@var{format}, va_list @var{ap})
59 char *buf = 0; local
60 int result = vasprintf (&buf, format, ap);
62 if (!buf)
66 free (buf);
70 result = strlen (buf);
74 memcpy (s, buf, result+1);
77 memcpy (s, buf, n-1);
81 free (buf);
108 char buf[12 local
[all...]
/freebsd-11-stable/contrib/binutils/libiberty/
H A Dspaces.c51 static char *buf; local
56 if (buf)
58 free (buf);
60 buf = (char *) malloc (count + 1);
61 if (buf == (char *) 0)
63 for (t = buf + count ; t != buf ; )
68 buf[count] = '\0';
70 return (const char *) (buf + maxsize - count);
/freebsd-11-stable/lib/libopenbsd/
H A Dimsg-buffer.c41 struct ibuf *buf; local
43 if ((buf = calloc(1, sizeof(struct ibuf))) == NULL)
45 if ((buf->buf = malloc(len)) == NULL) {
46 free(buf);
49 buf->size = buf->max = len;
50 buf->fd = -1;
52 return (buf);
58 struct ibuf *buf; local
73 ibuf_realloc(struct ibuf *buf, size_t len) argument
93 ibuf_add(struct ibuf *buf, const void *data, size_t len) argument
105 ibuf_reserve(struct ibuf *buf, size_t len) argument
119 ibuf_seek(struct ibuf *buf, size_t pos, size_t len) argument
129 ibuf_size(struct ibuf *buf) argument
135 ibuf_left(struct ibuf *buf) argument
141 ibuf_close(struct msgbuf *msgbuf, struct ibuf *buf) argument
150 struct ibuf *buf; local
183 ibuf_free(struct ibuf *buf) argument
200 struct ibuf *buf, *next; local
218 struct ibuf *buf; local
228 struct ibuf *buf; local
235 char buf[CMSG_SPACE(sizeof(int))]; member in union:__anon6831
293 ibuf_enqueue(struct msgbuf *msgbuf, struct ibuf *buf) argument
300 ibuf_dequeue(struct msgbuf *msgbuf, struct ibuf *buf) argument
[all...]
/freebsd-11-stable/sbin/setkey/
H A Dvchar.h35 caddr_t buf; member in struct:__anon7097
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument
25 ((const u8 *) buf - sizeof(struct wpabuf_trace));
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument
33 struct wpabuf_trace *trace = wpabuf_get_trace(buf);
40 buf, (unsigned long) buf->size, (unsigned long) buf->used,
49 struct wpabuf *buf = *_buf; local
54 if (buf == NULL) {
60 trace = wpabuf_get_trace(buf);
118 struct wpabuf *buf; local
140 struct wpabuf *buf; local
162 struct wpabuf *buf = wpabuf_alloc(len); local
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local
182 wpabuf_free(struct wpabuf *buf) argument
208 wpabuf_clear_free(struct wpabuf *buf) argument
217 wpabuf_put(struct wpabuf *buf, size_t len) argument
275 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument
298 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument
320 wpabuf_parse_bin(const char *buf) argument
[all...]
/freebsd-11-stable/contrib/sendmail/libsmutil/
H A Dsnprintf.c38 static char buf[MAXSHORTSTR + 1]; local
49 (void) sm_strlcpy(buf, s, m + 1);
50 return buf;
52 (void) sm_strlcpy(buf, s, m - 2);
53 (void) sm_strlcat(buf, "...", sizeof buf);
54 return buf;
57 (void) sm_strlcpy(buf, s, m + 1);
58 (void) sm_strlcat2(buf, "...", s + l - m, sizeof buf);
[all...]
/freebsd-11-stable/contrib/dtc/libfdt/
H A Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) argument
62 err = fdt_create(buf, bufsize);
66 err = fdt_finish_reservemap(buf);
70 err = fdt_begin_node(buf, "");
74 err = fdt_end_node(buf);
78 err = fdt_finish(buf);
82 return fdt_open_into(buf, buf, bufsize);

Completed in 297 milliseconds

1234567891011>>