Searched refs:blen (Results 1 - 25 of 181) sorted by relevance

12345678

/netbsd-current/sys/arch/sun3/dev/
H A Dsevar.h40 int blen; /* length of above */ member in struct:sebuf_attach_args
/netbsd-current/external/bsd/nvi/dist/common/
H A Dargs.h25 size_t blen; /* Buffer length. */ member in struct:_args
H A Dmem.h63 #define GET_SPACE_GOTO(sp, type, bp, blen, nlen) { \
68 blen = 0; \
69 BINC_GOTO(sp, type, bp, blen, nlen); \
73 blen = L__wp->tmp_blen; \
77 #define GET_SPACE_GOTOC(sp, bp, blen, nlen) \
78 GET_SPACE_GOTO(sp, char, bp, blen, nlen)
79 #define GET_SPACE_GOTOW(sp, bp, blen, nlen) \
80 GET_SPACE_GOTO(sp, CHAR_T, bp, blen, (nlen) * sizeof(CHAR_T))
81 #define GET_SPACE_RET(sp, type, bp, blen, nlen) { \
86 blen
[all...]
H A Ddelete.c44 size_t blen, len, nlen, tlen; local
86 GET_SPACE_RETW(sp, bp, blen, fm->cno);
99 GET_SPACE_RETW(sp, bp, blen, len);
119 GET_SPACE_RETW(sp, bp, blen, tlen + 256);
139 GET_SPACE_RETW(sp, bp, blen, nlen);
141 ADD_SPACE_RETW(sp, bp, blen, nlen);
164 FREE_SPACEW(sp, bp, blen);
H A Dmsg.c78 size_t blen, len, mlen, nlen; local
143 retry: FREE_SPACE(sp, bp, blen);
147 blen = 0;
148 GET_SPACE_GOTOC(sp, bp, blen, nlen);
155 * blen: total length of the buffer
157 #define REM (blen - mlen)
178 if ((mlen += len) > blen)
183 if ((mlen += len) > blen)
344 if ((mlen += len) > blen)
349 if ((mlen += len) > blen)
466 size_t cnt, blen, len, tlen; local
561 size_t blen, len; local
894 size_t blen, nlen; local
[all...]
/netbsd-current/external/bsd/nvi/dist/ipc/
H A Dip_send.c42 static size_t blen; local
62 if (blen == 0 && (bp = malloc(blen = 512)) == NULL)
82 if (nlen >= blen) {
83 blen = blen * 2 + nlen;
85 if ((bp = realloc(bp, blen)) == NULL)
96 if (nlen >= blen) {
97 blen = blen *
[all...]
/netbsd-current/tests/rump/rumpkern/h_client/
H A Dh_sigcli.c24 size_t blen = sizeof(buf); local
27 buf, &blen, NULL, 0) == -1)
42 size_t blen; local
63 blen = sizeof(buf);
65 buf, &blen, NULL, 0) == -1)
H A Dh_reconcli.c55 size_t blen; local
63 blen = sizeof(hostnamebuf);
66 hostnamebuf, &blen, NULL, 0) == -1)
85 size_t blen; local
100 blen = sizeof(goodhostname);
102 goodhostname, &blen, NULL, 0) == -1)
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dxsbprintf.c44 size_t blen = (size_t)(pend - pbuf); local
45 rc = vsnprintf(pbuf, blen, pfmt, va);
47 if ((size_t)rc >= blen)
/netbsd-current/lib/libwrap/
H A Dexpandm.c70 size_t blen = buf ? strlen(buf) : 0; local
78 if (blen >= PTRDIFF_MAX ||
79 nlen >= PTRDIFF_MAX - blen ||
80 nlen >= SIZE_T_MAX - blen)
83 tlen = nlen + blen;
89 memcpy(nbuf + blen, ptr, nlen);
/netbsd-current/lib/libc/gdtoa/
H A Dg__fmt.c40 g__fmt(b, s, se, decpt, sign, blen) char *b; char *s; char *se; int decpt; ULong sign; size_t blen;
42 g__fmt(char *b, char *s, char *se, int decpt, ULong sign, size_t blen)
71 if (blen < len)
73 be = b + blen - 1;
/netbsd-current/external/bsd/wpa/dist/src/utils/
H A Dpcsc_funcs.c414 size_t blen; local
419 blen = sizeof(buf);
420 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) {
424 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen);
434 blen = sizeof(buf);
435 if (rlen > (int) blen) {
528 size_t blen; local
632 blen = sizeof(buf);
635 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen,
645 blen
900 size_t blen; local
935 size_t blen = len + 3; local
981 size_t blen = len + 3; local
1110 size_t blen, imsilen, i; local
1184 size_t blen; local
[all...]
/netbsd-current/usr.bin/tail/
H A Dread.c137 int blen; member in struct:__anon13565
143 int blen, cnt, recno, wrap; local
153 blen = cnt = recno = wrap = 0;
156 if (++cnt > blen) {
157 if ((n = realloc(sp, blen + 1024)) == NULL)
160 blen += 1024;
165 if (lines[recno].blen < cnt) {
170 lines[recno].blen = cnt + 256;
/netbsd-current/external/bsd/nvi/dist/ex/
H A Dex_argv.c96 size_t blen, len; local
99 GET_SPACE_RETW(sp, bp, blen, 512);
102 if (argv_fexp(sp, excp, cmd, cmdlen, bp, &len, &bp, &blen, is_bang)) {
103 FREE_SPACEW(sp, bp, blen);
119 ret: FREE_SPACEW(sp, bp, blen);
133 size_t blen, len, n; local
138 GET_SPACE_RETW(sp, bp, blen, 512);
154 if (argv_fexp(sp, excp, cmd, cmdlen, p, &len, &bp, &blen, 0)) {
233 if (argv_sexp(sp, &bp, &blen, &len)) {
242 err: FREE_SPACEW(sp, bp, blen);
325 size_t blen, len, off, tlen; local
656 size_t blen, len; local
[all...]
H A Dex_move.c98 size_t blen, len; local
141 GET_SPACE_RETW(sp, bp, blen, 256);
151 BINC_RETW(sp, bp, blen, len);
169 BINC_RETW(sp, bp, blen, len);
183 FREE_SPACEW(sp, bp, blen);
/netbsd-current/external/gpl3/gcc.old/dist/gcc/lto/
H A Dlto.c212 stream_out_partitions_1 (char *temp_filename, int blen, int min, int max) argument
217 sprintf (temp_filename + blen, "%u.o", p);
227 stream_out_partitions (char *temp_filename, int blen, int min, int max, argument
235 stream_out_partitions_1 (temp_filename, blen, min, max);
255 stream_out_partitions_1 (temp_filename, blen, min, max);
260 stream_out_partitions_1 (temp_filename, blen, min, max);
268 stream_out_partitions_1 (temp_filename, blen, min, max);
274 stream_out_partitions_1 (temp_filename, blen, min, max);
290 size_t blen; local
317 blen
[all...]
/netbsd-current/external/gpl3/gcc/dist/gcc/lto/
H A Dlto.cc212 stream_out_partitions_1 (char *temp_filename, int blen, int min, int max) argument
217 sprintf (temp_filename + blen, "%u.o", p);
227 stream_out_partitions (char *temp_filename, int blen, int min, int max, argument
235 stream_out_partitions_1 (temp_filename, blen, min, max);
255 stream_out_partitions_1 (temp_filename, blen, min, max);
260 stream_out_partitions_1 (temp_filename, blen, min, max);
268 stream_out_partitions_1 (temp_filename, blen, min, max);
274 stream_out_partitions_1 (temp_filename, blen, min, max);
290 size_t blen; local
317 blen
[all...]
/netbsd-current/lib/librumpuser/
H A Drumpuser.c187 rumpuser_getparam(const char *name, void *buf, size_t blen) argument
194 if (getenv_r("RUMP_NCPU", buf, blen) == -1) {
198 snprintf(buf, blen, "%d", ncpu);
205 snprintf(buf, blen, "rump-%05d", (int)getpid());
207 snprintf(buf, blen, "rump-%05d.%s",
214 if (getenv_r(name, buf, blen) == -1)
/netbsd-current/sys/fs/ntfs/
H A Dntfs_compr.c52 int blen, boff; local
81 blen = 3 + (GET_UINT16(cbuf + cpos) & lmask);
82 for (j = 0; (j < blen) && (pos < NTFS_COMPBLOCK_SIZE); j++) {
/netbsd-current/tests/fs/kernfs/
H A Dt_basic.c83 size_t blen; local
87 blen = sizeof(buf);
88 if (rump_sys___sysctl(mib, 2, buf, &blen, NULL, 0) == -1)
/netbsd-current/external/bsd/wpa/dist/wpa_supplicant/
H A Dwin_if_list.c77 size_t blen = sizeof(*b) + 1024; local
84 b = malloc(blen);
89 memset(b, 0, blen);
93 (DWORD) blen, &written, NULL)) {
/netbsd-current/external/bsd/ipf/dist/
H A Dip_dns_pxy.c245 int blen; local
248 blen = idns->idns_namelen;
251 if (blen > qlen)
254 if (blen == qlen)
267 blen--;
271 return strncasecmp(base, query + qlen - blen, blen);
284 int slen, blen; local
289 blen = buflen - 1; /* Always make room for trailing \0 */
301 if ((clen + 1) > blen) {
[all...]
/netbsd-current/sys/external/bsd/ipf/netinet/
H A Dip_dns_pxy.c230 int blen; local
233 blen = idns->idns_namelen;
236 if (blen > qlen)
239 if (blen == qlen)
252 blen--;
256 return strncasecmp(base, query + qlen - blen, blen);
265 int slen, blen; local
270 blen = buflen - 1; /* Always make room for trailing \0 */
282 if ((clen + 1) > blen) {
[all...]
/netbsd-current/lib/libform/
H A Dtype_enum.c151 unsigned i, start, end, enum_start, blen, elen, enum_end; local
158 blen = (unsigned) (strlen(&this[start])
161 blen = 0;
163 _formi_dbg_printf("%s: start %u, blen %u\n", __func__, start, blen);
183 if ((exact == TRUE) && (blen != elen))
191 if ((exact != TRUE) && (blen > elen))
197 (size_t)blen) == 0) ?
202 (size_t) blen) == 0) ?
/netbsd-current/sys/dev/i2c/
H A Dbmx280thpi2c.c75 uint8_t *buf, size_t blen)
83 buf,blen,0);
91 uint8_t *buf, size_t blen)
95 KASSERT(blen > 0);
98 buf, blen);
110 uint8_t *buf, size_t blen)
114 KASSERT(blen > 0);
115 /* XXX - there should be a KASSERT for blen at least
119 buf,blen,0);
74 bmx280thpi2c_read_register_direct(i2c_tag_t tag, i2c_addr_t addr, uint8_t reg, uint8_t *buf, size_t blen) argument
90 bmx280thpi2c_read_register(struct bmx280_sc *sc, uint8_t reg, uint8_t *buf, size_t blen) argument
109 bmx280thpi2c_write_register(struct bmx280_sc *sc, uint8_t *buf, size_t blen) argument

Completed in 554 milliseconds

12345678