/freebsd-11-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-11-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-11-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-11-stable/usr.bin/mail/ |
H A D | head.c | 250 nextword(char *wp, char *wbuf) argument 255 *wbuf = '\0'; 259 *wbuf++ = c; 262 *wbuf++ = c; 264 *wbuf++ = c; 269 *wbuf = '\0';
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | sh.dol.c | 161 Dpack(struct Strbuf *wbuf) argument 188 Strbuf_append1(wbuf, (Char) c); 202 struct Strbuf *wbuf = Strbuf_alloc(); local 207 cleanup_push(wbuf, Strbuf_free); 214 cleanup_until(wbuf); 230 Strbuf_append1(wbuf, (Char) c); 249 if (wbuf->len != 0 && (wbuf->s[wbuf->len - 1] & TRIM) == '\\') 250 wbuf 415 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 | 295 struct Strbuf wbuf = Strbuf_INIT; local 301 cleanup_push(&wbuf, Strbuf_cleanup); 313 Strbuf_append1(&wbuf, c); 316 Strbuf_append1(&wbuf, c1); 344 Strbuf_append1(&wbuf, c); 355 Strbuf_append1(&wbuf, '\\'); 413 Strbuf_append1(&wbuf, '\\'); 425 Strbuf_append1(&wbuf, c); 429 cleanup_ignore(&wbuf); 430 cleanup_until(&wbuf); 985 struct Strbuf wbuf = Strbuf_INIT; local [all...] |
/freebsd-11-stable/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 106 struct iovec wbuf[NPACKET_R]; local 118 bzero(wbuf, sizeof(wbuf)); 220 wbuf[vec].iov_base = pad; 221 wbuf[vec++].iov_len = npad; 223 writev(fd, wbuf, vec); 235 wbuf[vec].iov_base = (char *) dv; 236 wbuf[vec++].iov_len = DSIZE; 238 writev(fd, wbuf, vec); 247 writev(fd, wbuf, ve 264 struct iovec wbuf[TNBUF*2 + NEMPTY]; local [all...] |
/freebsd-11-stable/stand/libsa/ |
H A D | tftp.c | 145 } __packed __aligned(4) wbuf; 150 if (len > sizeof(wbuf.space)) 151 len = sizeof(wbuf.space); 153 wbuf.t.th_opcode = htons((u_short)ERROR); 154 wbuf.t.th_code = htons(errcode); 156 wtail = wbuf.t.th_msg; 161 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); 170 } __packed __aligned(4) wbuf; 173 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-11-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-11-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-11-stable/contrib/nvi/vi/ |
H A D | v_at.c | 43 CHAR_T wbuf[20]; local 108 MEMCPY(wbuf, wp, wlen);
|
/freebsd-11-stable/crypto/openssl/ssl/ |
H A D | s2_lib.c | 341 * wbuf needs one byte more because when using two-byte headers, we leave 344 if ((s2->wbuf = 353 if (s2->wbuf != NULL) 354 OPENSSL_free(s2->wbuf); 372 if (s2->wbuf != NULL) 373 OPENSSL_free(s2->wbuf); 382 unsigned char *rbuf, *wbuf; local 387 wbuf = s2->wbuf; 392 s2->wbuf [all...] |
H A D | heartbeat_test.c | 115 memset(fixture.s->s3->wbuf.buf, 0, fixture.s->s3->wbuf.len); 226 * If there is any byte alignment, it will be stored in wbuf.offset. 229 wbuf.buf[fixture.return_payload_offset + s->s3->wbuf.offset]);
|
/freebsd-11-stable/sys/dev/advansys/ |
H A D | adwlib.c | 268 u_int16_t *wbuf; local 273 wbuf = (u_int16_t *)eep_buf; 278 eep_addr++, wbuf++) { 281 *wbuf = wval; 285 *wbuf = adw_eeprom_read_16(adw, eep_addr); 286 wbuf++; 291 eep_addr++, wbuf++) 292 *wbuf = adw_eeprom_read_16(adw, eep_addr); 300 u_int16_t *wbuf; local 304 wbuf [all...] |
H A D | advlib.c | 497 u_int16_t *wbuf; local 502 wbuf = (u_int16_t *)eeprom_config; 505 for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { 506 *wbuf = adv_read_eeprom_16(adv, s_addr); 507 sum += *wbuf; 518 for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { 519 *wbuf = adv_read_eeprom_16(adv, s_addr); 520 sum += *wbuf; 522 printf("Addr 0x%x: 0x%04x\n", s_addr, *wbuf); 525 *wbuf 1379 u_int16_t *wbuf; local [all...] |
/freebsd-11-stable/sys/dev/smbus/ |
H A D | smb.h | 49 char *wbuf; /* use wdata if NULL */ member in struct:smbcmd
|
H A D | smbconf.h | 118 #define smbus_trans(bus,slave,cmd,op,wbuf,wcount,rbuf,rcount,actualp) \ 120 wbuf, wcount, rbuf, rcount, actualp))
|
/freebsd-11-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-11-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-11-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-11-stable/bin/ln/ |
H A D | ln.c | 229 char wbuf[PATH_MAX]; local 282 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s", 284 if (stat(wbuf, &sb) != 0)
|