Searched refs:s_len (Results 1 – 3 of 3) sorted by relevance
38 memmem(const void *l, size_t l_len, const void *s, size_t s_len) in memmem() argument45 if (s_len == 0) in memmem()49 if (l_len < s_len) in memmem()53 if (s_len == 1) in memmem()57 last = cl + l_len - s_len; in memmem()60 if (cur[0] == cs[0] && memcmp(cur, cs, s_len) == 0) in memmem()
74 #define SBUF_HASROOM(s) ((s)->s_len < (s)->s_size - 1)75 #define SBUF_FREESPACE(s) ((s)->s_size - ((s)->s_len + 1))111 KASSERT(s->s_len <= s->s_size, in _assert_sbuf_integrity()113 (intmax_t)s->s_len, (intmax_t)s->s_size)); in _assert_sbuf_integrity()115 KASSERT(s->s_len < s->s_size, in _assert_sbuf_integrity()117 (intmax_t)s->s_len, (intmax_t)s->s_size)); in _assert_sbuf_integrity()271 s->s_len = s->s_size - 1;313 s->s_len = 0; in sbuf_clear()336 if (pos < 0 || pos > s->s_len) in sbuf_setpos()338 s->s_len = pos; in sbuf_setpos()[all …]
48 ssize_t s_len; /* current length of string */ member