• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libevent/

Lines Matching refs:space

737 		 * be the first one with space in it. */
747 /* Advance 'firstchain' to the first chain with space in it. */
1395 /* already have enough space in the first chain */
1761 /* there's enough space to hold all the data in the
1855 /* we have enough space to fit everything */
1925 /* Expands the available space in the event buffer to at least datlen, all in
1936 /* XXX If *chainp is no longer writeable, but has enough space in its
1942 /* 'chain' now points to the first chain with writable space (if any)
1965 /* If the misalignment plus the remaining space fulfills our data
1967 * have enough space. But only do this if we're saving a lot of space
1968 * and not moving too much data. Otherwise the space savings are
1977 /* At this point, we can either resize the last chunk with space in
2004 /* figure out how much space we need */
2060 used = 0; /* number of chains we're using space in. */
2061 avail = 0; /* how much space they have. */
2064 * space we have in the first n. */
2067 size_t space = (size_t) CHAIN_SPACE_LEN(chain);
2069 if (space) {
2070 avail += space;
2080 /* There is already enough space. Just return */
2087 /* There wasn't enough space in the first n chains with space in
2088 * them. Either add a new chain with enough space, or replace all
2089 * empty chains with one that has enough space, depending on n. */
2200 /** Helper function to figure out which space to use for reading data into
2210 space in the vectors, even if more space is available.
2228 /* Let firstchain be the first chain with any space on it */
2339 /* If we don't have FIONREAD, we might waste some space here */
2340 /* XXX we _will_ waste some space here if there is any space left
2371 size_t space = (size_t) CHAIN_SPACE_LEN(*chainp);
2372 /* XXXX This is a kludge that can waste space in perverse
2374 if (space > EVBUFFER_CHAIN_MAX)
2375 space = EVBUFFER_CHAIN_MAX;
2376 if ((ev_ssize_t)space < remaining) {
2377 (*chainp)->off += space;
2378 remaining -= (int)space;
2834 size_t space;
2846 /* make sure that at least some space is available */
2855 space = chain->buffer_len - used;
2858 space = (size_t) CHAIN_SPACE_LEN(chain);
2865 sz = evutil_vsnprintf(buffer, space, fmt, aq);
2874 if ((size_t)sz < space) {