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

12345

/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/compat/
H A Dimsg.c34 imsg_init(struct imsgbuf *ibuf, int fd) argument
36 msgbuf_init(&ibuf->w);
37 bzero(&ibuf->r, sizeof(ibuf->r));
38 ibuf->fd = fd;
39 ibuf->w.fd = fd;
40 ibuf->pid = getpid();
41 TAILQ_INIT(&ibuf->fds);
45 imsg_read(struct imsgbuf *ibuf) argument
60 iov.iov_base = ibuf
95 imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) argument
135 imsg_compose(struct imsgbuf *ibuf, u_int32_t type, u_int32_t peerid, pid_t pid, int fd, void *data, u_int16_t datalen) argument
154 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
179 imsg_create(struct imsgbuf *ibuf, u_int32_t type, u_int32_t peerid, pid_t pid, u_int16_t datalen) argument
217 imsg_close(struct imsgbuf *ibuf, struct ibuf *msg) argument
239 imsg_get_fd(struct imsgbuf *ibuf) argument
255 imsg_flush(struct imsgbuf *ibuf) argument
264 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.c31 int ibuf_realloc(struct ibuf *, size_t);
32 void ibuf_enqueue(struct msgbuf *, struct ibuf *);
33 void ibuf_dequeue(struct msgbuf *, struct ibuf *);
35 struct ibuf *
38 struct ibuf *buf;
40 if ((buf = calloc(1, sizeof(struct ibuf))) == NULL)
52 struct ibuf *
55 struct ibuf *buf;
70 ibuf_realloc(struct ibuf *buf, size_t len)
90 ibuf_add(struct ibuf *bu
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/tcpdchk/
H A Dpercent_m.c30 char *percent_m(obuf, ibuf)
32 const char *ibuf;
35 const char *cp = ibuf;
/netbsd-6-1-5-RELEASE/lib/libc/gdtoa/test/
H A DdItest.c36 static char ibuf[2048]; variable
63 while( (s = fgets(ibuf, sizeof(ibuf), stdin)) !=0) {
67 printf("\nInput: %s", ibuf);
68 i = strtodI(ibuf, &se, dd);
69 printf(cfmt, "strtodI", (int)(se-ibuf), i);
73 j = strtoId(ibuf, &se1, &dd1, &dd2);
76 printf(cfmt, "**** strtoId", (int)(se-ibuf), j);
H A Ddtest.c58 static char ibuf[2048], obuf[1024]; variable
71 while( (s = fgets(ibuf, sizeof(ibuf), stdin)) !=0) {
92 printf("\nInput: %s", ibuf);
96 printf("\nInput: %s", ibuf);
97 i = strtord(ibuf, &se, r, &u.f);
99 if ((u.f != strtod(ibuf, &se1) || se1 != se))
101 i1 = strtopd(ibuf, &se, &f1);
106 (int)(se-ibuf), i, u.f, U u.L[_0], U u.L[_1]);
113 printf("strtoId returns %d,", strtoId(ibuf,
[all...]
H A Dftest.c57 static char ibuf[2048], obuf[1024]; variable
69 while( (s = fgets(ibuf, sizeof(ibuf), stdin)) !=0) {
88 printf("\nInput: %s", ibuf);
93 printf("\nInput: %s", ibuf);
94 i = strtorf(ibuf, &se, r, &u.f);
96 if (u.f != (i1 = strtopf(ibuf, &se1, &f1), f1)
106 if (u.f != strtof(ibuf, &se1) || se != se1)
110 (int)(se-ibuf), u.f, U u.L[0]);
117 printf("strtoIf returns %d,", strtoIf(ibuf,
[all...]
H A DQtest.c59 static char ibuf[2048], obuf[2048]; variable
92 while( (s = fgets(ibuf, sizeof(ibuf), stdin)) !=0) {
120 printf("\nInput: %s", ibuf);
126 printf("\nInput: %s", ibuf);
127 i = strtorQ(ibuf, &se, r, u.bits);
128 if (r == 1 && (strtopQ(ibuf,&se1,v[0].bits) != i
132 (int)(se-ibuf), i);
144 strtoIQ(ibuf, &se, v[0].bits, v[1].bits));
145 printf(" consuming %d bytes.\n", (int)(se-ibuf));
[all...]
H A Dddtest.c58 static char ibuf[2048], obuf[1024]; variable
86 while( (s = fgets(ibuf, sizeof(ibuf), stdin)) !=0) {
113 printf("\nInput: %s", ibuf);
118 printf("\nInput: %s", ibuf);
123 i = strtordd(ibuf, &se, r, u.dd);
125 j = strtopdd(ibuf, &se1, ddI);
131 (int)(se-ibuf), i);
145 printf("strtoIdd returns %d,", strtoIdd(ibuf, &se, ddI,&ddI[2]));
146 printf(" consuming %d bytes.\n", (int)(se-ibuf));
[all...]
H A DxLtest.c59 static char ibuf[2048], obuf[2048]; variable
86 while((s = fgets(ibuf, sizeof(ibuf), stdin))) {
111 printf("\nInput: %s", ibuf);
117 printf("\nInput: %s", ibuf);
118 i = strtorxL(ibuf, &se, r, u.bits);
119 if (r == 1 && (i != strtopxL(ibuf, &se1, v[0].bits) || se1 != se
123 (int)(se-ibuf), i);
135 strtoIxL(ibuf, &se, v[0].bits, v[1].bits));
136 printf(" consuming %d bytes.\n", (int)(se-ibuf));
[all...]
H A Dxtest.c59 static char ibuf[2048], obuf[2048]; variable
88 while((s = fgets(ibuf, sizeof(ibuf), stdin))) {
108 printf("\nInput: %s", ibuf);
114 printf("\nInput: %s", ibuf);
115 i = strtorx(ibuf, &se, r, u.bits);
116 if (r == 1 && (i != strtopx(ibuf, &se1, v[0].bits) || se1 != se
120 (int)(se-ibuf), i);
133 strtoIx(ibuf, &se, v[0].bits, v[1].bits));
134 printf(" consuming %d bytes.\n", (int)(se-ibuf));
[all...]
/netbsd-6-1-5-RELEASE/dist/dhcp/omapip/
H A Dconvert.c46 u_int32_t ibuf; local
48 memcpy (&ibuf, buf, sizeof (u_int32_t));
49 return ntohl (ibuf);
55 int32_t ibuf; local
57 memcpy (&ibuf, buf, sizeof (int32_t));
58 return ntohl (ibuf);
64 unsigned short ibuf; local
66 memcpy (&ibuf, buf, sizeof (u_int16_t));
67 return ntohs (ibuf);
73 short ibuf; local
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/gzip/
H A Dunxz.c55 uint8_t ibuf[BUFSIZ]; local
61 strm.next_in = ibuf;
62 memcpy(ibuf, pre, prelen);
63 strm.avail_in = read(i, ibuf + prelen, sizeof(ibuf) - prelen);
83 strm.next_in = ibuf;
84 strm.avail_in = read(i, ibuf, sizeof(ibuf));
117 if (strm.avail_in != 0 || read(i, ibuf, 1))
/netbsd-6-1-5-RELEASE/usr.bin/bdes/
H A Dbdes.c405 cvtkey(char *obuf, char *ibuf) argument
415 (void)strncpy(obuf, ibuf, 8);
421 if (ibuf[0] == '0' && (ibuf[1] == 'x' || ibuf[1] == 'X')) {
422 ibuf = &ibuf[2];
426 for (i = 0; ibuf[i] && i < 16; i++)
427 if ((nbuf[i] = tobinhex(ibuf[i], 16)) == -1)
441 if (ibuf[
629 Desbuf ibuf; /* temp buffer for initialization vector */ local
713 char ibuf[8]; /* input buffer */ local
756 char ibuf[8]; /* input buffer */ local
802 char ibuf[8]; /* input buffer */ local
849 char ibuf[8]; /* input buffer */ local
897 char ibuf[8]; /* input buffer */ local
943 char ibuf[8]; /* input buffer */ local
991 char ibuf[8]; /* input buffer */ local
[all...]
/netbsd-6-1-5-RELEASE/sbin/clri/
H A Dclri.c79 void *ibuf; local
155 ibuf = malloc(bsize);
156 if (ibuf == NULL) {
174 if ((size_t)read(fd, ibuf, bsize) != bsize)
179 ip2 = &((struct ufs2_dinode *)ibuf)
186 ip1 = &((struct ufs1_dinode *)ibuf)
197 if ((size_t)write(fd, ibuf, bsize) != bsize)
201 free(ibuf);
/netbsd-6-1-5-RELEASE/usr.bin/mail/
H A Dquit.c141 FILE *ibuf; local
174 ibuf = NULL;
186 if ((ibuf = Fopen(mailname, "r")) == NULL) {
193 (void)fseek(ibuf, (long)mailsize, 0);
194 while ((c = getc(ibuf)) != EOF)
200 (void)Fclose(ibuf);
205 (void)Fclose(ibuf);
207 if ((ibuf = Fopen(tempname, "r")) == NULL) {
234 gotcha = (c == 0 && ibuf == NULL);
235 if (ibuf !
269 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
[all...]
H A Dmime_header.c155 decode_word(const char **ibuf, char **obuf, char *oend, const char *to_cs) argument
165 p = *ibuf;
183 if (iend > *ibuf + 75)
227 *ibuf = iend;
339 decode_comment(char **obuf, char *oend, const char **ibuf, const char *iend, const char *charset) argument
345 p = *ibuf;
399 *ibuf = p;
412 decode_quoted_string(char **obuf, char *oend, const char **ibuf, const char *iend) argument
419 p = *ibuf;
436 *ibuf
448 decode_domain_literal(char **obuf, char *oend, const char **ibuf, const char *iend) argument
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dexample_evp_cipher.c72 void *ibuf, *obuf; local
113 ibuf = malloc(block_size);
124 while ((ilen = fread(ibuf, 1, block_size, in)) > 0) {
126 ret = EVP_CipherUpdate(&ctx, obuf, &olen, ibuf, ilen);
/netbsd-6-1-5-RELEASE/lib/libbluetooth/
H A Dsdp-int.h35 uint8_t *ibuf; /* incoming buffer */ member in struct:sdp_session
H A Dsdp_session.c90 ss->ibuf = malloc((size_t)(ss->imtu));
91 if (ss->ibuf == NULL)
130 ss->ibuf = malloc((size_t)(ss->imtu));
131 if (ss->ibuf == NULL)
154 if (ss->ibuf != NULL)
155 free(ss->ibuf);
221 iov[1].iov_base = ss->ibuf;
244 errno = _sdp_errno(be16dec(ss->ibuf));
/netbsd-6-1-5-RELEASE/dist/nvi/ipc/
H A Dip_trans.c38 static char ibuf[2048]; /* Input buffer. */ variable
55 switch (nr = read(fd, ibuf + ibuf_len, sizeof(ibuf) - ibuf_len)) {
66 (void)vi_translate(ipviwin, ibuf, &ibuf_len, NULL);
96 read(ipviwin->ifd, ibuf + ibuf_len, sizeof(ibuf) - ibuf_len)) {
107 (void)vi_translate(ipviwin, ibuf, &ibuf_len, ipbp);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/bio/
H A Dbf_buff.c99 ctx->ibuf=(char *)OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
100 if (ctx->ibuf == NULL) { OPENSSL_free(ctx); return(0); }
102 if (ctx->obuf == NULL) { OPENSSL_free(ctx->ibuf); OPENSSL_free(ctx); return(0); }
122 if (b->ibuf != NULL) OPENSSL_free(b->ibuf);
149 memcpy(out,&(ctx->ibuf[ctx->ibuf_off]),i);
183 i=BIO_read(b->next_bio,ctx->ibuf,ctx->ibuf_size);
296 p1=ctx->ibuf;
323 if (ctx->ibuf != NULL) OPENSSL_free(ctx->ibuf);
[all...]
/netbsd-6-1-5-RELEASE/dist/nvi/ip/
H A Dip_read.c157 memmove(ipp->ibuf, ipp->ibuf + ipp->iskip, ipp->iblen);
224 bp = ipp->ibuf + ipp->iblen;
225 blen = sizeof(ipp->ibuf) - ipp->iblen;
300 if (ipp->ibuf[0] == CODE_OOB ||
301 ipp->ibuf[0] >= VI_EVENT_SUP)
308 fmt = vipfuns[ipp->ibuf[0]-1].format;
309 evp->e_event = vipfuns[ipp->ibuf[0]-1].e_event;
310 evp->e_ipcom = ipp->ibuf[0];
318 memcpy(&val, ipp->ibuf
[all...]
/netbsd-6-1-5-RELEASE/bin/ed/
H A Dio.c241 else if (n == 0 || ibuf[n - 1] != '\n') {
246 memcpy(cvbuf + l, ibuf, n);
272 REALLOC(ibuf, ibufsz, i + 2, ERR);
273 if (!(ibuf[i++] = c)) isbinary = 1;
277 ibuf[i] = '\0';
278 ibufp = ibuf;
293 ibuf[i] = '\0';
294 ibufp = ibuf;
/netbsd-6-1-5-RELEASE/usr.sbin/sdpd/
H A Drecord.c57 seq.next = srv->ibuf;
58 seq.end = srv->ibuf + srv->pdu.len;
111 seq.next = srv->ibuf;
112 seq.end = srv->ibuf + srv->pdu.len;
182 db_select_handle(srv, fd, be32dec(srv->ibuf));

Completed in 249 milliseconds

12345