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

123

/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/
H A D3.cc39 wchar_t wbuf[3]; local
40 wct.widen(strlit, strlit + 3, wbuf);
41 VERIFY( wbuf[0] == wct.widen(strlit[0]) );
42 VERIFY( wbuf[1] == wct.widen(strlit[1]) );
43 VERIFY( wbuf[2] == wct.widen(strlit[2]) );
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/
H A D3.cc48 wchar_t wbuf[3]; local
49 wct.widen(strlit, strlit + 3, wbuf);
50 VERIFY( wbuf[0] == wct.widen(strlit[0]) );
51 VERIFY( wbuf[1] == wct.widen(strlit[1]) );
52 VERIFY( wbuf[2] == wct.widen(strlit[2]) );
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/performance/22_locale/
H A Dwchar_t_out.cc36 wchar_t wbuf[1024]; local
39 wmemset(wbuf, L'a', 1024);
48 char* in = reinterpret_cast<char*>(wbuf);
68 cvt.out(state, wbuf, wbuf + 1024, from_next,
H A Dwchar_t_in.cc36 wchar_t wbuf[1024]; local
49 char* out = reinterpret_cast<char*>(wbuf);
69 wbuf, wbuf + 1024, to_next);
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/performance/22_locale/
H A Dwchar_t_out.cc45 wchar_t wbuf[1024]; local
48 wmemset(wbuf, L'a', 1024);
57 char* in = reinterpret_cast<char*>(wbuf);
77 cvt.out(state, wbuf, wbuf + 1024, from_next,
H A Dwchar_t_in.cc45 wchar_t wbuf[1024]; local
58 char* out = reinterpret_cast<char*>(wbuf);
78 wbuf, wbuf + 1024, to_next);
/netbsd-6-1-5-RELEASE/sys/ddb/
H A Ddb_proc.c120 char db_nbuf[MAXCOMLEN + 1], wbuf[MAXCOMLEN + 1]; local
195 sizeof(wbuf), (char *)wbuf);
197 wbuf[0] = '\0';
202 db_nbuf, wbuf);
216 sizeof(wbuf), (char *)wbuf);
218 wbuf[0] = '\0';
229 (p.p_nlwps != 1) ? "*" : wbuf);
236 sizeof(wbuf), (cha
271 char db_nbuf[MAXCOMLEN + 1], wbuf[MAXCOMLEN + 1]; local
[all...]
/netbsd-6-1-5-RELEASE/tests/lib/libc/locale/
H A Dt_mbstowcs.c146 wchar_t wbuf[SIZE]; local
161 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1);
162 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1);
173 for (i = 0; wbuf[i] != 0; ++i) {
174 if (wbuf[i] == t->wchars[i] &&
175 wcwidth(wbuf[i]) == t->widths[i])
181 (void)printf(" got : 0x%04X (%d)\n", wbuf[i],
182 wcwidth(wbuf[i]));
186 if (wcswidth(wbuf, SIZE-1) != t->width) {
189 (void)printf(" got : %d\n", wcswidth(wbuf, SIZ
[all...]
H A Dt_mbrtowc.c200 wchar_t wbuf[SIZE]; local
205 (void)memset(wbuf, 0xFF, sizeof(wbuf));
207 rv = mbsrtowcs(wbuf, &src, SIZE, stp);
213 for (i = 0; wbuf[i] != 0; ++i) {
214 if (wbuf[i] == t->wchars[i])
219 (void)printf(" got : 0x%04X\n", wbuf[i]);
/netbsd-6-1-5-RELEASE/sys/lib/libsa/
H A Dtftp.c159 } wbuf; local
165 wbuf.t.th_opcode = htons((u_short)RRQ);
166 wtail = wbuf.t.th_stuff;
180 res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *)&wbuf.t,
201 } wbuf; local
206 wbuf.t.th_opcode = htons((u_short)ACK);
207 wbuf.t.th_block = htons((u_short)h->currblock);
208 wtail = (char *)&wbuf.t.th_data;
214 res = sendrecv(h->iodesc, sendudp, &wbuf
234 } wbuf; local
[all...]
H A Drarp.c96 } wbuf; local
118 (void)memset(&wbuf.data, 0, sizeof(wbuf.data));
119 ap = &wbuf.data.arp;
129 rarpsend, &wbuf.data, sizeof(wbuf.data),
/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/compat/
H A Dimsg.c138 struct ibuf *wbuf; local
140 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL)
143 if (imsg_add(wbuf, data, datalen) == -1)
146 wbuf->fd = fd;
148 imsg_close(ibuf, wbuf);
157 struct ibuf *wbuf; local
163 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL)
167 if (imsg_add(wbuf, iov[i].iov_base, iov[i].iov_len) == -1)
170 wbuf->fd = fd;
172 imsg_close(ibuf, wbuf);
182 struct ibuf *wbuf; local
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/mail/
H A Dhead.c142 nextword(const char *wp, char *wbuf) argument
145 *wbuf = 0;
149 *wbuf++ = *wp;
152 *wbuf++ = *wp++;
154 *wbuf++ = *wp++;
157 *wbuf = '\0';
/netbsd-6-1-5-RELEASE/bin/csh/
H A Ddol.c165 Dpack(Char *wbuf, Char *wp) argument
169 i = MAXWLEN - (wp - wbuf);
177 Gcat(STRNULL, wbuf);
188 Gcat(STRNULL, wbuf);
196 Gcat(STRNULL, wbuf);
214 Char wbuf[BUFSIZE], *wp; local
221 wp = wbuf;
235 Gcat(STRNULL, wbuf);
286 if ((wp = Dpack(wbuf, wp)) == NULL)
289 i = MAXWLEN - (wp - wbuf);
388 Char wbuf[BUFSIZE]; local
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/apropos/
H A Dapropos.c168 char wbuf[MAXLINELEN + 1]; local
197 lowstr(buf, wbuf);
199 if ((strncmp(wbuf, machine, mlen) != 0) ||
200 strlen(wbuf) <= mlen || wbuf[mlen] != '/')
204 char *s = strchr(wbuf, '(');
212 if (match(wbuf, *p)) {
218 if (match(wbuf, *p))
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/
H A Daout2elf.c322 char *p, *q, wbuf[MAXPATHLEN]; local
374 n = readlink(p, wbuf, MAXPATHLEN - 1);
377 wbuf[n] = '\0';
378 if (wbuf[0] == '/')
380 target_prefix(), wbuf);
382 strlcpy(resolved, wbuf, MAXPATHLEN);
396 if (strlcpy(wbuf, p, sizeof(wbuf)) >= sizeof(wbuf)) {
417 if (*wbuf) {
[all...]
/netbsd-6-1-5-RELEASE/sys/dev/i2c/
H A Dddc.c94 uint8_t wbuf[2]; local
99 wbuf[0] = DDC_EDID_START; /* start address */
101 if (iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1, dest,
/netbsd-6-1-5-RELEASE/usr.sbin/fwctl/
H A Dfwdv.c103 struct iovec wbuf[NPACKET_R]; local
115 memset(wbuf, 0, sizeof(wbuf));
225 wbuf[vec].iov_base = pad;
226 wbuf[vec++].iov_len = npad;
228 writev(fd, wbuf, vec);
240 wbuf[vec].iov_base = (char *) dv;
241 wbuf[vec++].iov_len = DSIZE;
243 writev(fd, wbuf, vec);
252 writev(fd, wbuf, ve
269 struct iovec wbuf[TNBUF*2 + NEMPTY]; local
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/ssl/
H A Ds2_lib.c332 /* wbuf needs one byte more because when using two-byte headers,
334 if ((s2->wbuf=OPENSSL_malloc(
343 if (s2->wbuf != NULL) OPENSSL_free(s2->wbuf);
359 if (s2->wbuf != NULL) OPENSSL_free(s2->wbuf);
368 unsigned char *rbuf,*wbuf; local
373 wbuf=s2->wbuf;
378 s2->wbuf
[all...]
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dgetcwd.c76 char *p, wbuf[2][MAXPATHLEN], *fres; local
183 n = readlink(resolved, wbuf[idx], sizeof(wbuf[0]) - 1);
192 if (n + (len = strlen(q)) + 1 > sizeof(wbuf[0])) {
196 memcpy(&wbuf[idx][n], q, len + 1);
197 path = wbuf[idx];
/netbsd-6-1-5-RELEASE/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);
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/
H A Derror.c144 wchar_t *wbuf = (len < ALLOCA_LIMIT local
145 ? alloca (len * sizeof *wbuf)
146 : len <= SIZE_MAX / sizeof *wbuf
147 ? malloc (len * sizeof *wbuf)
150 if (wbuf)
156 res = mbsrtowcs (wbuf, &tmp, len, &st);
157 wmessage = res == (size_t) -1 ? L"???" : wbuf;
162 free (wbuf);
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/
H A Derror.c144 wchar_t *wbuf = (len < ALLOCA_LIMIT local
145 ? alloca (len * sizeof *wbuf)
146 : len <= SIZE_MAX / sizeof *wbuf
147 ? malloc (len * sizeof *wbuf)
150 if (wbuf)
156 res = mbsrtowcs (wbuf, &tmp, len, &st);
157 wmessage = res == (size_t) -1 ? L"???" : wbuf;
162 free (wbuf);
/netbsd-6-1-5-RELEASE/usr.bin/whatis/
H A Dwhatis.c153 char buf[MAXLINELEN + 1], wbuf[MAXLINELEN + 1]; local
172 dashtrunc(buf, wbuf);
174 if (match(wbuf, *p)) {
180 if (match(wbuf, *p))
/netbsd-6-1-5-RELEASE/dist/nvi/vi/
H A Dv_at.c45 CHAR_T wbuf[20]; local
112 MEMCPYW(wbuf, wp, wlen);

Completed in 372 milliseconds

123