Searched refs:wbuf (Results 1 - 25 of 63) sorted by relevance

123

/freebsd-current/tools/build/cross-build/
H A Dfgetwln_fallback.c37 wchar_t *wbuf; member in struct:filewbuf
73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t));
78 fb->wbuf = wp;
81 fb->wbuf[wused++] = wc;
88 return wused ? fb->wbuf : NULL;
/freebsd-current/contrib/kyua/utils/process/
H A Dfdstream_test.cpp55 systembuf wbuf(fds[1]);
56 std::ostream wend(&wbuf);
/freebsd-current/contrib/netbsd-tests/lib/libc/locale/
H A Dt_mbstowcs.c148 wchar_t wbuf[SIZE]; local
170 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1);
171 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1);
182 for (i = 0; wbuf[i] != 0; ++i) {
183 if (wbuf[i] == t->wchars[i] &&
184 wcwidth(wbuf[i]) == t->widths[i])
190 (void)printf(" got : 0x%04X (%d)\n", wbuf[i],
191 wcwidth(wbuf[i]));
195 if (wcswidth(wbuf, SIZE-1) != t->width) {
198 (void)printf(" got : %d\n", wcswidth(wbuf, SIZ
[all...]
H A Dt_mbrtowc.c205 wchar_t wbuf[SIZE]; local
210 (void)memset(wbuf, 0xFF, sizeof(wbuf));
212 rv = mbsrtowcs(wbuf, &src, SIZE, stp);
218 for (i = 0; wbuf[i] != 0; ++i) {
219 if (wbuf[i] == t->wchars[i])
224 (void)printf(" got : 0x%04X\n", wbuf[i]);
/freebsd-current/lib/libopenbsd/
H A Dimsg.c169 struct ibuf *wbuf; local
171 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL)
174 if (imsg_add(wbuf, data, datalen) == -1)
177 wbuf->fd = fd;
179 imsg_close(ibuf, wbuf);
188 struct ibuf *wbuf; local
194 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL)
198 if (imsg_add(wbuf, iov[i].iov_base, iov[i].iov_len) == -1)
201 wbuf->fd = fd;
203 imsg_close(ibuf, wbuf);
213 struct ibuf *wbuf; local
[all...]
/freebsd-current/contrib/bmake/
H A Drealpath.c72 char *p, wbuf[2][MAXPATHLEN], *fres; local
180 n = readlink(resolved, wbuf[idx], sizeof(wbuf[0]) - 1);
189 if (n + (len = strlen(q)) + 1 > sizeof(wbuf[0])) {
193 memcpy(&wbuf[idx][n], q, len + 1);
194 path = wbuf[idx];
/freebsd-current/contrib/tcsh/
H A Dsh.dol.c163 Dpack(struct Strbuf *wbuf) argument
190 Strbuf_append1(wbuf, (Char) c);
204 struct Strbuf *wbuf = Strbuf_alloc(); local
209 cleanup_push(wbuf, Strbuf_free);
216 cleanup_until(wbuf);
232 Strbuf_append1(wbuf, (Char) c);
251 if (wbuf->len != 0 && (wbuf->s[wbuf->len - 1] & TRIM) == '\\')
252 wbuf
417 static struct Strbuf wbuf; /* = Strbuf_INIT; */ local
[all...]
H A Dtc.who.c517 char *wbuf; local
556 wbuf = xmalloc(strlen(pb) + 1);
557 wb = wbuf;
568 return wbuf;
576 wbuf = xmalloc(strlen(pb) + 1);
577 wb = wbuf;
582 return wbuf;
590 wbuf = xmalloc(3);
591 wbuf[0] = '%';
592 wbuf[
[all...]
/freebsd-current/usr.bin/mail/
H A Dhead.c244 nextword(char *wp, char *wbuf) argument
249 *wbuf = '\0';
253 *wbuf++ = c;
256 *wbuf++ = c;
258 *wbuf++ = c;
263 *wbuf = '\0';
/freebsd-current/usr.sbin/fwcontrol/
H A Dfwdv.c102 struct iovec wbuf[NPACKET_R]; local
114 bzero(wbuf, sizeof(wbuf));
216 wbuf[vec].iov_base = pad;
217 wbuf[vec++].iov_len = npad;
219 writev(fd, wbuf, vec);
231 wbuf[vec].iov_base = (char *) dv;
232 wbuf[vec++].iov_len = DSIZE;
234 writev(fd, wbuf, vec);
243 writev(fd, wbuf, ve
260 struct iovec wbuf[TNBUF*2 + NEMPTY]; local
[all...]
/freebsd-current/stand/libsa/
H A Dtftp.c147 } __packed __aligned(4) wbuf;
152 if (len > sizeof(wbuf.space))
153 len = sizeof(wbuf.space);
155 wbuf.t.th_opcode = htons((u_short)ERROR);
156 wbuf.t.th_code = htons(errcode);
158 wtail = wbuf.t.th_msg;
163 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t);
172 } __packed __aligned(4) wbuf;
175 wbuf
[all...]
H A Drarp.c69 } wbuf; local
84 bzero((char*)&wbuf.data, sizeof(wbuf.data));
85 ap = &wbuf.data.arp;
96 rarpsend, &wbuf.data, sizeof(wbuf.data),
H A Darp.c79 } wbuf; local
97 bzero((char*)&wbuf.data, sizeof(wbuf.data));
98 ah = &wbuf.data.arp;
115 arpsend, &wbuf.data, sizeof(wbuf.data),
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_write.c66 char wbuf[3] = { 'x', 'y', 'z' }; local
70 ATF_REQUIRE_ERRNO(EBADF, write(-1, wbuf, sizeof(wbuf)) == -1);
77 ATF_REQUIRE_ERRNO(0, write(fd, wbuf, 3) == 3);
80 ATF_REQUIRE_ERRNO(EINVAL, write(fd, wbuf, SIZE_MAX) == -1);
91 ATF_REQUIRE(memcmp(rbuf, wbuf, 3) == 0);
/freebsd-current/contrib/diff/lib/
H A Derror.c150 wchar_t *wbuf = (len < ALLOCA_LIMIT local
151 ? alloca (len * sizeof *wbuf)
152 : len <= SIZE_MAX / sizeof *wbuf
153 ? malloc (len * sizeof *wbuf)
156 if (wbuf)
162 res = mbsrtowcs (wbuf, &tmp, len, &st);
163 wmessage = res == (size_t) -1 ? L"???" : wbuf;
168 free (wbuf);
/freebsd-current/contrib/nvi/vi/
H A Dv_at.c39 CHAR_T wbuf[20]; local
104 MEMCPY(wbuf, wp, wlen);
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dsha2.h60 uint8_t wbuf[64]; member in struct:__anon417
70 uint8_t wbuf[128]; member in struct:__anon418
/freebsd-current/sys/dev/smbus/
H A Dsmb.h49 char *wbuf; /* use wdata if NULL */ member in struct:smbcmd
H A Dsmbconf.h117 #define smbus_trans(bus,slave,cmd,op,wbuf,wcount,rbuf,rcount,actualp) \
119 wbuf, wcount, rbuf, rcount, actualp))
/freebsd-current/contrib/libevent/test/
H A Dregress_iocp.c211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable in typeref:struct:
229 evbuffer_commit_write_(wbuf, nbytes);
254 wbuf = evbuffer_overlapped_new_(data->pair[1]);
256 evbuffer_enable_locking(wbuf, NULL);
261 tt_assert(wbuf);
267 evbuffer_add(wbuf, junk, sizeof(junk));
278 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol));
290 evbuffer_free(wbuf);
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_iocp.c211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable in typeref:struct:
229 evbuffer_commit_write_(wbuf, nbytes);
254 wbuf = evbuffer_overlapped_new_(data->pair[1]);
256 evbuffer_enable_locking(wbuf, NULL);
261 tt_assert(wbuf);
267 evbuffer_add(wbuf, junk, sizeof(junk));
278 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol));
290 evbuffer_free(wbuf);
/freebsd-current/crypto/heimdal/kadmin/
H A Dadd-random-users.c49 char *wbuf = NULL, *wptr = NULL, *wend = NULL; local
65 wptr = wbuf = emalloc (WORDBUF_SIZE);
66 wend = wbuf + WORDBUF_SIZE;
/freebsd-current/contrib/arm-optimized-routines/string/test/
H A Dmemcpy.c49 static unsigned char wbuf[LEN + 2 * A]; variable
62 unsigned char *want = wbuf;
H A Dmemmove.c47 static unsigned char wbuf[LEN + 2 * A]; variable
60 unsigned char *want = wbuf;
100 unsigned char *want = wbuf;
103 unsigned char *w = wbuf + dalign;
/freebsd-current/bin/ln/
H A Dln.c219 char wbuf[PATH_MAX]; local
276 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s",
278 if (stat(wbuf, &sb) != 0)

Completed in 157 milliseconds

123