/external/strace/tests-m32/ |
print_quoted_string.c | 21 const size_t len = strnlen(instr, size); local 22 if (len < size) { 23 print_quoted_memory(instr, len); 31 print_quoted_memory(const void *const instr, const size_t len) 37 for (i = 0; i < len; ++i) { 92 print_quoted_hex(const void *const instr, const size_t len) 98 for (i = 0; i < len; i++)
|
/external/strace/tests-mx32/ |
print_quoted_string.c | 21 const size_t len = strnlen(instr, size); local 22 if (len < size) { 23 print_quoted_memory(instr, len); 31 print_quoted_memory(const void *const instr, const size_t len) 37 for (i = 0; i < len; ++i) { 92 print_quoted_hex(const void *const instr, const size_t len) 98 for (i = 0; i < len; i++)
|
/external/syslinux/com32/lib/zlib/ |
inftrees.c | 40 unsigned len; /* a code's length in bits */ local 107 for (len = 0; len <= MAXBITS; len++) 108 count[len] = 0; 132 for (len = 1; len <= MAXBITS; len++) { 134 left -= count[len]; 142 for (len = 1; len < MAXBITS; len++ [all...] |
/external/syslinux/gnu-efi/gnu-efi-3.0/lib/ |
argify.c | 49 argify(CHAR16 *buf, UINTN len, CHAR16 **argv) 59 /* len represents the number of bytes, not the number of 16 bytes chars */ 60 len = len >> 1; 69 while (buf[i] == CHAR_SPACE && buf[i] != CHAR_NULL && i < len) i++; 71 if (buf[i] == CHAR_NULL || i == len) goto end; 76 while (buf[i] != CHAR_SPACE && buf[i] != CHAR_NULL && i < len) i++; 84 if (i == len) goto end;
|
/external/tcpdump/ |
print-vxlan-gpe.c | 61 vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) 67 if (len < VXLAN_GPE_HDR_LEN) 89 ip_print(ndo, bp, len - 8); 92 ip6_print(ndo, bp, len - 8); 95 ether_print(ndo, bp, len - 8, ndo->ndo_snapend - bp, NULL, NULL); 98 nsh_print(ndo, bp, len - 8); 101 mpls_print(ndo, bp, len - 8);
|
/external/toybox/toys/other/ |
shred.c | 51 off_t pos = 0, len = TT.size; local 65 if (!len) len = fdlength(fd); 66 if (len<1) { 76 if (pos >= len) { 97 if (len-pos < throw) throw = len-pos;
|
/external/toybox/toys/posix/ |
head.c | 37 int i, len, lines=TT.lines, bytes=TT.bytes; local 47 len = read(fd, toybuf, sizeof(toybuf)); 48 if (len<0) perror_msg_raw(name); 49 if (len<1) break; 52 i = bytes >= len ? len : bytes; 54 } else for(i=0; i<len;) if (toybuf[i++] == '\n' && !--lines) break;
|
/external/wpa_supplicant_8/src/crypto/ |
sha256-prf.c | 62 size_t len[4]; local 67 len[0] = 2; 69 len[1] = os_strlen(label); 71 len[2] = data_len; 73 len[3] = sizeof(length_le); 81 if (hmac_sha256_vector(key, key_len, 4, addr, len, 86 if (hmac_sha256_vector(key, key_len, 4, addr, len,
|
sha384-prf.c | 62 size_t len[4]; local 67 len[0] = 2; 69 len[1] = os_strlen(label); 71 len[2] = data_len; 73 len[3] = sizeof(length_le); 81 if (hmac_sha384_vector(key, key_len, 4, addr, len, 86 if (hmac_sha384_vector(key, key_len, 4, addr, len,
|
sha512-prf.c | 62 size_t len[4]; local 67 len[0] = 2; 69 len[1] = os_strlen(label); 71 len[2] = data_len; 73 len[3] = sizeof(length_le); 81 if (hmac_sha512_vector(key, key_len, 4, addr, len, 86 if (hmac_sha512_vector(key, key_len, 4, addr, len,
|
/frameworks/base/obex/javax/obex/ |
ApplicationParameter.java | 144 public void addAPPHeader(byte tag, byte len, byte[] value) { 145 if ((mLength + len + 2) > mMaxLength) { 146 byte[] array_tmp = new byte[mLength + 4 * len]; 149 mMaxLength = mLength + 4 * len; 152 mArray[mLength++] = len; 153 System.arraycopy(value, 0, mArray, mLength, len); 154 mLength += len;
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
AoapInterface.java | 97 int len = conn.controlTransfer( local 100 if (len != 2) { 108 int len = conn.controlTransfer( local 112 if (len != buffer.length) { 120 int len = conn.controlTransfer( local 123 if (len < 0) { 124 throw new RuntimeException("control transfer for accessory start failed:" + len);
|
/system/core/liblog/ |
fake_writer.c | 79 int logFd, len; local 85 len = 0; 87 len += vec[i].iov_len; 90 if (len > LOGGER_ENTRY_MAX_PAYLOAD) { 91 len = LOGGER_ENTRY_MAX_PAYLOAD; 98 } else if (ret > len) { 99 ret = len;
|
/system/core/libsparse/include/sparse/ |
sparse.h | 33 * @len - size of the expanded sparse file. 42 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len); 59 * @len - length of the data block 63 * [block * block_size : block * block_size + len) must not already be used in 64 * the sparse file. If len is not a multiple of the block size the data 73 void *data, unsigned int len, unsigned int block); 80 * @len - length of the fill block 84 * The region [block * block_size : block * block_size + len) must not already 85 * be used in the sparse file. If len is not a multiple of the block size the 91 uint32_t fill_val, unsigned int len, unsigned int block) [all...] |
/external/libxml2/ |
xmlstring.c | 34 * @len: the len of @cur 41 xmlStrndup(const xmlChar *cur, int len) { 44 if ((cur == NULL) || (len < 0)) return(NULL); 45 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); 50 memcpy(ret, cur, len * sizeof(xmlChar)); 51 ret[len] = 0; 77 * @len: the len of @cur 85 xmlCharStrndup(const char *cur, int len) { 423 int len = 0; local 617 int len; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
getdelim.c | 50 size_t len, newlen, off; local 78 len = fp->_r; 80 len = (p - fp->_p) + 1; 83 if (off > SSIZE_MAX || len + 1 > SSIZE_MAX - off) { 87 newlen = off + len + 1; /* reserve space for NUL terminator */ 113 (void)memcpy((*buf + off), fp->_p, len); 114 /* Safe, len is never greater than what fp->_r can fit. */ 115 fp->_r -= (int)len; 116 fp->_p += (int)len; 117 off += len; [all...] |
/external/autotest/client/bin/ |
kernel_versions.py | 26 if len(bits[0]) == 0: 28 if len(bits) == n or (len(bits) > n and bits[n] != '_rc'): 33 if len(bits[0]) == 0: 35 if len(bits) <= n or bits[n] != '-rc': 38 for n in range(0, len(bits), 2): 39 if len(bits[n]) == 1: 51 return len(encode_sep.split(version)) 80 for n in range(len(versions) - 1, -1, -1):
|
/external/autotest/client/common_lib/ |
kernel_versions.py | 26 if len(bits[0]) == 0: 28 if len(bits) == n or (len(bits) > n and bits[n] != '_rc'): 33 if len(bits[0]) == 0: 35 if len(bits) <= n or bits[n] != '-rc': 38 for n in range(0, len(bits), 2): 39 if len(bits[n]) == 1: 51 return len(encode_sep.split(version)) 80 for n in range(len(versions) - 1, -1, -1):
|
/external/dtc/ |
util.h | 49 static inline void *xmalloc(size_t len) 51 void *new = malloc(len); 59 static inline void *xrealloc(void *p, size_t len) 61 void *new = realloc(p, len); 64 die("realloc() failed (len=%zd)\n", len); 80 * @param len The string length including terminator 83 bool util_is_printable_string(const void *data, int len); 105 * @param len If non-NULL, the amount of data we managed to read 107 char *utilfdt_read_len(const char *filename, off_t *len); [all...] |
/external/e2fsprogs/misc/ |
base_device.c | 46 int len; local 96 len = 0; 98 len = 4; 100 len = 5; 101 if (len) { 102 cp += len; 110 len = strlen(*hier); 111 if (strncmp(cp, *hier, len) != 0) 113 cp += len;
|
/external/icu/icu4c/source/common/ |
charstr.h | 43 CharString() : len(0) { buffer[0]=0; } 44 CharString(StringPiece s, UErrorCode &errorCode) : len(0) { 48 CharString(const CharString &s, UErrorCode &errorCode) : len(0) { 52 CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) { 66 UBool isEmpty() const { return len==0; } 67 int32_t length() const { return len; } 69 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); } 77 CharString &clear() { len=0; buffer[0]=0; return *this; } 130 int32_t len; member in class:CharString
|
/external/selinux/libselinux/utils/ |
getsebool.c | 17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; local 31 rc = security_get_boolean_names(&names, &len); 38 if (!len) { 54 if (!len) { 57 len = argc - 1; 58 names = calloc(len, sizeof(char *)); 63 for (i = 0; i < len; i++) { 74 for (i = 0; i < len; i++) { 110 for (i = 0; i < len; i++)
|
/external/strace/ |
rtnl_addr.c | 48 const unsigned int len, 53 decode_inet_addr(tcp, addr, len, ifaddr->ifa_family, NULL); 61 const unsigned int len, 66 if (len < sizeof(ci)) 82 const unsigned int len, 87 if (len < sizeof(ifa_flags)) 115 if (len >= sizeof(ifaddr)) { 132 if (decode_nla && len > offset) { 134 decode_nlattr(tcp, addr + offset, len - offset,
|
rtnl_neigh.c | 48 const unsigned int len, 53 decode_inet_addr(tcp, addr, len, ndmsg->ndm_family, NULL); 61 const unsigned int len, 66 if (len < sizeof(ci)) 102 if (len >= sizeof(ndmsg)) { 122 if (decode_nla && len > offset) { 124 decode_nlattr(tcp, addr + offset, len - offset, 134 decode_ifinfomsg(tcp, nlmsghdr, family, addr, len); 136 decode_ndmsg(tcp, nlmsghdr, family, addr, len);
|
/external/syslinux/gpxe/src/hci/mucurses/widgets/ |
editbox.c | 38 * @v len Size of text buffer 45 void init_editbox ( struct edit_box *box, char *buf, size_t len, 50 box->string.len = len; 69 size_t len; local 89 len = ( strlen ( box->string.buf ) - first ); 90 if ( len > width ) 91 len = width; 93 memset ( buf, '*', len ); 95 memcpy ( buf, ( box->string.buf + first ), len ); [all...] |