/freebsd-current/tools/build/cross-build/ |
H A D | fgetwln_fallback.c | 37 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 D | fdstream_test.cpp | 55 systembuf wbuf(fds[1]); 56 std::ostream wend(&wbuf);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/locale/ |
H A D | t_mbstowcs.c | 148 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 D | t_mbrtowc.c | 205 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 D | imsg.c | 169 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 D | realpath.c | 72 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 D | sh.dol.c | 163 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 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[ [all...] |
/freebsd-current/usr.bin/mail/ |
H A D | head.c | 244 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 D | fwdv.c | 102 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 D | tftp.c | 147 } __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 D | rarp.c | 69 } wbuf; local 84 bzero((char*)&wbuf.data, sizeof(wbuf.data)); 85 ap = &wbuf.data.arp; 96 rarpsend, &wbuf.data, sizeof(wbuf.data),
|
H A D | arp.c | 79 } 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 D | t_write.c | 66 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 D | error.c | 150 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 D | v_at.c | 39 CHAR_T wbuf[20]; local 104 MEMCPY(wbuf, wp, wlen);
|
/freebsd-current/sys/contrib/openzfs/include/sys/ |
H A D | sha2.h | 60 uint8_t wbuf[64]; member in struct:__anon417 70 uint8_t wbuf[128]; member in struct:__anon418
|
/freebsd-current/sys/dev/smbus/ |
H A D | smb.h | 49 char *wbuf; /* use wdata if NULL */ member in struct:smbcmd
|
H A D | smbconf.h | 117 #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 D | regress_iocp.c | 211 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 D | regress_iocp.c | 211 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 D | add-random-users.c | 49 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 D | memcpy.c | 49 static unsigned char wbuf[LEN + 2 * A]; variable 62 unsigned char *want = wbuf;
|
H A D | memmove.c | 47 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 D | ln.c | 219 char wbuf[PATH_MAX]; local 276 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s", 278 if (stat(wbuf, &sb) != 0)
|