/haiku-fatelf/src/add-ons/input_server/methods/canna/lib/ |
H A D | ebind.c | 43 int ret, rest, totallen = 0, len; local 62 len = WCstombs(ebuf + ret + 1, wbuf + wbuflen + 1, 66 WCstombs(ebuf + ret + 1 + len + 1, ep + 1, 67 maxebuf - ret - 1 - len - 1); 107 len = ks->revPos = CNvW2E(wks->echoStr, wks->revPos, p, rest); 108 p += len; 109 rest -= len; 112 len = ks->revLen 114 p += len; 115 rest -= len; [all...] |
/haiku-fatelf/src/bin/gdb/bfd/ |
H A D | elf-strtab.c | 34 int len; member in struct:elf_strtab_hash_entry 39 /* Entry this is a suffix of (if len < 0). */ 84 ret->len = 0; 157 if (entry->len == 0) 159 entry->len = strlen (str) + 1; 161 BFD_ASSERT (entry->len > 0); 239 register unsigned int len; local 242 len = tab->array[i]->len; 243 if ((int) len < [all...] |
/haiku-fatelf/src/add-ons/translators/icns/openjpeg/ |
H A D | tpix_manager.c | 57 int len, lenp; local 64 len = cio_tell( cio)-lenp; 66 cio_write( cio, len, 4); /* L */ 67 cio_seek( cio, lenp+len); 69 return len; 83 int len, lenp; local 136 len = cio_tell( cio)-lenp; 138 cio_write( cio, len, 4); /* L */ 139 cio_seek( cio, lenp+len); 141 return len; [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | scm-exp.c | 43 scm_istr2int (char *str, int len, int radix) argument 50 if (0 >= len) 57 if (++i == len) 101 while (i < len); 108 scm_istring2number (char *str, int len, int radix) argument 116 if (len == 1) 120 while ((len - i) >= 2 && str[i] == '#' && ++i) 166 return scm_istr2int (&str[i], len - i, radix); 168 return scm_istr2int (&str[i], len - i, radix); 174 return scm_istr2flo (&str[i], len [all...] |
/haiku-fatelf/src/bin/sharutils/intl/ |
H A D | bindtextdom.c | 105 size_t len = strlen (dirname) + 1; local 106 new_dirname = (char *) malloc (len); 110 memcpy (new_dirname, dirname, len); 121 size_t len; local 128 len = strlen (domainname) + 1; 129 new_binding->domainname = (char *) malloc (len); 132 memcpy (new_binding->domainname, domainname, len); 138 len = strlen (dirname) + 1; 139 new_binding->dirname = (char *) malloc (len); 142 memcpy (new_binding->dirname, dirname, len); [all...] |
/haiku-fatelf/src/servers/app/drawing/Painter/ |
H A D | agg_scanline_u_subpix_avrg_filtering.h | 35 coord_type len; member in struct:agg::scanline_u8_subpix_avrg_filtering::span 99 m_cur_span->len += 3; 105 m_cur_span->len = 3; 112 void add_span(int x, unsigned len, unsigned cover) argument 115 memset(&m_covers[3 * x], cover, 3 * len); 118 m_cur_span->len += 3 * (coord_type)len; 124 m_cur_span->len = 3 * (coord_type)len; 127 m_last_x = x + len [all...] |
/haiku-fatelf/src/system/boot/platform/u-boot/ |
H A D | serial.cpp | 105 int len; local 128 type = (const char *)fdt_getprop(fdt, node, "device_type", &len); 137 prop = fdt_getprop(fdt, node, "virtual-reg", &len); 138 if (prop && len == 4) { 142 prop = fdt_getprop(fdt, node, "reg", &len); 143 if (prop && len >= 4) { 151 prop = fdt_getprop(fdt, node, "clock-frequency", &len); 152 if (prop && len == 4) { 158 prop = fdt_getprop(fdt, node, "current-speed", &len); 159 if (prop && len [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mmap/ |
H A D | 24-2.c | 9 * and the range [addr,addr+len) exceeds that allowed 42 size_t len; local 81 len = shm_size; 82 pa = mmap (addr, len, prot, flag, fd, off); 91 len = rlim.rlim_cur; 94 printf("addr: %lx, len: %lx\n", (unsigned long)addr, 95 (unsigned long)len); 96 /* Make sure addr and len is aligned to page size */ 103 if (len % page_size) 106 len [all...] |
/haiku-fatelf/headers/libs/agg/ |
H A D | agg_renderer_base.h | 263 void blend_solid_hspan(int x, int y, int len, argument 272 len -= xmin() - x; 273 if(len <= 0) return; 277 if(x + len > xmax()) 279 len = xmax() - x + 1; 280 if(len <= 0) return; 282 m_ren->blend_solid_hspan(x, y, len, c, covers); 286 void blend_solid_hspan_subpix(int x, int y, int len, argument 295 len -= 3 * (xmin() - x); 296 if(len < 309 blend_solid_vspan(int x, int y, int len, const color_type& c, const cover_type* covers) argument 333 copy_color_hspan(int x, int y, int len, const color_type* colors) argument 356 copy_color_vspan(int x, int y, int len, const color_type* colors) argument 379 blend_color_hspan(int x, int y, int len, const color_type* colors, const cover_type* covers, cover_type cover = agg::cover_full) argument 405 blend_color_vspan(int x, int y, int len, const color_type* colors, const cover_type* covers, cover_type cover = agg::cover_full) argument 560 int len = rc.x2; local [all...] |
/haiku-fatelf/src/bin/gdb/gdb/mi/ |
H A D | mi-parse.c | 54 int len; local 58 len = 0; 73 len++; 88 arg = xmalloc ((len + 1) * sizeof (char)); 91 len = 0; 97 arg[len] = parse_escape (&chp); 100 arg[len] = *chp++; 101 len++; 103 arg[len] = '\0'; 111 int len; local [all...] |
/haiku-fatelf/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | Path.cpp | 31 // get the base path len 32 int32 len = strlen(path); 33 if (len == 0) 36 // get leaf len and check, if a separator needs to be inserted 42 insertSeparator = (path[len - 1] != '/' && leaf[0] != '/'); 46 int32 wholeLen = len + leafLen + (insertSeparator ? 1 : 0); 52 memcpy(fBuffer, path, len); 56 fBuffer[len++] = '/'; 60 memcpy(fBuffer + len, leaf, leafLen); 78 // get the leaf len [all...] |
/haiku-fatelf/src/bin/network/ftpd/ |
H A D | md5hl.c | 50 MD5FileChunk(const char *filename, char *buf, off_t ofs, off_t len) argument 66 if ((len == 0) || (len > stbuf.st_size - ofs)) 67 len = stbuf.st_size - ofs; 70 n = len; 91 MD5Data (const void *data, unsigned int len, char *buf) argument 96 MD5Update(&ctx,data,len);
|
/haiku-fatelf/src/documentation/docbook-xsl/fo/ |
H A D | pdf2index | 67 my $len = &rangelen($count, @pages); 68 if ($len <= 2) { 74 while ($len > 1) { 76 $len--; 123 my $len = 1; 133 $len++; 139 return $len;
|
/haiku-fatelf/src/libs/util/ |
H A D | humanize_number.c | 52 humanize_number(char *buf, size_t len, int64_t bytes, argument 93 if (len > 0) 113 if (len < baselen + 1) 118 for (max = 100, i = len - baselen; i-- > 0;) 133 if (len < baselen + 1 + 2) 138 r = snprintf(buf, len, "%d%s%d%s%s%s", 142 r = snprintf(buf, len, "%lld%s%s%s",
|
/haiku-fatelf/src/libs/zlib/ |
H A D | crc32.c | 221 unsigned long ZEXPORT crc32(crc, buf, len) 224 uInt len; 239 return crc32_little(crc, buf, len); 241 return crc32_big(crc, buf, len); 245 while (len >= 8) { 247 len -= 8; 249 if (len) do { 251 } while (--len); 264 local unsigned long crc32_little(crc, buf, len) 267 unsigned len; [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/server/ |
H A D | Path.cpp | 31 // get the base path len 32 int32 len = strlen(path); 33 if (len == 0) 36 // get leaf len and check, if a separator needs to be inserted 42 insertSeparator = (path[len - 1] != '/' && leaf[0] != '/'); 46 int32 wholeLen = len + leafLen + (insertSeparator ? 1 : 0); 52 memcpy(fBuffer, path, len); 56 fBuffer[len++] = '/'; 60 memcpy(fBuffer + len, leaf, leafLen); 78 // get the leaf len [all...] |
/haiku-fatelf/src/bin/bash/ |
H A D | stringlib.c | 131 register int len; local 134 len = end - start; 135 result = (char *)xmalloc (len + 1); 136 strncpy (result, string + start, len); 137 result[len] = '\0'; 191 int len, rlen, ind, tlen; local 193 len = STRLEN (text); 194 rlen = len + strlen (string) + 2; 201 if (len) 216 RESIZE_MALLOCED_BUFFER (ret, ind, len, rle 253 int len = strlen (string); local [all...] |
/haiku-fatelf/src/bin/network/tcpdump/ |
H A D | print-cdp.c | 91 int type, len, i, j; local 113 len = EXTRACT_16BITS(tptr+2); /* object length includes the 4 bytes header length */ 115 len -= 4; 117 if (!TTEST2(*tptr, len)) 126 len, 127 len>1 ? "s" : ""); /* plural */ 133 printf(", Device-ID '%.*s'", len, tptr); 135 printf("'%.*s'", len, tptr); 138 if (cdp_print_addr(tptr, len) < 0) 142 printf("'%.*s'", len, tpt [all...] |
H A D | print-ip6opts.c | 74 ip6_sopt_print(const u_char *bp, int len) argument 79 for (i = 0; i < len; i += optlen) { 83 if (i + 1 < len) 88 if (i + optlen > len) 96 if (len - i < IP6OPT_MINLEN) { 103 if (len - i < IP6SOPT_UI_MINLEN) { 110 if (len - i < IP6SOPT_ALTCOA_MINLEN) { 117 if (len - i < IP6SOPT_AUTH_MINLEN) { 124 if (len - i < IP6OPT_MINLEN) { 128 printf(", sopt_type 0x%02x: len 139 ip6_opt_print(const u_char *bp, int len) argument [all...] |
H A D | print-wb.c | 183 wb_id(const struct pkt_id *id, u_int len) argument 192 if (len < sizeof(*id) || (u_char *)(id + 1) > snapend) 194 len -= sizeof(*id); 205 len -= sizeof(*io) * nid; 208 if ((u_char *)cp + len <= snapend) { 210 (void)fn_print((u_char *)cp, (u_char *)cp + len); 228 wb_rreq(const struct pkt_rreq *rreq, u_int len) argument 231 if (len < sizeof(*rreq) || (u_char *)(rreq + 1) > snapend) 244 wb_preq(const struct pkt_preq *preq, u_int len) argument 247 if (len < sizeo 258 wb_prep(const struct pkt_prep *prep, u_int len) argument 343 wb_rrep(const struct pkt_rrep *rrep, u_int len) argument 367 wb_drawop(const struct pkt_dop *dop, u_int len) argument 391 wb_print(register const void *hdr, register u_int len) argument [all...] |
/haiku-fatelf/src/kits/network/libbind/inet/ |
H A D | inet_cidr_ntop.c | 111 size_t len = 4; local 122 len = 4; 124 for (len = 1, b = 1 ; b < 4U; b++) 126 len = b + 1; 130 if (len > bytes) 131 bytes = len; 163 struct { int base, len; } best, cur; member in struct:__anon4611 181 best.len = 0; 183 cur.len = 0; 187 cur.base = i, cur.len [all...] |
/haiku-fatelf/src/apps/serialconnect/libvterm/src/ |
H A D | parser.c | 106 static void append_strbuffer(VTerm *vt, const char *str, size_t len) argument 108 if(len > vt->strbuffer_len - vt->strbuffer_cur) { 109 len = vt->strbuffer_len - vt->strbuffer_cur; 110 fprintf(stderr, "Truncating strbuffer preserve to %zd bytes\n", len); 113 if(len > 0) { 114 strncpy(vt->strbuffer + vt->strbuffer_cur, str, len); 115 vt->strbuffer_cur += len; 119 static size_t do_string(VTerm *vt, const char *str_frag, size_t len) argument 125 append_strbuffer(vt, str_frag, len); 128 len 190 vterm_push_bytes(VTerm *vt, const char *bytes, size_t len) argument [all...] |
/haiku-fatelf/src/bin/gdb/libiberty/ |
H A D | objalloc.c | 117 _objalloc_alloc (o, len) 119 unsigned long len; 123 if (len == 0) 124 len = 1; 126 len = (len + OBJALLOC_ALIGN - 1) &~ (OBJALLOC_ALIGN - 1); 128 if (len <= o->current_space) 130 o->current_ptr += len; 131 o->current_space -= len; 132 return (PTR) (o->current_ptr - len); [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/pcnet/dev/le/ |
H A D | lance.c | 352 int len, tlen = 0; local 357 len = m->m_len; 358 if (len == 0) { 363 (*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len); 364 boff += len; 365 tlen += len; 388 int len; local 401 m0->m_pkthdr.len = totlen; 402 len = MHLEN; 410 len 642 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len) argument 653 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len) argument 664 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/bus/firewire/ |
H A D | fw_raw.c | 295 int len, pbytes = (int)*num_bytes;//pbytes:to be processed bytes local 325 len = tinfo->hdr_len; 326 len = MIN(len, pbytes); 327 err = user_memcpy(buf, fp, len); 328 pbytes -= len; 329 *num_bytes += len; 330 buf = (void *)((caddr_t)buf + len); 338 len = xfer->recv.pay_len; 339 len 370 int len, pbytes = (int)*num_bytes; local 459 int len, pbytes = (int)*num_bytes; local 551 int len, pbytes = (int)*num_bytes; local 660 int i, len, err = 0; local [all...] |