HomeSort by: relevance | last modified time | path
    Searched defs:wbuf (Results 1 - 25 of 62) sorted by relevancy

1 2 3

  /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];
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,
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,
  /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);
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);
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_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]);
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...]
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);
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)
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),
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;
  /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))
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))

Completed in 30 milliseconds

1 2 3