Home
last modified time | relevance | path

Searched refs:s_len (Results 1 – 3 of 3) sorted by relevance

/haiku/src/system/libroot/posix/string/
H A Dmemmem.c38 memmem(const void *l, size_t l_len, const void *s, size_t s_len) in memmem() argument
45 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()
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_subr_sbuf.c74 #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 …]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dsbuf.h48 ssize_t s_len; /* current length of string */ member