/freebsd/contrib/netbsd-tests/lib/libc/locale/ |
H A D | t_mbstowcs.c | 148 wchar_t wbuf[SIZE]; in ATF_TC_BODY() local 170 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1); in ATF_TC_BODY() 171 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1); in ATF_TC_BODY() 182 for (i = 0; wbuf[i] != 0; ++i) { in ATF_TC_BODY() 183 if (wbuf[i] == t->wchars[i] && in ATF_TC_BODY() 184 wcwidth(wbuf[i]) == t->widths[i]) in ATF_TC_BODY() 190 (void)printf(" got : 0x%04X (%d)\n", wbuf[i], in ATF_TC_BODY() 191 wcwidth(wbuf[i])); in ATF_TC_BODY() 195 if (wcswidth(wbuf, SIZE-1) != t->width) { in ATF_TC_BODY() 198 (void)printf(" got : %d\n", wcswidth(wbuf, SIZE-1)); in ATF_TC_BODY()
|
H A D | t_mbrtowc.c | 205 wchar_t wbuf[SIZE]; in h_ctype2() local 210 (void)memset(wbuf, 0xFF, sizeof(wbuf)); in h_ctype2() 212 rv = mbsrtowcs(wbuf, &src, SIZE, stp); in h_ctype2() 218 for (i = 0; wbuf[i] != 0; ++i) { in h_ctype2() 219 if (wbuf[i] == t->wchars[i]) in h_ctype2() 224 (void)printf(" got : 0x%04X\n", wbuf[i]); in h_ctype2()
|
/freebsd/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 102 struct iovec wbuf[NPACKET_R]; in dvrecv() local 114 bzero(wbuf, sizeof(wbuf)); in dvrecv() 216 wbuf[vec].iov_base = pad; in dvrecv() 217 wbuf[vec++].iov_len = npad; in dvrecv() 219 writev(fd, wbuf, vec); in dvrecv() 231 wbuf[vec].iov_base = (char *) dv; in dvrecv() 232 wbuf[vec++].iov_len = DSIZE; in dvrecv() 234 writev(fd, wbuf, vec); in dvrecv() 243 writev(fd, wbuf, vec); in dvrecv() 260 struct iovec wbuf[TNBUF*2 + NEMPTY]; in dvsend() local [all …]
|
/freebsd/stand/libsa/ |
H A D | tftp.c | 147 } __packed __aligned(4) wbuf; in tftp_senderr() 152 if (len > sizeof(wbuf.space)) in tftp_senderr() 153 len = sizeof(wbuf.space); in tftp_senderr() 155 wbuf.t.th_opcode = htons((u_short)ERROR); in tftp_senderr() 156 wbuf.t.th_code = htons(errcode); in tftp_senderr() 158 wtail = wbuf.t.th_msg; in tftp_senderr() 163 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_senderr() 172 } __packed __aligned(4) wbuf; in tftp_sendack() 175 wbuf.t.th_opcode = htons((u_short)ACK); in tftp_sendack() 176 wtail = (char *)&wbuf.t.th_block; in tftp_sendack() [all …]
|
H A D | rarp.c | 69 } wbuf; in rarp_getipaddress() local 84 bzero((char*)&wbuf.data, sizeof(wbuf.data)); in rarp_getipaddress() 85 ap = &wbuf.data.arp; in rarp_getipaddress() 96 rarpsend, &wbuf.data, sizeof(wbuf.data), in rarp_getipaddress()
|
H A D | arp.c | 79 } wbuf; in arpwhohas() local 97 bzero((char*)&wbuf.data, sizeof(wbuf.data)); in arpwhohas() 98 ah = &wbuf.data.arp; in arpwhohas() 115 arpsend, &wbuf.data, sizeof(wbuf.data), in arpwhohas()
|
/freebsd/lib/libopenbsd/ |
H A D | imsg.c | 169 struct ibuf *wbuf; in imsg_compose() local 171 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL) in imsg_compose() 174 if (imsg_add(wbuf, data, datalen) == -1) in imsg_compose() 177 wbuf->fd = fd; in imsg_compose() 179 imsg_close(ibuf, wbuf); in imsg_compose() 188 struct ibuf *wbuf; in imsg_composev() local 194 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL) in imsg_composev() 198 if (imsg_add(wbuf, iov[i].iov_base, iov[i].iov_len) == -1) in imsg_composev() 201 wbuf->fd = fd; in imsg_composev() 203 imsg_close(ibuf, wbuf); in imsg_composev() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.dol.c | 163 Dpack(struct Strbuf *wbuf) in Dpack() argument 190 Strbuf_append1(wbuf, (Char) c); in Dpack() 204 struct Strbuf *wbuf = Strbuf_alloc(); in Dword() local 209 cleanup_push(wbuf, Strbuf_free); in Dword() 216 cleanup_until(wbuf); in Dword() 232 Strbuf_append1(wbuf, (Char) c); in Dword() 251 if (wbuf->len != 0 && (wbuf->s[wbuf->len - 1] & TRIM) == '\\') in Dword() 252 wbuf->len--; in Dword() 261 Strbuf_append1(wbuf, c == '`' ? '`' : c | QUOTE); in Dword() 266 Strbuf_append1(wbuf, c | QUOTE); in Dword() [all …]
|
H A D | tc.who.c | 517 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[1] = (char) c; [all …]
|
H A D | sh.lex.c | 296 struct Strbuf wbuf = Strbuf_INIT; in word() local 302 cleanup_push(&wbuf, Strbuf_cleanup); in word() 315 Strbuf_append1(&wbuf, c); in word() 318 Strbuf_append1(&wbuf, c1); in word() 346 Strbuf_append1(&wbuf, c); in word() 357 Strbuf_append1(&wbuf, '\\'); in word() 416 Strbuf_append1(&wbuf, '\\'); in word() 428 Strbuf_append1(&wbuf, c); in word() 432 cleanup_ignore(&wbuf); in word() 433 cleanup_until(&wbuf); in word() [all …]
|
/freebsd/tools/build/cross-build/ |
H A D | fgetwln_fallback.c | 37 wchar_t *wbuf; member 73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); in fgetwln() 78 fb->wbuf = wp; in fgetwln() 81 fb->wbuf[wused++] = wc; in fgetwln() 88 return wused ? fb->wbuf : NULL; in fgetwln()
|
/freebsd/contrib/bmake/ |
H A D | realpath.c | 72 char *p, wbuf[2][MAXPATHLEN], *fres; in realpath() local 180 n = readlink(resolved, wbuf[idx], sizeof(wbuf[0]) - 1); in realpath() 189 if (n + (len = strlen(q)) + 1 > sizeof(wbuf[0])) { in realpath() 193 memcpy(&wbuf[idx][n], q, len + 1); in realpath() 194 path = wbuf[idx]; in realpath()
|
/freebsd/usr.bin/mail/ |
H A D | head.c | 244 nextword(char *wp, char *wbuf) in nextword() argument 249 *wbuf = '\0'; in nextword() 253 *wbuf++ = c; in nextword() 256 *wbuf++ = c; in nextword() 258 *wbuf++ = c; in nextword() 263 *wbuf = '\0'; in nextword()
|
/freebsd/contrib/diff/lib/ |
H A D | error.c | 150 wchar_t *wbuf = (len < ALLOCA_LIMIT in error_tail() local 151 ? alloca (len * sizeof *wbuf) in error_tail() 152 : len <= SIZE_MAX / sizeof *wbuf in error_tail() 153 ? malloc (len * sizeof *wbuf) in error_tail() 156 if (wbuf) in error_tail() 162 res = mbsrtowcs (wbuf, &tmp, len, &st); in error_tail() 163 wmessage = res == (size_t) -1 ? L"???" : wbuf; in error_tail() 168 free (wbuf); in error_tail()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_write.c | 66 char wbuf[3] = { 'x', 'y', 'z' }; in ATF_TC_BODY() local 70 ATF_REQUIRE_ERRNO(EBADF, write(-1, wbuf, sizeof(wbuf)) == -1); in ATF_TC_BODY() 77 ATF_REQUIRE_ERRNO(0, write(fd, wbuf, 3) == 3); in ATF_TC_BODY() 80 ATF_REQUIRE_ERRNO(EINVAL, write(fd, wbuf, SIZE_MAX) == -1); in ATF_TC_BODY() 91 ATF_REQUIRE(memcmp(rbuf, wbuf, 3) == 0); in ATF_TC_BODY()
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_iocp.c | 211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable 229 evbuffer_commit_write_(wbuf, nbytes); in write_complete() 254 wbuf = evbuffer_overlapped_new_(data->pair[1]); in test_iocp_evbuffer() 256 evbuffer_enable_locking(wbuf, NULL); in test_iocp_evbuffer() 261 tt_assert(wbuf); in test_iocp_evbuffer() 267 evbuffer_add(wbuf, junk, sizeof(junk)); in test_iocp_evbuffer() 278 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol)); in test_iocp_evbuffer() 290 evbuffer_free(wbuf); in test_iocp_evbuffer()
|
/freebsd/contrib/libevent/test/ |
H A D | regress_iocp.c | 211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable 229 evbuffer_commit_write_(wbuf, nbytes); in write_complete() 254 wbuf = evbuffer_overlapped_new_(data->pair[1]); in test_iocp_evbuffer() 256 evbuffer_enable_locking(wbuf, NULL); in test_iocp_evbuffer() 261 tt_assert(wbuf); in test_iocp_evbuffer() 267 evbuffer_add(wbuf, junk, sizeof(junk)); in test_iocp_evbuffer() 278 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol)); in test_iocp_evbuffer() 290 evbuffer_free(wbuf); in test_iocp_evbuffer()
|
/freebsd/contrib/arm-optimized-routines/string/test/ |
H A D | memmove.c | 47 static unsigned char wbuf[LEN + 2 * A]; variable 60 unsigned char *want = wbuf; in test() 100 unsigned char *want = wbuf; in test_overlap() 103 unsigned char *w = wbuf + dalign; in test_overlap()
|
/freebsd/contrib/kyua/utils/process/ |
H A D | fdstream_test.cpp | 55 systembuf wbuf(fds[1]); in ATF_TEST_CASE_BODY() local 56 std::ostream wend(&wbuf); in ATF_TEST_CASE_BODY()
|
/freebsd/bin/ln/ |
H A D | ln.c | 219 char wbuf[PATH_MAX]; in linkit() local 276 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s", in linkit() 278 if (stat(wbuf, &sb) != 0) in linkit()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | sha2.h | 60 uint8_t wbuf[64]; member 70 uint8_t wbuf[128]; member
|
/freebsd/crypto/heimdal/kadmin/ |
H A D | add-random-users.c | 49 char *wbuf = NULL, *wptr = NULL, *wend = NULL; in read_words() local 65 wptr = wbuf = emalloc (WORDBUF_SIZE); in read_words() 66 wend = wbuf + WORDBUF_SIZE; in read_words()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | default_permissions.cc | 1574 char wbuf[1] = {'x'}; in TEST_F() local 1580 expect_write(ino, 0, sizeof(wbuf), sizeof(wbuf), 0, 0, wbuf); in TEST_F() 1581 expect_chmod(ino, newmode, sizeof(wbuf)); in TEST_F() 1585 ASSERT_EQ(1, write(fd, wbuf, sizeof(wbuf))) << strerror(errno); in TEST_F() 1600 char wbuf[1] = {'x'}; in TEST_F() local 1606 expect_write(ino, 0, sizeof(wbuf), sizeof(wbuf), 0, 0, wbuf); in TEST_F() 1607 expect_chmod(ino, newmode, sizeof(wbuf)); in TEST_F() 1611 ASSERT_EQ(1, write(fd, wbuf, sizeof(wbuf))) << strerror(errno); in TEST_F() 1630 char wbuf[1] = {'x'}; in TEST_F() local 1636 expect_write(ino, 0, sizeof(wbuf), sizeof(wbuf), 0, 0, wbuf); in TEST_F() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_at.c | 39 CHAR_T wbuf[20]; in v_at() local 104 MEMCPY(wbuf, wp, wlen); in v_at()
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_copy.c | 59 char wbuf[PATH_MAX]; in compute_loop_max() 66 cygwin_conv_to_full_win32_path(pbuf, wbuf); in compute_loop_max() 67 wcwdlen = strlen(wbuf); in compute_loop_max()
|