Searched refs:ibuf (Results 1 - 25 of 74) sorted by relevance

123

/freebsd-current/sbin/dhclient/
H A Dconvert.c54 u_int32_t ibuf; local
56 memcpy(&ibuf, buf, sizeof(ibuf));
57 return (ntohl(ibuf));
63 int32_t ibuf; local
65 memcpy(&ibuf, buf, sizeof(ibuf));
66 return (ntohl(ibuf));
72 u_int16_t ibuf; local
74 memcpy(&ibuf, bu
81 int16_t ibuf; local
[all...]
/freebsd-current/lib/libopenbsd/
H A Dimsg.c36 imsg_init(struct imsgbuf *ibuf, int fd) argument
38 msgbuf_init(&ibuf->w);
39 memset(&ibuf->r, 0, sizeof(ibuf->r));
40 ibuf->fd = fd;
41 ibuf->w.fd = fd;
42 ibuf->pid = getpid();
43 TAILQ_INIT(&ibuf->fds);
47 imsg_read(struct imsgbuf *ibuf) argument
63 iov.iov_base = ibuf
124 imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) argument
166 imsg_compose(struct imsgbuf *ibuf, u_int32_t type, u_int32_t peerid, pid_t pid, int fd, const void *data, u_int16_t datalen) argument
185 imsg_composev(struct imsgbuf *ibuf, u_int32_t type, u_int32_t peerid, pid_t pid, int fd, const struct iovec *iov, int iovcnt) argument
210 imsg_create(struct imsgbuf *ibuf, u_int32_t type, u_int32_t peerid, pid_t pid, u_int16_t datalen) argument
248 imsg_close(struct imsgbuf *ibuf, struct ibuf *msg) argument
270 imsg_get_fd(struct imsgbuf *ibuf) argument
286 imsg_flush(struct imsgbuf *ibuf) argument
295 imsg_clear(struct imsgbuf *ibuf) argument
[all...]
H A Dimsg.h28 struct ibuf { struct
29 TAILQ_ENTRY(ibuf) entry;
39 TAILQ_HEAD(, ibuf) bufs;
81 struct ibuf *ibuf_open(size_t);
82 struct ibuf *ibuf_dynamic(size_t, size_t);
83 int ibuf_add(struct ibuf *, const void *, size_t);
84 void *ibuf_reserve(struct ibuf *, size_t);
85 void *ibuf_seek(struct ibuf *, size_t, size_t);
86 size_t ibuf_size(struct ibuf *);
87 size_t ibuf_left(struct ibuf *);
[all...]
H A Dimsg-buffer.c32 int ibuf_realloc(struct ibuf *, size_t);
33 void ibuf_enqueue(struct msgbuf *, struct ibuf *);
34 void ibuf_dequeue(struct msgbuf *, struct ibuf *);
36 struct ibuf *
39 struct ibuf *buf;
41 if ((buf = calloc(1, sizeof(struct ibuf))) == NULL)
53 struct ibuf *
56 struct ibuf *buf;
71 ibuf_realloc(struct ibuf *buf, size_t len)
91 ibuf_add(struct ibuf *bu
[all...]
/freebsd-current/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_aesctr2.c55 unsigned char ibuf[24]; local
69 memcpy(ibuf, iv, 8);
70 memcpy(ibuf + 8, plaintx, 16);
74 co.len = sizeof(ibuf);
75 co.src = ibuf;
81 memset(ibuf, 0, sizeof(ibuf));
87 co.dst = ibuf;
88 co.dst_len = sizeof(ibuf);
/freebsd-current/contrib/tcp_wrappers/
H A Dpercent_m.c22 char *percent_m(char *obuf, char *ibuf) argument
25 char *cp = ibuf;
H A Dmystdarg.h19 extern char *percent_m(char *obuf, char *ibuf);
/freebsd-current/usr.bin/gzip/
H A Dunzstd.c33 static char *ibuf, *obuf; local
42 if (ibuf == NULL)
43 ibuf = malloc(BUFLEN);
46 if (ibuf == NULL || obuf == NULL)
63 res = read(in, ibuf, BUFLEN);
69 zib.src = ibuf;
H A Dunxz.c48 uint8_t ibuf[BUFSIZ]; local
54 strm.next_in = ibuf;
55 memcpy(ibuf, pre, prelen);
56 strm.avail_in = read(i, ibuf + prelen, sizeof(ibuf) - prelen);
78 strm.next_in = ibuf;
79 strm.avail_in = read(i, ibuf, sizeof(ibuf));
113 if (strm.avail_in != 0 || read(i, ibuf, 1))
/freebsd-current/usr.bin/stdbuf/
H A Dstdbuf.c68 char *ibuf, *obuf, *ebuf; local
71 ibuf = obuf = ebuf = NULL;
78 ibuf = optarg;
93 if (ibuf != NULL && setenv("_STDBUF_I", ibuf, 1) == -1)
95 "_STDBUF_I", ibuf);
/freebsd-current/contrib/netbsd-tests/lib/libc/locale/
H A Dt_io.c57 wchar_t ibuf[] = { 0xcf10, 0 }; local
59 ATF_REQUIRE_ERRNO(EILSEQ, wprintf(L"%ls\n", ibuf) < 0);
72 wchar_t ibuf[] = { 0xcf10, 0 }; local
76 swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf) < 0);
88 wchar_t ibuf[] = { 0xcf40, 0 }; local
90 ATF_REQUIRE_EQ(wprintf(L"%ls\n", ibuf), 2);
102 wchar_t ibuf[] = { 0xcf40, 0 }; local
105 ATF_REQUIRE_EQ(swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf), 2);
108 struct ibuf { struct
117 struct ibuf *i
[all...]
/freebsd-current/usr.sbin/traceroute/
H A Difaddrlist.c71 struct ifreq ibuf[(32 * 1024) / sizeof(struct ifreq)], ifr; local
72 #define MAX_IPADDR ((int)(sizeof(ibuf) / sizeof(ibuf[0])))
81 ifc.ifc_len = sizeof(ibuf);
82 ifc.ifc_buf = (caddr_t)ibuf;
89 sizeof(ibuf));
96 ifrp = ibuf;
97 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/freebsd-current/share/examples/sound/
H A Dbasic.c53 int8_t *ibuf = malloc(bytes); local
68 ret = read(config.fd, ibuf, bytes);
78 oss_split(&config, (sample_t *)ibuf, channels);
96 free(ibuf);
/freebsd-current/crypto/heimdal/appl/telnet/telnet/
H A Dnetwork.c49 void *obuf, *ibuf; local
53 if ((ibuf = malloc(netibufsize)) == NULL)
59 if (ring_init(&netiring, ibuf, netibufsize) != 1) {
/freebsd-current/usr.bin/mail/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
204 if ((ibuf = Fopen(tempname, "r")) == NULL) {
219 (void)Fclose(ibuf);
229 (void)Fclose(ibuf);
246 (void)Fclose(ibuf);
259 rewind(ibuf);
260 c = getc(ibuf);
265 c = getc(ibuf);
267 (void)Fclose(ibuf);
387 FILE *obuf, *ibuf, *readsta local
[all...]
H A Dlex.c61 FILE *ibuf; local
73 if ((ibuf = Fopen(name, "r")) == NULL) {
80 if (fstat(fileno(ibuf), &stb) < 0) {
82 (void)Fclose(ibuf);
87 (void)Fclose(ibuf);
123 mailsize = fsize(ibuf);
133 setptr(ibuf, 0);
140 mailsize = ftello(ibuf);
141 (void)Fclose(ibuf);
165 FILE *ibuf; local
[all...]
H A Dutil.c129 FILE *ibuf; local
135 ibuf = setinput(mp);
138 if (readline(ibuf, linebuf, LINESIZE) < 0)
141 if ((lc = gethfield(ibuf, linebuf, lc, &colon)) < 0)
497 FILE *ibuf; local
504 ibuf = setinput(mp);
506 if (readline(ibuf, linebuf, LINESIZE) < 0)
518 if (readline(ibuf, linebuf, LINESIZE) < 0)
/freebsd-current/crypto/openssl/crypto/bio/
H A Dbf_buff.c52 ctx->ibuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
53 if (ctx->ibuf == NULL) {
60 OPENSSL_free(ctx->ibuf);
78 OPENSSL_free(b->ibuf);
107 memcpy(out, &(ctx->ibuf[ctx->ibuf_off]), i);
143 i = BIO_read(b->next_bio, ctx->ibuf, ctx->ibuf_size);
266 p1 = ctx->ibuf;
295 OPENSSL_free(ctx->ibuf);
296 ctx->ibuf = p1;
300 memcpy(ctx->ibuf, pt
[all...]
H A Dbf_readbuff.c60 ctx->ibuf = OPENSSL_zalloc(DEFAULT_BUFFER_SIZE);
61 if (ctx->ibuf == NULL) {
79 OPENSSL_free(b->ibuf);
97 tmp = OPENSSL_realloc(ctx->ibuf, sz);
100 ctx->ibuf = tmp;
125 memcpy(out, &(ctx->ibuf[ctx->ibuf_off]), i);
141 i = BIO_read(b->next_bio, ctx->ibuf + ctx->ibuf_off, outl);
233 p = ctx->ibuf + ctx->ibuf_off;
271 p = ctx->ibuf + ctx->ibuf_off;
/freebsd-current/usr.sbin/ypldap/
H A Dypldap_dns.c113 imsg_init(&env.sc_iev->ibuf, pipe_ntp[1]);
115 event_set(&env.sc_iev->ev, env.sc_iev->ibuf.fd, env.sc_iev->events,
133 struct ibuf *buf;
136 struct imsgbuf *ibuf = &iev->ibuf; local
143 if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
149 if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
157 if ((n = imsg_get(ibuf, &imsg)) == -1)
173 buf = imsg_create(ibuf, IMSG_HOST_DNS,
187 imsg_close(ibuf, bu
[all...]
H A Dldapclient.c164 struct imsgbuf *ibuf = &iev->ibuf; local
170 if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
176 if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
184 if ((n = imsg_get(ibuf, &imsg)) == -1)
260 struct imsgbuf *ibuf = &iev->ibuf; local
266 if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
272 if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
280 if ((n = imsg_get(ibuf,
[all...]
/freebsd-current/tools/diag/prtblknos/
H A Dmain.c52 char ibuf[64]; local
65 sprintf(ibuf, "%jd", (intmax_t)sb.st_ino);
66 xargv[2] = ibuf;
/freebsd-current/contrib/nvi/common/
H A Dencoding.c56 looks_utf8(const char *ibuf, size_t nbytes) argument
58 const u_char *buf = (u_char *)ibuf;
117 looks_utf16(const char *ibuf, size_t nbytes) argument
119 const u_char *buf = (u_char *)ibuf;
177 decode_utf8(const char *ibuf) argument
179 const u_char *buf = (u_char *)ibuf;
209 decode_utf16(const char* ibuf, int bigend) argument
211 const u_char *buf = (u_char *)ibuf;
/freebsd-current/bin/ed/
H A Dio.c228 else if (n == 0 || ibuf[n - 1] != '\n') {
233 memcpy(cvbuf + l, ibuf, n);
259 REALLOC(ibuf, ibufsz, i + 2, ERR);
260 if (!(ibuf[i++] = c)) isbinary = 1;
264 ibuf[i] = '\0';
265 ibufp = ibuf;
280 ibuf[i] = '\0';
281 ibufp = ibuf;
/freebsd-current/sys/dev/xdma/controller/
H A Dpl330.c88 uint8_t *ibuf; member in struct:pl330_channel
389 chan->ibuf = (void *)kmem_alloc_contig(PAGE_SIZE * 8,
392 chan->ibuf_phys = vtophys(chan->ibuf);
479 uint8_t *ibuf; local
491 ibuf = chan->ibuf;
509 offs += emit_mov(&chan->ibuf[offs], R_CCR, reg);
518 offs += emit_mov(&ibuf[offs], R_SAR, src_addr_lo);
519 offs += emit_mov(&ibuf[offs], R_DAR, dst_addr_lo);
526 offs += emit_lp(&ibuf[off
[all...]

Completed in 143 milliseconds

123