Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 25 of 239) sorted by relevance

12345678910

/openbsd/gnu/usr.bin/cvs/vms/
H A Dfilutils.c165 long slen; local
173 slen = strlen (src);
194 if (esa[slen - 1] == ';' && esa[slen - 2] == '.')
195 slen -= 2;
196 esa[slen] = '\0';
199 if (src[slen - 1] != ']' && src[slen - 1] != '>')
222 if (src[slen - 1] != ']' && src[slen - 1] != '>')
256 dst[slen] = '\0';
297 dst[slen - 1] = ':';
300 slen += 8;
[all …]
/openbsd/usr.sbin/unbound/sldns/
H A Dwire2str.c389 *slen = 0; in sldns_str_vprint()
392 *slen -= w; in sldns_str_vprint()
475 d, dlen, s, slen); in sldns_wire2str_pkt_scan()
562 d, dlen, s, slen); in sldns_wire2str_rr_scan()
624 d, dlen, s, slen); in sldns_wire2str_rr_unknown_scan()
728 size_t* slen) in sldns_wire2str_header_scan() argument
802 s, slen); in sldns_wire2str_rdata_scan()
813 size_t* slen) in sldns_wire2str_rdata_unknown_scan() argument
837 if(*slen) { in dname_char_print()
840 (*slen)--; in dname_char_print()
[all …]
/openbsd/sbin/unwind/libunbound/sldns/
H A Dwire2str.c389 *slen = 0; in sldns_str_vprint()
392 *slen -= w; in sldns_str_vprint()
475 d, dlen, s, slen); in sldns_wire2str_pkt_scan()
562 d, dlen, s, slen); in sldns_wire2str_rr_scan()
624 d, dlen, s, slen); in sldns_wire2str_rr_unknown_scan()
728 size_t* slen) in sldns_wire2str_header_scan() argument
802 s, slen); in sldns_wire2str_rdata_scan()
813 size_t* slen) in sldns_wire2str_rdata_unknown_scan() argument
837 if(*slen) { in dname_char_print()
840 (*slen)--; in dname_char_print()
[all …]
/openbsd/regress/sys/kern/unixsockets/
H A Dunixsock_test.c31 sun->sun_path[slen - 2] = '\0'; in test_bind()
98 socklen_t slen = t[i].len; in main() local
113 slen + 2); in main()
118 slen + 3); in main()
127 sun->sun_path[slen] = 'a'; in main()
130 (int)(slen + 2), sun->sun_path, slen + 2); in main()
133 sun->sun_path[slen] = '\0'; in main()
137 slen + 2); in main()
142 slen + 3); in main()
151 sun->sun_path[slen] = 'a'; in main()
[all …]
/openbsd/regress/sbin/iked/test_helper/
H A Dfuzz.c60 size_t slen; member
110 ((fuzz_ullong)fuzz->slen * 8) * fuzz->slen * 8, in fuzz_dump()
122 ((fuzz_ullong)fuzz->slen) * fuzz->slen, in fuzz_dump()
179 ret->slen = l; in fuzz_begin()
215 return fuzz->o2 >= fuzz->slen; in fuzz_strategy_done()
220 return fuzz->o1 >= fuzz->slen; in fuzz_strategy_done()
280 assert(fuzz->o1 < fuzz->slen); in fuzz_next()
286 assert(fuzz->o1 < fuzz->slen); in fuzz_next()
292 if (fuzz->o1 >= fuzz->slen) { in fuzz_next()
342 return fuzz->slen; in fuzz_len()
[all …]
/openbsd/regress/usr.bin/ssh/unittests/test_helper/
H A Dfuzz.c64 size_t slen; member
114 ((fuzz_ullong)fuzz->slen * 8) * fuzz->slen * 8, in fuzz_fmt()
126 ((fuzz_ullong)fuzz->slen) * fuzz->slen, in fuzz_fmt()
190 dump(fuzz->seed, fuzz->slen); in fuzz_dump()
222 ret->slen = l; in fuzz_begin()
268 return fuzz->o2 >= fuzz->slen; in fuzz_strategy_done()
273 return fuzz->o1 >= fuzz->slen; in fuzz_strategy_done()
333 assert(fuzz->o1 < fuzz->slen); in fuzz_next()
345 if (fuzz->o1 >= fuzz->slen) { in fuzz_next()
403 return fuzz->slen; in fuzz_len()
[all …]
/openbsd/sys/dev/isa/
H A Dspkr.c219 slen--; \ in playstring()
246 slen--; in playstring()
250 slen--; in playstring()
285 slen--; in playstring()
297 slen--; in playstring()
301 slen--; in playstring()
325 slen--; in playstring()
344 slen--; in playstring()
361 slen--; in playstring()
365 slen--; in playstring()
[all …]
/openbsd/gnu/gcc/libssp/
H A Dstrncat-chk.c46 size_t n, size_t slen) in __strncat_chk() argument
53 if (slen-- == 0) in __strncat_chk()
59 ++slen; in __strncat_chk()
67 if (slen-- == 0) in __strncat_chk()
73 if (slen-- == 0) in __strncat_chk()
79 if (slen-- == 0) in __strncat_chk()
85 if (slen-- == 0) in __strncat_chk()
91 if (slen-- == 0) in __strncat_chk()
103 if (slen-- == 0) in __strncat_chk()
114 if (slen-- == 0) in __strncat_chk()
H A Dgets-chk.c58 __gets_chk (char *s, size_t slen) in __gets_chk() argument
62 if (slen >= (size_t) INT_MAX) in __gets_chk()
65 if (slen <= 8192) in __gets_chk()
66 buf = alloca (slen + 1); in __gets_chk()
68 buf = malloc (slen + 1); in __gets_chk()
72 ret = fgets (buf, (int) (slen + 1), stdin); in __gets_chk()
78 if (len == slen) in __gets_chk()
85 if (slen > 8192) in __gets_chk()
H A Dstrcat-chk.c46 size_t slen) in __strcat_chk() argument
54 if (slen-- == 0) in __strcat_chk()
60 ++slen; in __strcat_chk()
65 if (slen-- == 0) in __strcat_chk()
H A Dvsprintf-chk.c51 size_t slen, const char *format, va_list arg) in __vsprintf_chk() argument
55 if (slen > (size_t) INT_MAX) in __vsprintf_chk()
59 done = vsnprintf (s, slen, format, arg); in __vsprintf_chk()
60 if (done >= 0 && (size_t) done >= slen) in __vsprintf_chk()
H A Dsprintf-chk.c51 size_t slen, const char *format, ...) in __sprintf_chk() argument
57 if (slen > (size_t) INT_MAX) in __sprintf_chk()
61 done = vsnprintf (s, slen, format, arg); in __sprintf_chk()
62 if (done >= 0 && (size_t) done >= slen) in __sprintf_chk()
/openbsd/gnu/usr.bin/perl/cpan/Encode/
H A DEncode.xs71 if (*slen) { in utf8_safe_downgrade()
171 slen = 0; in encode_method()
173 tlen = slen; in encode_method()
234 utf8n_to_uvchr(s+slen, (tlen-sdone-slen), in encode_method()
623 STRLEN slen;
642 e = s+slen;
682 STRLEN slen;
697 e = s+slen;
794 STRLEN slen; variable
829 STRLEN slen; variable
[all …]
H A Dencengine.c95 do_encode(const encpage_t * enc, const U8 * src, STRLEN * slen, U8 * dst, in do_encode() argument
99 const U8 *send = s + *slen; in do_encode()
111 if (byte >= e->min && e->slen && (approx || !(e->slen & 0x80))) { in do_encode()
112 const U8 *cend = s + (e->slen & 0x7f); in do_encode()
135 if (approx && (e->slen & 0x80)) in do_encode()
157 *slen = last - src; in do_encode()
/openbsd/usr.sbin/unbound/dnstap/
H A Ddnstap_fstrm.c178 size_t remain, slen = sizeof(buf); in fstrm_describe_control() local
189 (void)sldns_str_print(&str, &slen, "accept"); in fstrm_describe_control()
191 (void)sldns_str_print(&str, &slen, "start"); in fstrm_describe_control()
193 (void)sldns_str_print(&str, &slen, "stop"); in fstrm_describe_control()
195 (void)sldns_str_print(&str, &slen, "ready"); in fstrm_describe_control()
197 (void)sldns_str_print(&str, &slen, "finish"); in fstrm_describe_control()
214 (void)sldns_str_print(&str, &slen, " content-type("); in fstrm_describe_control()
218 (void)sldns_str_print(&str, &slen, "%s", tempf); in fstrm_describe_control()
222 (void)sldns_str_print(&str, &slen, ")"); in fstrm_describe_control()
224 (void)sldns_str_print(&str, &slen, in fstrm_describe_control()
[all …]
/openbsd/usr.sbin/unbound/ipsecmod/
H A Dipsecmod.c191 for(i = 0; i < slen; i++) { in domainname_has_safe_characters()
267 slen = sizeof(str); in call_hook()
268 memset(s, 0, slen); in call_hook()
273 w += sldns_str_print(&s, &slen, " "); in call_hook()
289 w += sldns_str_print(&s, &slen, " "); in call_hook()
294 w += sldns_str_print(&s, &slen, " "); in call_hook()
322 } else if((size_t)w_temp >= slen) { in call_hook()
324 slen = 0; in call_hook()
329 slen -= w_temp; in call_hook()
335 w += sldns_str_print(&s, &slen, " "); in call_hook()
[all …]
/openbsd/regress/sys/kern/realpath/
H A Drealpath3.c60 ssize_t slen; in realpath3() local
182 slen = readlink(resolved, symlink, sizeof(symlink)); in realpath3()
183 if (slen < 0) { in realpath3()
197 } else if (slen == 0) { in realpath3()
200 } else if (slen == sizeof(symlink)) { in realpath3()
209 symlink[slen] = '\0'; in realpath3()
226 if (symlink[slen - 1] != '/') { in realpath3()
227 if (slen + 1 >= sizeof(symlink)) { in realpath3()
231 symlink[slen] = '/'; in realpath3()
232 symlink[slen + 1] = 0; in realpath3()
/openbsd/regress/lib/libc/regex/
H A Dt_exhaust.c51 size_t i, slen = strlen(str); in mkstr() local
52 char *p = malloc(slen * len + 1); in mkstr()
56 strlcpy(&p[i * slen], str, slen * len + 1 - (i * slen)); in mkstr()
64 size_t slen = strlen(s); in concat() local
65 char *p = malloc(dlen + slen + 1); in concat()
66 strlcpy(p, d, dlen + slen + 1); in concat()
67 strlcat(p, s, dlen + slen + 1); in concat()
/openbsd/usr.bin/ssh/
H A Dsftp-realpath.c62 int serrno, slen, mem_allocated; in sftp_realpath() local
171 slen = readlink(resolved, symlink, sizeof(symlink) - 1); in sftp_realpath()
172 if (slen < 0) in sftp_realpath()
174 symlink[slen] = '\0'; in sftp_realpath()
192 if (symlink[slen - 1] != '/') { in sftp_realpath()
193 if (slen + 1 >= in sftp_realpath()
198 symlink[slen] = '/'; in sftp_realpath()
199 symlink[slen + 1] = 0; in sftp_realpath()
/openbsd/sys/dev/ofw/
H A Dofw_regulator.c365 int glen, slen, i; in regulator_gpio_get() local
371 if ((slen = OF_getproplen(node, "states")) <= 0) in regulator_gpio_get()
374 if (slen % (2 * sizeof(uint32_t)) != 0) in regulator_gpio_get()
378 states = malloc(slen, M_TEMP, M_WAITOK); in regulator_gpio_get()
400 if (i >= slen / (2 * sizeof(uint32_t))) in regulator_gpio_get()
404 free(states, M_TEMP, slen); in regulator_gpio_get()
416 int glen, slen, i; in regulator_gpio_set() local
439 if (slen % (2 * sizeof(uint32_t)) != 0) in regulator_gpio_set()
443 states = malloc(slen, M_TEMP, M_WAITOK); in regulator_gpio_set()
457 if (i >= slen / (2 * sizeof(uint32_t))) in regulator_gpio_set()
[all …]
/openbsd/gnu/usr.bin/perl/ext/VMS-DCLsym/
H A DDCLsym.xs81 STRLEN slen; variable
89 namdsc.dsc$a_pointer = SvPV(name,slen);
90 namdsc.dsc$w_length = (unsigned short int) slen;
91 valdsc.dsc$a_pointer = SvPV(val,slen);
92 valdsc.dsc$w_length = (unsigned short int) slen;
121 STRLEN slen; variable
129 namdsc.dsc$a_pointer = SvPV(name,slen);
130 namdsc.dsc$w_length = (unsigned short int) slen;
/openbsd/regress/lib/libssl/interop/
H A Dutil.c88 socklen_t slen; in print_sockname() local
94 slen = sizeof(ss); in print_sockname()
95 if (getsockname(fd, (struct sockaddr *)&ss, &slen) == -1) in print_sockname()
109 socklen_t slen; in print_peername() local
115 slen = sizeof(ss); in print_peername()
116 if (getpeername(fd, (struct sockaddr *)&ss, &slen) == -1) in print_peername()
/openbsd/gnu/usr.bin/perl/dist/Unicode-Normalize/
H A DNormalize.xs214 U8* e = s + slen; in pv_utf8_decompose()
252 U8* e = s + slen; in pv_utf8_reorder()
325 U8* e = s + slen; in pv_utf8_compose()
448 STRLEN slen, dlen; variable
452 dlen = slen;
470 STRLEN slen, dlen; variable
474 dlen = slen;
494 STRLEN slen, dlen; variable
498 dlen = slen;
523 tlen = slen;
[all …]
/openbsd/usr.sbin/dhcpd/
H A Dprint.c61 int i, j, slen = sizeof(habuf); in print_hw_addr() local
71 j = snprintf(s, slen, "%02x", data[i]); in print_hw_addr()
72 if (j <= 0 || j >= slen) in print_hw_addr()
76 slen -= (j + 1); in print_hw_addr()
/openbsd/lib/libc/stdlib/
H A Dmkstemp.c33 mkostemps(char *path, int slen, int flags) in mkostemps() argument
39 return __mktemp4(path, slen, flags, mkstemp_cb); in mkostemps()
61 mkstemps(char *path, int slen) in mkstemps() argument
63 return __mktemp4(path, slen, 0, mkstemp_cb); in mkstemps()

12345678910