Searched refs:buf (Results 201 - 225 of 4797) sorted by relevance

1234567891011>>

/freebsd-10.1-release/contrib/sendmail/libsm/
H A Dt-strio.c21 char buf[20]; local
26 (void) memset(buf, '.', 20);
27 sm_strio_init(&f, buf, 10);
31 SM_TEST(strcmp(buf, r) == 0);
/freebsd-10.1-release/crypto/heimdal/appl/test/
H A Dnt_gss_common.h36 void nt_write_token (int sock, gss_buffer_t buf);
37 void nt_read_token (int sock, gss_buffer_t buf);
/freebsd-10.1-release/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-10.1-release/lib/libc/rpc/
H A Drpc_callmsg.c62 int32_t *buf; local
75 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT
79 if (buf != NULL) {
80 IXDR_PUT_INT32(buf, cmsg->rm_xid);
81 IXDR_PUT_ENUM(buf, cmsg->rm_direction);
85 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers);
89 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_prog);
90 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_vers);
91 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_proc);
93 IXDR_PUT_ENUM(buf, o
[all...]
/freebsd-10.1-release/lib/libc/stdio/
H A Dgets.c50 gets(char *buf) argument
64 for (s = buf; (c = __sgetc(stdin)) != '\n';)
66 if (s == buf) {
75 return (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-10.1-release/lib/libc/stdlib/
H A Dl64a.c26 static char buf[8]; local
28 (void)l64a_r(value, buf, sizeof(buf));
29 return (buf);
/freebsd-10.1-release/sys/ofed/drivers/net/mlx4/
H A Dalloc.c211 struct mlx4_buf *buf)
216 buf->nbufs = 1;
217 buf->npages = 1;
218 buf->page_shift = get_order(size) + PAGE_SHIFT;
219 buf->direct.buf = dma_alloc_coherent(&dev->pdev->dev,
221 if (!buf->direct.buf)
224 buf->direct.map = t;
226 while (t & ((1 << buf
210 mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, struct mlx4_buf *buf) argument
279 mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf) argument
[all...]
/freebsd-10.1-release/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-10.1-release/tools/regression/pipe/
H A Dbigpipetest.c18 void write_frame(int fd, char *buf, unsigned long buflen) argument
35 i = write(fd, buf, buflen);
41 buf += i;
48 char buf[BIG_PIPE_SIZE]; /* any value over PIPE_SIZE should do */ local
68 i = read(fd[0], buf, 256); /* any small size should do */
78 memset(buf, 0, sizeof buf);
79 for (i = 0; i < 1000; i++) write_frame(fd[1], buf, sizeof buf);
/freebsd-10.1-release/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-10.1-release/usr.bin/cksum/
H A Dsum1.c53 u_char buf[8192]; local
60 while ((nr = read(fd, buf, sizeof(buf))) > 0)
61 for (total += nr, p = buf; nr--; ++p) {
H A Dsum2.c52 u_char buf[8192]; local
62 while ((nr = read(fd, buf, sizeof(buf))) > 0)
63 for (total += nr, p = buf; nr--; ++p)
/freebsd-10.1-release/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-10.1-release/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-10.1-release/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-10.1-release/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-10.1-release/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-10.1-release/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c85 lookup_bits(char *buf, const BITNAMES * table, const char *label, unsigned int val) argument
89 (void) strcat(buf, label);
90 (void) strcat(buf, ": {");
94 (void) strcat(buf, sp->name);
95 (void) strcat(buf, ", ");
97 if (buf[strlen(buf) - 2] == ',')
98 buf[strlen(buf) - 2] = '\0';
99 (void) strcat(buf, "} ");
106 char *buf; local
[all...]
/freebsd-10.1-release/crypto/openssh/
H A Dentropy.c65 * Collect 'len' bytes of entropy into 'buf' from PRNGD/EGD daemon
73 get_random_bytes_prngd(unsigned char *buf, int len, argument
144 if (atomicio(read, fd, buf, len) != (size_t)len) {
164 seed_from_prngd(unsigned char *buf, size_t bytes) argument
168 if (get_random_bytes_prngd(buf, bytes, PRNGD_PORT, NULL) == 0)
173 if (get_random_bytes_prngd(buf, bytes, 0, PRNGD_SOCKET) == 0)
182 u_char buf[RANDOM_SEED_SIZE]; local
184 if (RAND_bytes(buf, sizeof(buf)) <= 0) {
189 buffer_put_string(m, buf, sizeo
195 u_char *buf; local
210 unsigned char buf[RANDOM_SEED_SIZE]; local
[all...]
/freebsd-10.1-release/sys/dev/uart/
H A Duart_cpu_powerpc.c56 char buf[64]; local
59 if (OF_getprop(opts, inputdev, buf, sizeof(buf)) == -1)
61 input = OF_finddevice(buf);
66 if (OF_getprop(opts, outputdev, buf, sizeof(buf)) == -1)
68 if (OF_finddevice(buf) != input)
81 char buf[64]; member in union:__anon9867
95 if (field.buf[size - 1] == 0)
96 output = OF_finddevice(field.buf);
111 char buf[64]; local
[all...]
/freebsd-10.1-release/usr.sbin/bluetooth/sdpd/
H A Dnap.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,
92 buf, eob,
99 uint8_t *buf, uint8_t const * const eob,
106 buf, eo
42 nap_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
57 nap_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
73 nap_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
85 nap_profile_create_service_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
98 nap_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
111 nap_profile_create_security_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
124 nap_profile_create_net_access_type( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
141 nap_profile_create_max_net_access_rate( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
158 nap_profile_create_service_availability( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
[all...]
/freebsd-10.1-release/crypto/openssl/crypto/bio/
H A Db_dump.c81 char buf[288 + 1], tmp[20], str[128 + 1]; local
107 buf[0] = '\0'; /* start with empty string */
108 BUF_strlcpy(buf, str, sizeof buf);
110 BUF_strlcat(buf, tmp, sizeof buf);
113 BUF_strlcat(buf, " ", sizeof buf);
118 BUF_strlcat(buf, tmp, sizeof buf);
[all...]
/freebsd-10.1-release/crypto/openssl/crypto/asn1/
H A Df_int.c68 char buf[2]; local
90 buf[0] = h[((unsigned char)a->data[i] >> 4) & 0x0f];
91 buf[1] = h[((unsigned char)a->data[i]) & 0x0f];
92 if (BIO_write(bp, buf, 2) != 2)
102 int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size) argument
112 bufsize = BIO_gets(bp, buf, size);
117 if (buf[i - 1] == '\n')
118 buf[--i] = '\0';
121 if (buf[i - 1] == '\r')
122 buf[
[all...]
/freebsd-10.1-release/contrib/tcpdump/
H A Dsmbutil.c172 name_ptr(const u_char *buf, int ofs, const u_char *maxbuf) argument
177 p = buf + ofs;
196 p = buf + l;
208 * extract a netbios name from a buf
211 name_extract(const u_char *buf, int ofs, const u_char *maxbuf, char *name) argument
213 const u_char *p = name_ptr(buf, ofs, maxbuf);
249 print_asc(const unsigned char *buf, int len) argument
253 safeputchar(buf[i]);
274 print_data(const unsigned char *buf, int len) argument
282 TCHECK(buf[
342 static char buf[MAX_UNISTR_SIZE+1]; local
432 smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf, int unicodestr) argument
791 smb_fdata(const u_char *buf, const char *fmt, const u_char *maxbuf, int unicodestr) argument
[all...]

Completed in 226 milliseconds

1234567891011>>