/freebsd-12-stable/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-12-stable/lib/libopenbsd/ |
H A D | imsg.c | 171 struct ibuf *wbuf; local 173 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL) 176 if (imsg_add(wbuf, data, datalen) == -1) 179 wbuf->fd = fd; 181 imsg_close(ibuf, wbuf); 190 struct ibuf *wbuf; local 196 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL) 200 if (imsg_add(wbuf, iov[i].iov_base, iov[i].iov_len) == -1) 203 wbuf->fd = fd; 205 imsg_close(ibuf, wbuf); 215 struct ibuf *wbuf; local [all...] |
/freebsd-12-stable/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...] |
H A D | sh.lex.c | 296 struct Strbuf wbuf = Strbuf_INIT; local 302 cleanup_push(&wbuf, Strbuf_cleanup); 315 Strbuf_append1(&wbuf, c); 318 Strbuf_append1(&wbuf, c1); 346 Strbuf_append1(&wbuf, c); 357 Strbuf_append1(&wbuf, '\\'); 416 Strbuf_append1(&wbuf, '\\'); 428 Strbuf_append1(&wbuf, c); 432 cleanup_ignore(&wbuf); 433 cleanup_until(&wbuf); 988 struct Strbuf wbuf = Strbuf_INIT; local [all...] |
/freebsd-12-stable/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-12-stable/usr.bin/mail/ |
H A D | head.c | 252 nextword(char *wp, char *wbuf) argument 257 *wbuf = '\0'; 261 *wbuf++ = c; 264 *wbuf++ = c; 266 *wbuf++ = c; 271 *wbuf = '\0';
|
/freebsd-12-stable/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 108 struct iovec wbuf[NPACKET_R]; local 120 bzero(wbuf, sizeof(wbuf)); 222 wbuf[vec].iov_base = pad; 223 wbuf[vec++].iov_len = npad; 225 writev(fd, wbuf, vec); 237 wbuf[vec].iov_base = (char *) dv; 238 wbuf[vec++].iov_len = DSIZE; 240 writev(fd, wbuf, vec); 249 writev(fd, wbuf, ve 266 struct iovec wbuf[TNBUF*2 + NEMPTY]; local [all...] |
/freebsd-12-stable/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 | 74 } wbuf; local 89 bzero((char*)&wbuf.data, sizeof(wbuf.data)); 90 ap = &wbuf.data.arp; 101 rarpsend, &wbuf.data, sizeof(wbuf.data),
|
H A D | arp.c | 84 } wbuf; local 102 bzero((char*)&wbuf.data, sizeof(wbuf.data)); 103 ah = &wbuf.data.arp; 120 arpsend, &wbuf.data, sizeof(wbuf.data),
|
/freebsd-12-stable/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-12-stable/contrib/nvi/vi/ |
H A D | v_at.c | 43 CHAR_T wbuf[20]; local 108 MEMCPY(wbuf, wp, wlen);
|
/freebsd-12-stable/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-12-stable/sys/dev/advansys/ |
H A D | adwlib.c | 270 u_int16_t *wbuf; local 275 wbuf = (u_int16_t *)eep_buf; 280 eep_addr++, wbuf++) { 283 *wbuf = wval; 287 *wbuf = adw_eeprom_read_16(adw, eep_addr); 288 wbuf++; 293 eep_addr++, wbuf++) 294 *wbuf = adw_eeprom_read_16(adw, eep_addr); 302 u_int16_t *wbuf; local 306 wbuf [all...] |
H A D | advlib.c | 499 u_int16_t *wbuf; local 504 wbuf = (u_int16_t *)eeprom_config; 507 for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { 508 *wbuf = adv_read_eeprom_16(adv, s_addr); 509 sum += *wbuf; 520 for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { 521 *wbuf = adv_read_eeprom_16(adv, s_addr); 522 sum += *wbuf; 524 printf("Addr 0x%x: 0x%04x\n", s_addr, *wbuf); 527 *wbuf 1381 u_int16_t *wbuf; local [all...] |
/freebsd-12-stable/sys/dev/smbus/ |
H A D | smb.h | 51 char *wbuf; /* use wdata if NULL */ member in struct:smbcmd
|
H A D | smbconf.h | 120 #define smbus_trans(bus,slave,cmd,op,wbuf,wcount,rbuf,rcount,actualp) \ 122 wbuf, wcount, rbuf, rcount, actualp))
|
/freebsd-12-stable/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-12-stable/contrib/gdb/gdb/ |
H A D | ia64-fbsd-nat.c | 113 const char *annex, void *rbuf, const void *wbuf, 125 if (ptrace (PT_SETKSTACK, PIDGET(inferior_ptid), (PTRACE_ARG3_TYPE)wbuf, 112 ia64_fbsd_xfer_dirty(struct target_ops *ops, enum target_object obj, const char *annex, void *rbuf, const void *wbuf, ULONGEST ofs, LONGEST len) argument
|
/freebsd-12-stable/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-12-stable/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-12-stable/bin/ln/ |
H A D | ln.c | 231 char wbuf[PATH_MAX]; local 284 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s", 286 if (stat(wbuf, &sb) != 0)
|
/freebsd-12-stable/tests/sys/fs/fusefs/ |
H A D | default_permissions.cc | 1243 char wbuf[1] = {'x'}; local 1249 expect_write(ino, 0, sizeof(wbuf), sizeof(wbuf), 0, 0, wbuf); 1250 expect_chmod(ino, newmode, sizeof(wbuf)); 1254 ASSERT_EQ(1, write(fd, wbuf, sizeof(wbuf))) << strerror(errno); 1269 char wbuf[1] = {'x'}; local 1275 expect_write(ino, 0, sizeof(wbuf), sizeof(wbuf), 1299 char wbuf[1] = {'x'}; local [all...] |