Searched refs:len (Results 1 - 25 of 841) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/string/
H A Dmemmove.c23 int len; local
32 len = count; // copy the rest of the buffer with the byte mover
34 len = lsize - ((long)d & lmask); // move the ptrs up to a word boundary
36 count -= len;
37 for (; len > 0; len--)
40 for (len = count / lsize; len > 0; len--) {
45 for (len
[all...]
/haiku/src/libs/bsd/
H A Dexplicit_bzero.c10 __explicit_bzero_hook(void *buf, size_t len);
13 __explicit_bzero_hook(void *buf, size_t len) argument
18 explicit_bzero(void *buf, size_t len) argument
20 memset(buf, 0, len);
21 __explicit_bzero_hook(buf, len);
/haiku/src/tools/fs_shell/
H A Dpath_util.cpp20 int len = strlen(path); local
21 if (len == 0)
25 while (len > 0 && path[len - 1] == '/')
26 len--;
28 if (len == 0) {
30 len = 1;
33 int pos = len - 1;
40 len -= pos;
43 if (len >
[all...]
H A Dexternal_commands.h12 bool get_external_command(char* input, int len);
/haiku/src/system/libroot/posix/string/arch/generic/
H A Dmemcpy.c19 int len; local
27 len = count; // copy the rest of the buffer with the byte mover
29 len = lsize - ((long)d & lmask); // move the ptrs up to a word boundary
31 count -= len;
32 for(; len > 0; len--)
35 for(len = count / lsize; len > 0; len--) {
40 for(len
[all...]
/haiku/src/libs/stdc++/legacy/
H A Dstream.cc94 char* dec(long i, int len /* = 0 */)
96 if (i >= 0) return itoa((unsigned long)i, len, 0, 10);
97 else return itoa((unsigned long)(-i), len, 1, 10);
99 char* dec(int i, int len /* = 0 */)
101 if (i >= 0) return itoa((unsigned long)i, len, 0, 10);
102 else return itoa((unsigned long)(-i), len, 1, 10);
104 char* dec(unsigned long i, int len /* = 0 */)
106 return itoa(i, len, 0, 10);
108 char* dec(unsigned int i, int len /* = 0 */)
110 return itoa(i, len,
147 str(const char* s, int len, int width) argument
[all...]
H A Disgetsb.cc39 streamsize len = isb->_IO_read_end - isb->_IO_read_ptr; local
40 if (len <= 0)
44 len = isb->_IO_read_end - isb->_IO_read_ptr;
45 char *delimp = (char*)memchr((void*)isb->_IO_read_ptr, delim, len);
47 len = delimp - isb->_IO_read_ptr;
48 int written = sb.sputn(isb->_IO_read_ptr, len);
51 if (written != len)
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A Dhashes.h40 uint32 keyed_hash(const signed char *msg, int len);
41 uint32 yura_hash(const signed char *msg, int len);
42 uint32 r5_hash(const signed char *msg, int len);
44 uint32 key_offset_for_name(hash_function_t hash, const char *name, int len);
/haiku/src/libs/compat/freebsd_network/
H A Dlibkern.cpp15 read_random(void* buf, u_int len) argument
18 for (int i = 0; i < len; i++)
20 return len;
25 arc4rand(void *ptr, u_int len, int reseed) argument
27 read_random(ptr, len);
/haiku/headers/libs/agg/
H A Dagg_pixfmt_amask_adaptor.h40 void realloc_span(unsigned len) argument
42 if(len > m_span.size())
44 m_span.resize(len + span_extra_tail);
48 void init_span(unsigned len) argument
50 realloc_span(len);
51 memset(&m_span[0], amask_type::cover_full, len * sizeof(cover_type));
54 void init_span(unsigned len, const cover_type* covers) argument
56 realloc_span(len);
57 memcpy(&m_span[0], covers, len * sizeof(cover_type));
100 unsigned len,
99 copy_hline(int x, int y, unsigned len, const color_type& c) argument
109 blend_hline(int x, int y, unsigned len, const color_type& c, cover_type cover) argument
120 copy_vline(int x, int y, unsigned len, const color_type& c) argument
130 blend_vline(int x, int y, unsigned len, const color_type& c, cover_type cover) argument
141 copy_from(const rendering_buffer& from, int xdst, int ydst, int xsrc, int ysrc, unsigned len) argument
151 blend_solid_hspan(int x, int y, unsigned len, const color_type& c, const cover_type* covers) argument
163 blend_solid_vspan(int x, int y, unsigned len, const color_type& c, const cover_type* covers) argument
175 copy_color_hspan(int x, int y, unsigned len, const color_type* colors) argument
183 copy_color_vspan(int x, int y, unsigned len, const color_type* colors) argument
191 blend_color_hspan(int x, int y, unsigned len, const color_type* colors, const cover_type* covers, cover_type cover = cover_full) argument
212 blend_color_vspan(int x, int y, unsigned len, const color_type* colors, const cover_type* covers, cover_type cover = cover_full) argument
[all...]
H A Dagg_scanline_p.h53 coord_type len; // If negative, it's a solid span, covers is valid member in struct:agg::scanline_p8::span
81 m_cur_span->len = 0;
88 if(x == m_last_x+1 && m_cur_span->len > 0)
90 m_cur_span->len++;
97 m_cur_span->len = 1;
104 void add_cells(int x, unsigned len, const cover_type* covers) argument
106 memcpy(m_cover_ptr, covers, len * sizeof(cover_type));
107 if(x == m_last_x+1 && m_cur_span->len > 0)
109 m_cur_span->len += (int16)len;
123 add_span(int x, unsigned len, unsigned cover) argument
196 coord_type len; // If negative, it's a solid span, covers is valid member in struct:agg::scanline32_p8::span
260 add_cells(int x, unsigned len, const cover_type* covers) argument
276 add_span(int x, unsigned len, unsigned cover) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/googlefs/
H A Dringbuff.c56 size_t rb_write(struct ring_buffer *rb, void *data, size_t len) argument
63 towrite = MIN(len, towrite);
66 len = rb->size - index;
67 len = MIN(len, towrite);
68 memcpy(((char *)rb->data)+index, data, len);
69 rb->avail += len;
70 written = len;
71 if (len < towrite) {
72 towrite -= len;
83 rb_read(struct ring_buffer *rb, void *data, size_t len) argument
124 int len, olen; local
[all...]
/haiku/src/system/libroot/posix/glibc/include/
H A Dalloca.h23 # define extend_alloca(buf, len, newlen) \
27 len += __newlen; \
29 len = __newlen; \
32 # define extend_alloca(buf, len, newlen) \
38 len += __newlen; \
42 len = __newlen; \
45 # define extern_alloca(buf, len, newlen) \
46 __alloca (((len) = (newlen)))
/haiku/src/tests/system/network/sock/
H A Dpattern.c15 pattern(char *ptr, int len) argument
20 while(len-- > 0) {
/haiku/src/servers/app/drawing/Painter/
H A Dagg_scanline_p_subpix.h39 coord_type len; // If negative, it's a solid span, covers is valid member in struct:agg::scanline_p8_subpix::span
67 m_cur_span->len = 0;
76 if(x == m_last_x+1 && m_cur_span->len > 0)
78 m_cur_span->len += 3;
85 m_cur_span->len = 3;
92 void add_cells(int x, unsigned len, const cover_type* covers) argument
94 memcpy(m_cover_ptr, covers, 3 * len * sizeof(cover_type));
95 if(x == m_last_x+1 && m_cur_span->len > 0)
97 m_cur_span->len += 3 * (int16)len;
111 add_span(int x, unsigned len, unsigned cover) argument
[all...]
H A Dagg_scanline_p_subpix_avrg_filtering.h40 coord_type len; // If negative, it's a solid span, covers is valid member in struct:agg::scanline_p8_subpix_avrg_filtering::span
68 m_cur_span->len = 0;
104 if(x == m_last_x+1 && m_cur_span->len > 0)
106 m_cur_span->len += 3;
113 m_cur_span->len = 3;
120 void add_cells(int x, unsigned len, const cover_type* covers) argument
122 memcpy(m_cover_ptr, covers, 3 * len * sizeof(cover_type));
123 if(x == m_last_x+1 && m_cur_span->len > 0)
125 m_cur_span->len += 3 * (int16)len;
139 add_span(int x, unsigned len, unsigned cover) argument
[all...]
/haiku/headers/private/kernel/arch/sh4/
H A Drtl8139_priv.h10 void rtl8139_xmit(const char *ptr, int len);
/haiku/src/system/libroot/posix/glibc/libio/
H A Dioputs.c38 _IO_size_t len = strlen(str); local
44 && _IO_sputn(_IO_stdout, str, len) == len
46 result = len + 1;
H A Diofputs_u.c37 _IO_size_t len = strlen (str); local
40 if (_IO_fwide (fp, -1) == -1 && _IO_sputn (fp, str, len) == len)
H A Diofputws_u.c37 _IO_size_t len = __wcslen (str); local
41 && _IO_sputn (fp, (char *) str, len) == len)
H A Diogetline.c70 _IO_ssize_t len = fp->_IO_read_end - fp->_IO_read_ptr; variable
71 if (len <= 0)
86 ++len;
95 if ((_IO_size_t) len >= n)
96 len = n;
97 t = (char *) memchr ((void *) fp->_IO_read_ptr, delim, len);
101 len = t - fp->_IO_read_ptr;
106 ++len;
108 memcpy ((void *) ptr, (void *) fp->_IO_read_ptr, len);
110 return old_len + len;
[all...]
H A Diogetwline.c73 _IO_ssize_t len = (fp->_wide_data->_IO_read_end local
75 if (len <= 0)
92 ++len;
100 if ((_IO_size_t) len >= n)
101 len = n;
102 t = wmemchr ((void *) fp->_wide_data->_IO_read_ptr, delim, len);
106 len = t - fp->_wide_data->_IO_read_ptr;
111 ++len;
114 len);
116 return old_len + len;
[all...]
/haiku/src/libs/compat/freebsd_network/compat/machine/
H A Din_cksum.h12 #define in_cksum(m, len) in_cksum_skip(m, len, 0)
25 in_cksum_skip(struct mbuf* m, int len, int skip) argument
/haiku/src/apps/codycam/
H A DSftpClient.cpp32 int len; local
39 len = ReadReply(&reply);
40 if (len < 0) {
41 fprintf(stderr, _GetReadText(), len);
56 int len; local
61 len = ReadReply(&reply);
62 if (len < 0) {
63 fprintf(stderr, _GetReadText(), len);
108 ssize_t len; local
110 len
159 int len; local
204 int len; local
255 int len; local
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dtst-wprintf2.c23 size_t len; local
65 len = strlen(buf);
66 if (buf[len - 1] == '\n')
67 --len;
72 printf("1st line: \"%.*s\" -> %s\n", (int) len, buf,
73 strncmp(buf, "test start int 3", len) == 0 ? "OK" : "FAIL");
74 res |= strncmp(buf, "test start int 3", len) != 0;
78 len = strlen(buf);
79 if (buf[len - 1] == '\n')
80 --len;
[all...]

Completed in 295 milliseconds

1234567891011>>