Searched refs:buf (Results 251 - 275 of 5655) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/usr.bin/fold/
H A Dfold.c157 static wchar_t *buf; local
165 wprintf(L"%.*ls\n", indx, buf);
172 while (--i >= 0 && !iswblank(buf[i]))
178 wprintf(L"%.*ls\n", space, buf);
179 wmemmove(buf, buf + space, indx - space);
183 col = newpos(col, buf[i]);
185 wprintf(L"%.*ls\n", indx, buf);
192 buf = realloc(buf, sizeo
209 char buf[MB_LEN_MAX]; local
[all...]
/freebsd-11-stable/usr.bin/tset/
H A Dmisc.c49 char buf[1024]; local
54 while ((nr = read(fd, buf, sizeof(buf))) > 0)
55 if ((nw = write(STDERR_FILENO, buf, nr)) == -1)
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dmbo_ap.h20 int mbo_ap_get_info(struct sta_info *sta, char *buf, size_t buflen);
22 const u8 *buf, size_t len);
33 static inline int mbo_ap_get_info(struct sta_info *sta, char *buf, argument
41 const u8 *buf, size_t len)
39 mbo_ap_wnm_notification_req(struct hostapd_data *hapd, const u8 *addr, const u8 *buf, size_t len) argument
/freebsd-11-stable/crypto/openssh/
H A Dsshbuf-getput-basic.c32 sshbuf_get(struct sshbuf *buf, void *v, size_t len) argument
34 const u_char *p = sshbuf_ptr(buf);
37 if ((r = sshbuf_consume(buf, len)) < 0)
45 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp) argument
47 const u_char *p = sshbuf_ptr(buf);
50 if ((r = sshbuf_consume(buf, 8)) < 0)
58 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp) argument
60 const u_char *p = sshbuf_ptr(buf);
63 if ((r = sshbuf_consume(buf, 4)) < 0)
71 sshbuf_get_u16(struct sshbuf *buf, u_int16_ argument
84 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) argument
97 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp) argument
124 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) argument
150 sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp, size_t *lenp) argument
181 sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp) argument
216 sshbuf_get_stringb(struct sshbuf *buf, struct sshbuf *v) argument
236 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) argument
249 sshbuf_putb(struct sshbuf *buf, const struct sshbuf *v) argument
255 sshbuf_putf(struct sshbuf *buf, const char *fmt, ...) argument
267 sshbuf_putfv(struct sshbuf *buf, const char *fmt, va_list ap) argument
300 sshbuf_put_u64(struct sshbuf *buf, u_int64_t val) argument
312 sshbuf_put_u32(struct sshbuf *buf, u_int32_t val) argument
324 sshbuf_put_u16(struct sshbuf *buf, u_int16_t val) argument
336 sshbuf_put_u8(struct sshbuf *buf, u_char val) argument
348 sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) argument
366 sshbuf_put_cstring(struct sshbuf *buf, const char *v) argument
372 sshbuf_put_stringb(struct sshbuf *buf, const struct sshbuf *v) argument
378 sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp) argument
402 sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len) argument
431 sshbuf_get_bignum2_bytes_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) argument
[all...]
H A Dentropy.c69 * Collect 'len' bytes of entropy into 'buf' from PRNGD/EGD daemon
77 get_random_bytes_prngd(unsigned char *buf, int len, argument
148 if (atomicio(read, fd, buf, len) != (size_t)len) {
168 seed_from_prngd(unsigned char *buf, size_t bytes) argument
172 if (get_random_bytes_prngd(buf, bytes, PRNGD_PORT, NULL) == 0)
177 if (get_random_bytes_prngd(buf, bytes, 0, PRNGD_SOCKET) == 0)
186 u_char buf[RANDOM_SEED_SIZE]; local
188 if (RAND_bytes(buf, sizeof(buf)) <= 0) {
193 buffer_put_string(m, buf, sizeo
199 u_char *buf; local
214 unsigned char buf[RANDOM_SEED_SIZE]; local
[all...]
/freebsd-11-stable/lib/libc/stdio/
H A Dgets.c49 gets(char *buf) argument
63 for (s = buf; (c = __sgetc(stdin)) != '\n'; ) {
65 if (s == buf) {
74 ret = buf;
H A Dxprintf_vis.c51 char *p, *buf; local
63 buf = malloc(l * 4 + 1);
64 if (buf == NULL)
67 ret = strvisx(buf, p, l, VIS_WHITE | VIS_HTTPSTYLE);
69 ret = strvisx(buf, p, l, VIS_WHITE | VIS_OCTAL);
71 ret = strvisx(buf, p, l, VIS_WHITE);
73 ret = strvisx(buf, p, l, VIS_WHITE | VIS_CSTYLE | VIS_OCTAL);
74 ret += __printf_out(io, pi, buf, ret);
76 free(buf);
/freebsd-11-stable/stand/mips/beri/common/
H A Dsdcard.h36 int altera_sdcard_read(void *buf, unsigned lba, unsigned nblk);
/freebsd-11-stable/sys/sys/
H A Dauxv.h35 int elf_aux_info(int aux, void *buf, int buflen);
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Utility/
H A DVASPrintf.h17 bool VASprintf(llvm::SmallVectorImpl<char> &buf, const char *fmt, va_list args);
/freebsd-11-stable/lib/libc/rpc/
H A Drpc_callmsg.c60 int32_t *buf; local
73 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT
77 if (buf != NULL) {
78 IXDR_PUT_INT32(buf, cmsg->rm_xid);
79 IXDR_PUT_ENUM(buf, cmsg->rm_direction);
83 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers);
87 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_prog);
88 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_vers);
89 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_proc);
91 IXDR_PUT_ENUM(buf, o
[all...]
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Ddumpdata.c43 rk_dumpdata (const char *filename, const void *buf, size_t size) argument
50 net_write(fd, buf, size);
59 rk_undumpdata(const char *filename, void **buf, size_t *size) argument
65 *buf = NULL;
74 *buf = malloc(sb.st_size);
75 if (*buf == NULL) {
81 sret = net_read(fd, *buf, *size);
86 free(*buf);
87 *buf = NULL;
/freebsd-11-stable/sys/rpc/
H A Drpc_callmsg.c58 int32_t *buf; local
68 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT
72 if (buf != NULL) {
73 IXDR_PUT_INT32(buf, cmsg->rm_xid);
74 IXDR_PUT_ENUM(buf, cmsg->rm_direction);
78 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers);
82 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_prog);
83 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_vers);
84 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_proc);
86 IXDR_PUT_ENUM(buf, o
[all...]
/freebsd-11-stable/sys/libkern/
H A Dasprintf.c37 vasprintf(char **buf, struct malloc_type *mtp, const char *format, va_list va) argument
47 *buf = NULL;
53 *buf = malloc(len, mtp, M_NOWAIT);
54 if (*buf == NULL)
57 ret = vsnprintf(*buf, len, format, va);
59 free(*buf, mtp);
60 *buf = NULL;
67 asprintf(char **buf, struct malloc_type *mtp, const char *format, ...) argument
73 ret = vasprintf(buf, mtp, format, va);
/freebsd-11-stable/tests/sys/kern/pipe/
H A Dbig_pipe_test.c20 write_frame(int fd, char *buf, unsigned long buflen) argument
35 i = write(fd, buf, buflen);
41 buf += i;
50 char buf[BIG_PIPE_SIZE]; local
70 i = read(fd[0], buf, 256);
82 memset(buf, 0, sizeof buf);
84 write_frame(fd[1], buf, sizeof buf);
/freebsd-11-stable/crypto/openssl/crypto/rand/
H A Drand.h82 void (*seed) (const void *buf, int num);
83 int (*bytes) (unsigned char *buf, int num);
85 void (*add) (const void *buf, int num, double entropy);
86 int (*pseudorand) (unsigned char *buf, int num);
101 int RAND_bytes(unsigned char *buf, int num);
102 int RAND_pseudo_bytes(unsigned char *buf, int num);
103 void RAND_seed(const void *buf, int num);
104 void RAND_add(const void *buf, int num, double entropy);
109 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
/freebsd-11-stable/tools/test/netfibs/
H A Dreflect.c59 reflect_conn(int s, char *buf, size_t buflen, ssize_t l, struct sockaddr *sa, argument
71 buf[l-1] = '\0';
82 if (strncmp(buf, "START ", 6) != 0)
84 "connect: %s", buf);
87 buf);
88 if (strcmp(buf+6, testcase) != 0)
90 "'%s': '%s'", testcase, buf+6);
94 fprintf(stderr, "<< %s: %s\n", testcase, buf);
97 l = snprintf(buf, buflen, "FIB %u\n", reflectfib);
101 buf[
132 char buf[1500]; local
150 char buf[1500]; local
[all...]
/freebsd-11-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_ioctl.c54 char buf[32]; local
61 km.name = buf;
62 km.len = sizeof(buf) - 1;
91 char buf[32]; local
98 km.name = buf;
101 (void)strlcpy(buf, *test, sizeof(buf));
106 (void)strlcpy(buf, "NOTREG_FILTER", sizeof(buf));
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_pcf.c136 char buf[LENPCF]; local
142 buf[0] = 0;
143 if (read(pp->io.fd, buf, sizeof(buf)) < (ssize_t)sizeof(buf) || buf[0] != 9) {
150 tm.tm_mday = buf[11] * 10 + buf[10];
151 tm.tm_mon = buf[13] * 10 + buf[1
[all...]
/freebsd-11-stable/sys/dev/ppbus/
H A Dpcfclock.c92 #define PCFCLOCK_CORRECT_SYNC(buf) (buf[0] == 9)
94 #define NR(buf, off) (buf[off+1]*10+buf[off])
97 #define PCFCLOCK_CORRECT_FORMAT(buf) (\
98 NR(buf, 14) <= 99 && \
99 NR(buf, 12) <= 12 && \
100 NR(buf, 10) <= 31 && \
101 NR(buf,
204 pcfclock_display_data(struct cdev *dev, char buf[18]) argument
226 pcfclock_read_data(struct cdev *dev, char *buf, ssize_t bits) argument
265 pcfclock_read_dev(struct cdev *dev, char *buf, int maxretries) argument
299 char buf[18]; local
[all...]
/freebsd-11-stable/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c82 lookup_bits(char *buf, const BITNAMES * table, const char *label, unsigned int val) argument
86 _nc_STRCAT(buf, label, TRACE_BUF_SIZE(0));
87 _nc_STRCAT(buf, ": {", TRACE_BUF_SIZE(0));
91 _nc_STRCAT(buf, sp->name, TRACE_BUF_SIZE(0));
92 _nc_STRCAT(buf, ", ", TRACE_BUF_SIZE(0));
94 if (buf[strlen(buf) - 2] == ',')
95 buf[strlen(buf) - 2] = '\0';
96 _nc_STRCAT(buf, "} ", TRACE_BUF_SIZ
103 char *buf; local
[all...]
/freebsd-11-stable/contrib/wpa/src/common/
H A Dcli.c94 char buf[18]; local
98 os_snprintf(buf, sizeof(buf), MACSTR, MAC2STR(addr));
99 cli_txt_list_del(txt_list, buf);
107 char *buf; local
112 buf = dup_binstr(txt, end - txt);
113 if (buf == NULL)
115 cli_txt_list_del(txt_list, buf);
116 os_free(buf);
143 char buf[1 local
156 char *buf; local
211 write_cmd(char *buf, size_t buflen, const char *cmd, int argc, char *argv[]) argument
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/
H A Dnap.c46 uint8_t *buf, uint8_t const * const eob,
54 buf, eob,
61 uint8_t *buf, uint8_t const * const eob,
70 buf, eob,
77 uint8_t *buf, uint8_t const * const eob,
83 buf, eob,
89 uint8_t *buf, uint8_t const * const eob,
95 buf, eob,
102 uint8_t *buf, uint8_t const * const eob,
109 buf, eo
45 nap_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
60 nap_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
76 nap_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
88 nap_profile_create_service_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
101 nap_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
114 nap_profile_create_security_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
127 nap_profile_create_net_access_type( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
144 nap_profile_create_max_net_access_rate( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
161 nap_profile_create_service_availability( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
[all...]
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dbuf.c237 static int alloc_huge_buf(struct mlx5_context *mctx, struct mlx5_buf *buf, argument
245 buf->length = align(size, MLX5_Q_CHUNK_SIZE);
246 nchunk = buf->length / MLX5_Q_CHUNK_SIZE;
251 buf->base = bitmap_alloc_range(&hmem->bitmap, nchunk, 1);
252 if (buf->base != -1) {
253 buf->hmem = hmem;
262 hmem = alloc_huge_mem(buf->length);
266 buf->base = bitmap_alloc_range(&hmem->bitmap, nchunk, 1);
267 if (buf->base == -1) {
274 buf
308 free_huge_buf(struct mlx5_context *ctx, struct mlx5_buf *buf) argument
323 mlx5_alloc_prefered_buf(struct mlx5_context *mctx, struct mlx5_buf *buf, size_t size, int page_size, enum mlx5_alloc_type type, const char *component) argument
369 mlx5_free_actual_buf(struct mlx5_context *ctx, struct mlx5_buf *buf) argument
483 mlx5_alloc_buf_contig(struct mlx5_context *mctx, struct mlx5_buf *buf, size_t size, int page_size, const char *component) argument
539 mlx5_free_buf_contig(struct mlx5_context *mctx, struct mlx5_buf *buf) argument
545 mlx5_alloc_buf(struct mlx5_buf *buf, size_t size, int page_size) argument
567 mlx5_free_buf(struct mlx5_buf *buf) argument
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c69 evbuffer_validate_(struct evbuffer *buf) argument
75 if (buf->first == NULL) {
76 tt_assert(buf->last == NULL);
77 tt_assert(buf->total_len == 0);
80 chain = buf->first;
82 tt_assert(buf->last_with_datap);
83 if (buf->last_with_datap == &buf->first)
87 if (&chain->next == buf->last_with_datap)
91 tt_assert(buf
124 evbuffer_get_waste(struct evbuffer *buf, size_t *allocatedp, size_t *wastedp, size_t *usedp) argument
258 char *buf; local
299 char buf[2]; local
330 struct evbuffer *buf = evbuffer_new(); local
427 struct evbuffer *buf = evbuffer_new(); local
499 struct evbuffer *buf; local
1194 struct evbuffer *buf = evbuffer_new(); local
1251 struct evbuffer *buf = evbuffer_new(); local
1301 struct evbuffer * buf = evbuffer_new(); local
1342 struct evbuffer *buf = evbuffer_new(); local
1402 struct evbuffer *buf = evbuffer_new(); local
1509 struct evbuffer *buf = evbuffer_new(); local
1849 struct evbuffer *buf = NULL, *tmp_buf = NULL; local
1885 struct evbuffer *buf = NULL, *tmp_buf = NULL; local
2003 struct evbuffer *buf = NULL, *tmp_buf=NULL; local
2087 struct evbuffer * buf = NULL; local
2141 struct evbuffer *buf; local
[all...]

Completed in 321 milliseconds

<<11121314151617181920>>