| /src/sys/ddb/ |
| 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[0] = '\0' 289 char db_nbuf[MAXCOMLEN + 1], wbuf[MAXCOMLEN + 1]; local [all...] |
| /src/external/bsd/kyua-cli/dist/utils/process/ |
| fdstream_test.cpp | 55 systembuf wbuf(fds[1]); 56 std::ostream wend(&wbuf);
|
| /src/tests/lib/libc/locale/ |
| 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, SIZE-1)) [all...] |
| 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]);
|
| /src/sys/lib/libsa/ |
| 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.t, wtail - (char *)&wbuf.t 234 } wbuf; local [all...] |
| 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),
|
| 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),
|
| /src/usr.bin/mail/ |
| head.c | 183 nextword(const char *wp, char *wbuf) 186 *wbuf = 0; 190 *wbuf++ = *wp; 193 *wbuf++ = *wp++; 195 *wbuf++ = *wp++; 198 *wbuf = '\0';
|
| /src/bin/csh/ |
| dol.c | 166 Dpack(Char *wbuf, Char *wp) 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...] |
| /src/usr.bin/apropos/ |
| 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))
|
| /src/external/bsd/tmux/dist/compat/ |
| imsg.c | 249 struct ibuf *wbuf; local 251 if ((wbuf = imsg_create(imsgbuf, type, id, pid, datalen)) == NULL) 254 if (ibuf_add(wbuf, data, datalen) == -1) 257 ibuf_fd_set(wbuf, fd); 258 imsg_close(imsgbuf, wbuf); 263 ibuf_free(wbuf); 271 struct ibuf *wbuf; local 278 if ((wbuf = imsg_create(imsgbuf, type, id, pid, datalen)) == NULL) 282 if (ibuf_add(wbuf, iov[i].iov_base, iov[i].iov_len) == -1) 285 ibuf_fd_set(wbuf, fd) 337 struct ibuf *wbuf; local 363 struct ibuf *wbuf; local [all...] |
| /src/tests/lib/libc/sys/ |
| t_aio_cancel.c | 111 uint8_t *wbuf; local 117 wbuf = malloc(blksz); 118 ATF_REQUIRE(wbuf != NULL); 119 fill_pattern(wbuf, blksz, 0x33); 123 cb.aio_buf = wbuf; 158 free(wbuf); 167 uint8_t *wbuf; local 173 wbuf = malloc(blksz); 174 ATF_REQUIRE(wbuf != NULL); 175 memset(wbuf, 0x7E, blksz) [all...] |
| t_aio_rw.c | 113 uint8_t *wbuf, *rbuf; local 119 wbuf = malloc(blksz); 121 ATF_REQUIRE(wbuf != NULL && rbuf != NULL); 123 fill_pattern(wbuf, blksz, 0xA0); 127 wcb.aio_buf = wbuf; 152 ATF_REQUIRE_EQ(0, memcmp(wbuf, rbuf, blksz)); 159 free(wbuf);
|
| 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);
|
| /src/usr.sbin/sysinst/ |
| 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...] |
| /src/usr.sbin/fwctl/ |
| fwdv.c | 104 struct iovec wbuf[NPACKET_R]; local 116 memset(wbuf, 0, sizeof(wbuf)); 226 wbuf[vec].iov_base = pad; 227 wbuf[vec++].iov_len = npad; 229 writev(fd, wbuf, vec); 241 wbuf[vec].iov_base = (char *) dv; 242 wbuf[vec++].iov_len = DSIZE; 244 writev(fd, wbuf, vec); 253 writev(fd, wbuf, vec) 270 struct iovec wbuf[TNBUF*2 + NEMPTY]; local [all...] |
| /src/lib/libc/gen/ |
| 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];
|
| /src/sys/modules/examples/pollpal/ |
| cmd_pollpal.c | 71 static const char wbuf[] = "abcdefghijklmnopqrstuvwxyz"; variable 110 ret = write(fd, wbuf, sizeof(wbuf) - 1);
|
| /src/external/gpl2/xcvs/dist/lib/ |
| 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);
|
| /src/sys/dev/i2c/ |
| 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,
|
| /src/usr.bin/whatis/ |
| 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))
|
| /src/external/bsd/libevent/dist/test/ |
| 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);
|
| /src/external/bsd/ntp/dist/sntp/libevent/test/ |
| 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);
|
| /src/external/bsd/nvi/dist/vi/ |
| v_at.c | 49 CHAR_T wbuf[20]; local 115 MEMCPYW(wbuf, wp, wlen);
|
| /src/bin/dd/ |
| 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);
|