/netbsd-current/sys/ddb/ |
H A D | db_proc.c | 132 char db_nbuf[MAXCOMLEN + 1], wbuf[MAXCOMLEN + 1]; local 208 sizeof(wbuf), wbuf); 209 wbuf[MAXCOMLEN] = '\0'; 211 wbuf[0] = '\0'; 216 db_nbuf, wbuf); 230 sizeof(wbuf), wbuf); 231 wbuf[MAXCOMLEN] = '\0'; 233 wbuf[ 289 char db_nbuf[MAXCOMLEN + 1], wbuf[MAXCOMLEN + 1]; local [all...] |
/netbsd-current/external/bsd/kyua-cli/dist/utils/process/ |
H A D | fdstream_test.cpp | 55 systembuf wbuf(fds[1]); 56 std::ostream wend(&wbuf);
|
/netbsd-current/tests/lib/libc/locale/ |
H A D | t_mbstowcs.c | 163 wchar_t wbuf[SIZE]; local 178 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1); 179 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1); 190 for (i = 0; wbuf[i] != 0; ++i) { 191 if (wbuf[i] == t->wchars[i] && 192 wcwidth(wbuf[i]) == t->widths[i]) 198 (void)printf(" got : 0x%04X (%d)\n", wbuf[i], 199 wcwidth(wbuf[i])); 203 if (wcswidth(wbuf, SIZE-1) != t->width) { 206 (void)printf(" got : %d\n", wcswidth(wbuf, SIZ [all...] |
H A D | t_mbrtowc.c | 216 wchar_t wbuf[SIZE]; local 221 (void)memset(wbuf, 0xFF, sizeof(wbuf)); 223 rv = mbsrtowcs(wbuf, &src, SIZE, stp); 229 for (i = 0; wbuf[i] != 0; ++i) { 230 if (wbuf[i] == t->wchars[i]) 235 (void)printf(" got : 0x%04X\n", wbuf[i]);
|
/netbsd-current/sys/lib/libsa/ |
H A D | tftp.c | 159 } 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 D | rarp.c | 96 } wbuf; local 118 (void)memset(&wbuf.data, 0, sizeof(wbuf.data)); 119 ap = &wbuf.data.arp; 129 rarpsend, &wbuf.data, sizeof(wbuf.data),
|
H A D | arp.c | 110 } wbuf; local 135 (void)memset(&wbuf.data, 0, sizeof(wbuf.data)); 136 ah = &wbuf.data.arp; 151 arpsend, &wbuf.data, sizeof(wbuf.data),
|
/netbsd-current/external/bsd/tmux/dist/compat/ |
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...] |
/netbsd-current/usr.bin/mail/ |
H A D | head.c | 183 nextword(const char *wp, char *wbuf) argument 186 *wbuf = 0; 190 *wbuf++ = *wp; 193 *wbuf++ = *wp++; 195 *wbuf++ = *wp++; 198 *wbuf = '\0';
|
/netbsd-current/usr.bin/apropos/ |
H A D | apropos.c | 168 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-current/bin/csh/ |
H A D | dol.c | 166 Dpack(Char *wbuf, Char *wp) argument 171 i = MAXWLEN - (wp - wbuf); 179 Gcat(STRNULL, wbuf); 190 Gcat(STRNULL, wbuf); 198 Gcat(STRNULL, wbuf); 216 Char wbuf[BUFSIZE], *wp; local 224 wp = wbuf; 238 Gcat(STRNULL, wbuf); 289 if ((wp = Dpack(wbuf, wp)) == NULL) 292 i = MAXWLEN - (wp - wbuf); 391 Char wbuf[BUFSIZE]; local [all...] |
/netbsd-current/usr.sbin/sysinst/ |
H A D | aout2elf.c | 320 char *p, *q, wbuf[MAXPATHLEN]; local 372 n = readlink(p, wbuf, MAXPATHLEN - 1); 375 wbuf[n] = '\0'; 376 if (wbuf[0] == '/') 378 target_prefix(), wbuf); 380 strlcpy(resolved, wbuf, MAXPATHLEN); 394 if (strlcpy(wbuf, p, sizeof(wbuf)) >= sizeof(wbuf)) { 415 if (*wbuf) { [all...] |
/netbsd-current/usr.sbin/fwctl/ |
H A D | fwdv.c | 103 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-current/lib/libc/gen/ |
H A D | getcwd.c | 76 char *p, wbuf[2][MAXPATHLEN], *fres; local 184 n = readlink(resolved, wbuf[idx], sizeof(wbuf[0]) - 1); 193 if (n + (len = strlen(q)) + 1 > sizeof(wbuf[0])) { 197 memcpy(&wbuf[idx][n], q, len + 1); 198 path = wbuf[idx];
|
/netbsd-current/sys/modules/examples/pollpal/ |
H A D | cmd_pollpal.c | 71 static const char wbuf[] = "abcdefghijklmnopqrstuvwxyz"; variable 110 ret = write(fd, wbuf, sizeof(wbuf) - 1);
|
/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | error.c | 147 wchar_t *wbuf = (len < ALLOCA_LIMIT local 148 ? alloca (len * sizeof *wbuf) 149 : len <= SIZE_MAX / sizeof *wbuf 150 ? malloc (len * sizeof *wbuf) 153 if (wbuf) 159 res = mbsrtowcs (wbuf, &tmp, len, &st); 160 wmessage = res == (size_t) -1 ? L"???" : wbuf; 165 free (wbuf);
|
/netbsd-current/sys/dev/i2c/ |
H A D | ddc.c | 102 uint8_t wbuf[2]; local 108 wbuf[0] = block >> 1; /* start address */ 110 if ((error = iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1,
|
/netbsd-current/usr.bin/whatis/ |
H A D | whatis.c | 153 char buf[MAXLINELEN + 1], wbuf[MAXLINELEN + 1]; local 172 dashtrunc(buf, wbuf); 174 if (match(wbuf, *p)) { 180 if (match(wbuf, *p))
|
/netbsd-current/external/bsd/nvi/dist/vi/ |
H A D | v_at.c | 49 CHAR_T wbuf[20]; local 115 MEMCPYW(wbuf, wp, wlen);
|
/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | regress_iocp.c | 212 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable in typeref:struct: 230 evbuffer_commit_write_(wbuf, nbytes); 255 wbuf = evbuffer_overlapped_new_(data->pair[1]); 257 evbuffer_enable_locking(wbuf, NULL); 262 tt_assert(wbuf); 268 evbuffer_add(wbuf, junk, sizeof(junk)); 279 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol)); 291 evbuffer_free(wbuf);
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | regress_iocp.c | 213 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable in typeref:struct: 231 evbuffer_commit_write_(wbuf, nbytes); 256 wbuf = evbuffer_overlapped_new_(data->pair[1]); 258 evbuffer_enable_locking(wbuf, NULL); 263 tt_assert(wbuf); 269 evbuffer_add(wbuf, junk, sizeof(junk)); 280 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol)); 292 evbuffer_free(wbuf);
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_write.c | 68 char wbuf[3] = { 'x', 'y', 'z' }; local 72 ATF_REQUIRE_ERRNO(EBADF, write(-1, wbuf, sizeof(wbuf)) == -1); 79 ATF_REQUIRE_ERRNO(0, write(fd, wbuf, 3) == 3); 82 ATF_REQUIRE_ERRNO(EINVAL, write(fd, wbuf, SIZE_MAX) == -1); 93 ATF_REQUIRE(memcmp(rbuf, wbuf, 3) == 0);
|
/netbsd-current/bin/dd/ |
H A D | misc.c | 165 static char wbuf[128]; local 166 static size_t cnt = 0; /* Internal counter to allow wbuf to wrap */ 172 wbuf[cnt++] = str[i]; 174 if (cnt >= sizeof(wbuf)) { 175 (void)write(STDERR_FILENO, wbuf, cnt); 181 (void)write(STDERR_FILENO, wbuf, cnt);
|
/netbsd-current/crypto/external/bsd/heimdal/dist/kadmin/ |
H A D | add-random-users.c | 51 char *wbuf = NULL, *wptr = NULL, *wend = NULL; local 67 wptr = wbuf = emalloc (WORDBUF_SIZE); 68 wend = wbuf + WORDBUF_SIZE;
|
/netbsd-current/bin/ln/ |
H A D | ln.c | 236 char wbuf[PATH_MAX]; local 289 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s", 291 if (stat(wbuf, &sb) != 0)
|