/src/lib/libc/gen/ |
getcwd.c | 76 char *p, wbuf[2][MAXPATHLEN], *fres; local in function:__weak_alias 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/dev/i2c/ |
ddc.c | 102 uint8_t wbuf[2]; local in function:ddc_read_edid_block 108 wbuf[0] = block >> 1; /* start address */ 110 if ((error = iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1,
|
mpl115a.c | 172 uint8_t rv, wbuf[2]; local in function:mpl115a_reg_read_1 181 wbuf[0] = reg; 183 if (iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP, sc->sc_addr, wbuf,
|
/src/sys/modules/examples/pollpal/ |
cmd_pollpal.c | 71 static const char wbuf[] = "abcdefghijklmnopqrstuvwxyz"; variable in typeref:typename:const char[] 110 ret = write(fd, wbuf, sizeof(wbuf) - 1);
|
/src/tests/lib/libc/sys/ |
t_write.c | 68 char wbuf[3] = { 'x', 'y', 'z' }; local in function:ATF_TC_BODY 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/tests/lib/libc/locale/ |
t_mbstowcs.c | 163 wchar_t wbuf[SIZE]; local in function:ATF_TC_BODY 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 in function:h_ctype2 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/ddb/ |
db_proc.c | 132 char db_nbuf[MAXCOMLEN + 1], wbuf[MAXCOMLEN + 1]; local in function:db_show_all_procs 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 in function:db_show_proc [all...] |
/src/bin/dd/ |
misc.c | 165 static char wbuf[128]; local in function:buffer_write 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);
|
/src/bin/ln/ |
ln.c | 236 char wbuf[PATH_MAX]; local in function:linkit 289 (void)snprintf(wbuf, sizeof(wbuf), "%s/%s", 291 if (stat(wbuf, &sb) != 0)
|
/src/sys/lib/libsa/ |
rarp.c | 96 } wbuf; local in function:rarp_getipaddress 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 in function:arpwhohas 135 (void)memset(&wbuf.data, 0, sizeof(wbuf.data)); 136 ah = &wbuf.data.arp; 151 arpsend, &wbuf.data, sizeof(wbuf.data),
|
bootp.c | 128 } wbuf; local in function:bootp 151 bp = &wbuf.wbootp;
|
tftp.c | 159 } wbuf; local in function:tftp_makereq 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 in function:tftp_getnextblock 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 in function:tftp_terminate [all...] |
/src/usr.bin/whatis/ |
whatis.c | 153 char buf[MAXLINELEN + 1], wbuf[MAXLINELEN + 1]; local in function:whatis 172 dashtrunc(buf, wbuf); 174 if (match(wbuf, *p)) { 180 if (match(wbuf, *p))
|
/src/usr.bin/apropos/ |
apropos.c | 168 char wbuf[MAXLINELEN + 1]; local in function:apropos 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/usr.sbin/sysinst/ |
aout2elf.c | 320 char *p, *q, wbuf[MAXPATHLEN]; local in function:target_realpath 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.bin/wc/ |
wc.c | 179 wchar_t wbuf[MAXBSIZE]; local in function:cnt 264 r = do_mb(wbuf, (char *)buf, (size_t)len, &st, &wlen, 271 for (WC = wbuf; wlen--; ++WC) {
|
/src/usr.sbin/fwctl/ |
fwdv.c | 103 struct iovec wbuf[NPACKET_R]; local in function:dvrecv 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, vec) 269 struct iovec wbuf[TNBUF*2 + NEMPTY]; local in function:dvsend [all...] |
/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 in function:Dword 224 wp = wbuf; 238 Gcat(STRNULL, wbuf); 289 if ((wp = Dpack(wbuf, wp)) == NULL) 292 i = MAXWLEN - (wp - wbuf); 391 Char wbuf[BUFSIZE]; local in function:Dgetdol [all...] |
lex.c | 259 Char wbuf[BUFSIZE], *wp; local in function:word 263 wp = wbuf; 368 wp = &wbuf[1]; 374 return (Strsave(wbuf)); 922 Char wbuf[BUFSIZE]; local in function:subword 940 wp = wbuf; 979 return (Strsave(wbuf));
|
/src/sys/dev/ic/ |
adwlib.c | 1557 u_int16_t *wbuf; local in function:AdwGetEEPROMConfig 1561 wbuf = (u_int16_t *) cfg_buf; 1566 eep_addr++, wbuf++) { 1569 *wbuf = wval; 1572 *wbuf = AdwReadEEPWord(iot, ioh, eep_addr); 1573 wbuf++; 1576 eep_addr++, wbuf++) { 1577 *wbuf = AdwReadEEPWord(iot, ioh, eep_addr); 1625 u_int16_t *wbuf; local in function:AdwSetEEPROMConfig 1629 wbuf = (u_int16_t *) cfg_buf [all...] |
/src/sys/arch/arm/sunxi/ |
sunxi_hdmi.c | 638 uint8_t wbuf[2]; local in function:sunxi_hdmi_read_edid_block 644 wbuf[0] = block; /* start address */ 646 error = iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1,
|
/src/sys/external/bsd/sljit/dist/test_src/ |
sljitTest.c | 4538 sljit_sw wbuf[9]; local in function:test48 4557 wbuf[i] = 0; 4568 wbuf[0] = 2345; 4576 sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_S2, 0, SLJIT_IMM, (sljit_sw)&wbuf); 4595 /* wbuf[1] */ 4600 /* wbuf[2] */ 4603 /* wbuf[3] */ 4607 /* wbuf[4] */ 4666 FAILED(wbuf[1] != -367, "test48 case 14 failed\n"); 4667 FAILED(wbuf[2] != 917, "test48 case 15 failed\n") 4686 sljit_sw wbuf[9]; local in function:test49 [all...] |
/src/sys/dev/pci/ |
arcmsr.c | 1592 uint8_t *wbuf, *rbuf; local in function:arc_msgbuf 1601 wbuf = rbuf = NULL; 1607 wbuf = kmem_alloc(wlen, KM_SLEEP); 1615 bufhdr = (struct arc_fw_bufhdr *)wbuf; 1618 memcpy(wbuf + sizeof(struct arc_fw_bufhdr), wptr, wbuflen); 1619 wbuf[wlen - 1] = arc_msg_cksum(wptr, wbuflen); 1633 memcpy(rwbuf, &wbuf[wdone], rwlen); 1725 kmem_free(wbuf, wlen);
|