/haiku/src/apps/mail/ |
H A D | Utilities.cpp | 70 int32 len; local 73 len = strlen(str1) + 1; 74 for (loop = 0; loop < len; loop++) { 165 linelen(char* str, int32 len, bool header) argument 169 for (loop = 0; loop < len; loop++) { 176 return len;
|
/haiku/src/libs/stdc++/legacy/ |
H A D | isgetline.cc | 29 istream& istream::getline(char* buf, int len, char delim) argument 32 if (len <= 0) 43 _gcount = _IO_getline_info(sb, buf, len - 1, delim, -1, &ch); 64 istream& istream::get(char* buf, int len, char delim) argument 67 if (len <= 0) 78 _gcount = _IO_getline_info(sbuf, buf, len - 1, delim, -1, &ch);
|
/haiku/src/libs/compat/freebsd_network/ |
H A D | fbsd_ether.c | 47 ether_crc32_le(const uint8_t *buf, size_t len) 56 for (i = 0; i < len; i++) { 68 ether_crc32_le(const uint8_t *buf, size_t len) argument 81 for (i = 0; i < len; i++) { 92 ether_crc32_be(const uint8_t *buf, size_t len) argument 101 for (i = 0; i < len; i++) { 132 /* M_PREPEND takes care of m_len, m_pkthdr.len for us */
|
H A D | fbsd_kern_mbuf.c | 42 m_getm2(struct mbuf *m, int len, int how, short type, int flags) argument 46 KASSERT(len >= 0, ("%s: len is < 0", __func__)); 56 while (len > 0) { 57 if (len > MCLBYTES) 60 else if (len >= MINCLSIZE) 75 len -= M_SIZE(mb);
|
H A D | fbsd_uipc_mbuf2.c | 89 * ensure that [off, off + len) is contiguous on the mbuf chain "m". 99 m_pulldown(struct mbuf *m, int off, int len, int *offp) argument 108 if (len > MCLBYTES) { 166 if ((off == 0 || offp) && len <= n->m_len - off) 170 * when len <= n->m_len - off and off != 0, it is a special case. 171 * len bytes from <n, off> sits in single mbuf, but the caller does 175 if (len <= n->m_len - off) { 191 * and construct contiguous mbuf with m_len == len. 192 * note that hlen + tlen == len, and tlen > 0. 195 tlen = len 272 m_dup1(struct mbuf *m, int off, int len, int wait) argument 319 m_tag_alloc(uint32_t cookie, int type, int len, int wait) argument [all...] |
/haiku/src/bin/ |
H A D | badblocks.cpp | 21 size_t len = group * blockSize; local 27 buffer = (char *)malloc(len); 46 for (; block <= endBlock; block += group, at += len) { 50 got = pread(fd, buffer, len, at); 51 if (got == len) 56 block, at, got, len);
|
/haiku/src/libs/libfdt/ |
H A D | fdt_sw.c | 94 static void *fdt_grab_space_(void *fdt, size_t len) argument 102 if ((offset + len < offset) || (offset + len > spaceleft)) 105 fdt_set_size_dt_struct(fdt, offset + len); 254 unsigned int len = strlen(s) + 1; local 257 offset = strtabsize + len; 262 memcpy(strtab - offset, s, len); 263 fdt_set_size_dt_strings(fdt, strtabsize + len); 271 int len = strlen(s) + 1; local 273 fdt_set_size_dt_strings(fdt, strtabsize - len); 293 fdt_property_placeholder(void *fdt, const char *name, int len, void **valp) argument 325 fdt_property(void *fdt, const char *name, const void *val, int len) argument [all...] |
/haiku/src/tests/system/network/ |
H A D | udp_echo.c | 34 unsigned int len;
local 38 len = strlen(buf);
39 if (len > 0)
40 len--;
41 printf("trying to send %u bytes...\n", len);
42 status = sendto(sockFD, buf, len, 0,
48 len = 0;
65 int len;
local 69 len = strlen(buf);
73 status = sendto(sockFD, buf, len, 95 socklen_t len; local [all...] |
/haiku/src/kits/storage/ |
H A D | storage_support.cpp | 141 int len = strlen(fullPath); local 148 for (int pos = len-1; ; pos--) { 210 int leafStart, leafEnd, pathEnd, len; local 263 len = pathEnd + 1; 264 *path = new char[len+1]; 265 memcpy(*path, fullPath, len); 266 (*path)[len] = 0; 270 len = leafEnd - leafStart + 1; 271 *leaf = new char[len+1]; 272 memcpy(*leaf, fullPath + leafStart, len); 446 int32 len = strlen(str); local [all...] |
/haiku/src/libs/compat/openbsd_network/compat/sys/ |
H A D | mbuf-obsd.h | 93 int len; local 97 len = m0->m_pkthdr.len + adj; 98 if (len > MAXMCLBYTES) /* XXX */ 108 if (len > MHLEN) { 109 MCLGETL(m, wait, len); 114 m->m_len = m->m_pkthdr.len = len; 116 m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t)); 227 unsigned int len; local [all...] |
/haiku/headers/libs/agg/ |
H A D | agg_span_interpolator_adaptor.h | 45 double x, double y, unsigned len) : 46 base_type(trans, x, y, len), 43 span_interpolator_adaptor(const trans_type& trans, const distortion_type& dist, double x, double y, unsigned len) argument
|
/haiku/src/libs/iconv/ |
H A D | euc_jisx0213.h | 155 unsigned int len; local 159 len = euc_jisx0213_comp_table02e5_len; 162 len = euc_jisx0213_comp_table02e9_len; 165 len = euc_jisx0213_comp_table0300_len; 168 len = euc_jisx0213_comp_table0301_len; 171 len = euc_jisx0213_comp_table309a_len; 178 while (++idx, --len > 0); 180 if (len > 0) {
|
/haiku/src/libs/util/ |
H A D | fparseln.c | 83 size_t s, len; local 93 len = 0; 146 if ((cp = realloc(buf, len + s + 1)) == NULL) { 152 (void) memcpy(buf + len, ptr, s); 153 len += s; 154 buf[len] = '\0'; 185 len = strlen(buf); 189 *size = len;
|
/haiku/src/add-ons/translators/psd/ |
H A D | DataArray.cpp | 141 int32 len = strlen(str); local 142 status_t status = _ReallocArrayFor(len); 144 memcpy(fData + fDataSize, str, len); 145 fDataSize += len; 166 BDataArray::Append(uint8 *ptr, int32 len) argument 168 status_t status = _ReallocArrayFor(len); 170 memcpy(fData + fDataSize, ptr, len); 171 fDataSize += len;
|
/haiku/headers/compatibility/bsd/sys/ |
H A D | ioccom.h | 69 /** @def _IOC(inout, group, num , len) create a new ioctl */ 70 #define _IOC(inout, group, num, len) \ 71 (inout | ((len & IOCPARM_MASK)<<16) | ((group) << 8) | (num))
|
/haiku/headers/os/drivers/bus/ |
H A D | FDT.h | 25 const void* (*get_prop)(struct fdt_device* dev, const char* name, int* len); 26 bool (*get_reg)(struct fdt_device* dev, uint32 ord, uint64* regs, uint64* len);
|
/haiku/src/tests/kits/shared/ |
H A D | ChecksumJsonEventListener.cpp | 82 ChecksumJsonEventListener::_ChecksumProcessCharacters(const char* content, size_t len) argument 84 for (size_t i = 0; i < len; i++) {
|
/haiku/src/add-ons/kernel/debugger/laplinkll/ |
H A D | laplinkll.cpp | 282 status_t ll_send_frame(laplink_state *st, const uint8 *buff, size_t *len) argument 285 uint16 pktlen = *len; 287 *len = 0; 297 for (*len = 0; *len < pktlen; (*len)++) { 298 err = ll_send_byte_uf(st, buff[*len]); 301 cksum += buff[*len]; 311 *len = 0; 317 status_t ll_check_frame(laplink_state *st, uint8 *buff, size_t *len) argument 365 ll_wait_frame(laplink_state *st, uint8 *buff, size_t *len) argument 401 size_t len; local [all...] |
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/ |
H A D | nbd.h | 25 uint32 len; member in struct:nbd_request
|
/haiku/src/add-ons/media/media-add-ons/firewire_dv/ |
H A D | FireWireCard.cpp | 182 int len; local 203 len = read(fDev, buf, 1024*16); 204 if (len < 0) { 241 ssize_t len; local 259 len = read(fDev, fBuf, DV_RBUFSIZE); 260 if (len < 0) { 269 return len; 293 if (pkt->mode.stream.len <= sizeof(struct ciphdr)) 297 (char*)dv < (char *)(ptr + ciph->len); 351 ssize_t len; local [all...] |
/haiku/headers/private/fs_shell/ |
H A D | fssh_fs_query.h | 37 char *buf, fssh_size_t len);
|
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_alq.h | 59 uint16_t srcid, const uint8_t *src, size_t len);
|
/haiku/src/system/libnetwork/netresolv/inet/ |
H A D | nsap_addr.c | 54 u_int len = 0; local 63 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) { 77 len++; 87 return (len);
|
/haiku/src/apps/haikudepot/model/ |
H A D | Captcha.h | 31 void SetPngImageData(const void* data, size_t len);
|
/haiku/src/add-ons/media/media-add-ons/usb_webcam/ |
H A D | CamSensor.cpp | 135 ssize_t len; local 136 len = Device()->ReadIIC8(regList[i], &value); 137 PRINT((CH ": ReadIIC8 = %" B_PRIdSSIZE " val = %d" CT, len, value)); 138 if (len < 1)
|