/external/elfutils/libebl/ |
eblstrtab.c | 54 size_t len; member in struct:Ebl_Strent 107 ret->null.len = 1; 117 morememory (struct Ebl_Strtab *st, size_t len) 120 len += overhead + MALLOC_OVERHEAD; 122 /* Allocate nearest multiple of pagesize >= len. */ 123 len = ((len / ps) + (len % ps != 0)) * ps - MALLOC_OVERHEAD; 125 struct memoryblock *newmem = (struct memoryblock *) malloc (len); 132 st->left = len - overhead [all...] |
/external/iproute2/lib/ |
dnet_ntop.c | 19 static __inline__ int do_digit(char *str, u_int16_t *addr, u_int16_t scale, size_t *pos, size_t len, int *started) 23 if (*pos == len) 37 static const char *dnet_ntop1(const struct dn_naddr *dna, char *str, size_t len) 52 if (len == 0) 55 if (do_digit(str + pos, &area, 10, &pos, len, &started)) 58 if (do_digit(str + pos, &area, 1, &pos, len, &started)) 61 if (pos == len) 68 if (do_digit(str + pos, &addr, 1000, &pos, len, &started)) 71 if (do_digit(str + pos, &addr, 100, &pos, len, &started)) 74 if (do_digit(str + pos, &addr, 10, &pos, len, &started) [all...] |
/external/libese/tools/ese_replay/ |
buffer.c | 20 bool buffer_init(struct Buffer *b, uint32_t len) { 23 b->buffer = calloc(len, 1); 26 b->len = 0; 27 b->size = len; 54 for (; !feof(fp) && b->len < b->size; ++b->len) { 55 b->buffer[b->len] = fgetc(fp); 56 if (!isalnum(b->buffer[b->len])) { 57 ungetc(b->buffer[b->len], fp); 61 if (b->len == 0 [all...] |
/external/strace/tests/ |
pc.test | 41 len="$(sed -r -n 's/^\[[[:xdigit:]]+\] write\(-1, NULL, ([[:digit:]]{1,2})\)[[:space:]]+= -1 .*/\1/p' "$LOG")" && 42 [ -n "$len" ] && 43 pid="$(sed -r -n 's/^\[[[:xdigit:]]{'"$len"'}\] --- SIGCHLD \{si_signo=SIGCHLD, si_code=CLD_(KILLED|DUMPED), si_pid=([[:digit:]]+), .*/\2/p' "$LOG")" && 45 ip="$(sed -r -n 's/^\[pid +'"$pid"'\] \[([[:xdigit:]]{'"$len"'})] --- SIGSEGV \{.*\} ---$/\1/p' "$LOG")" && 52 \\[[[:xdigit:]]{$len}\\] munmap\\(0x[[:xdigit:]]+, 0\\) += -1 .* 54 \\[pid +$pid\\] \\[\\?{$len}\\] \\+\\+\\+ killed by SIGSEGV( \\(core dumped\\))? \\+\\+\\+ 55 \\[\\?{$len}\\] \\+\\+\\+ exited with 0 \\+\\+\\+
|
/external/strace/tests-m32/ |
pc.test | 41 len="$(sed -r -n 's/^\[[[:xdigit:]]+\] write\(-1, NULL, ([[:digit:]]{1,2})\)[[:space:]]+= -1 .*/\1/p' "$LOG")" && 42 [ -n "$len" ] && 43 pid="$(sed -r -n 's/^\[[[:xdigit:]]{'"$len"'}\] --- SIGCHLD \{si_signo=SIGCHLD, si_code=CLD_(KILLED|DUMPED), si_pid=([[:digit:]]+), .*/\2/p' "$LOG")" && 45 ip="$(sed -r -n 's/^\[pid +'"$pid"'\] \[([[:xdigit:]]{'"$len"'})] --- SIGSEGV \{.*\} ---$/\1/p' "$LOG")" && 52 \\[[[:xdigit:]]{$len}\\] munmap\\(0x[[:xdigit:]]+, 0\\) += -1 .* 54 \\[pid +$pid\\] \\[\\?{$len}\\] \\+\\+\\+ killed by SIGSEGV( \\(core dumped\\))? \\+\\+\\+ 55 \\[\\?{$len}\\] \\+\\+\\+ exited with 0 \\+\\+\\+
|
/external/strace/tests-mx32/ |
pc.test | 41 len="$(sed -r -n 's/^\[[[:xdigit:]]+\] write\(-1, NULL, ([[:digit:]]{1,2})\)[[:space:]]+= -1 .*/\1/p' "$LOG")" && 42 [ -n "$len" ] && 43 pid="$(sed -r -n 's/^\[[[:xdigit:]]{'"$len"'}\] --- SIGCHLD \{si_signo=SIGCHLD, si_code=CLD_(KILLED|DUMPED), si_pid=([[:digit:]]+), .*/\2/p' "$LOG")" && 45 ip="$(sed -r -n 's/^\[pid +'"$pid"'\] \[([[:xdigit:]]{'"$len"'})] --- SIGSEGV \{.*\} ---$/\1/p' "$LOG")" && 52 \\[[[:xdigit:]]{$len}\\] munmap\\(0x[[:xdigit:]]+, 0\\) += -1 .* 54 \\[pid +$pid\\] \\[\\?{$len}\\] \\+\\+\\+ killed by SIGSEGV( \\(core dumped\\))? \\+\\+\\+ 55 \\[\\?{$len}\\] \\+\\+\\+ exited with 0 \\+\\+\\+
|
/external/vboot_reference/host/lib/ |
file_keys.c | 21 uint8_t* BufferFromFile(const char* input_file, uint64_t* len) { 35 *len = stat_fd.st_size; 37 buf = (uint8_t*)malloc(*len); 39 VbExError("Couldn't allocate %ld bytes for file %s\n", *len, input_file); 43 if (*len != read(fd, buf, *len)) { 53 uint64_t len; local 55 uint8_t* buf = BufferFromFile(input_file, &len); 57 key = RSAPublicKeyFromBuf(buf, len); 63 int input_fd, len; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
state_construct.c | 32 size_t len /* (i) length of a state vector */ 57 tmp2 = &idxVec[len-1]; 60 for(k=0; k<len; k++){ 69 for(k=0; k<len; k++){ 78 for(k=0; k<len; k++){ 89 WebRtcSpl_MemSetW16(&sampleVal[len], 0, len); 99 numerator, LPC_FILTERORDER+1, len + LPC_FILTERORDER); 100 WebRtcSpl_MemSetW16(&sampleMa[len + LPC_FILTERORDER], 0, (len - LPC_FILTERORDER)) [all...] |
/prebuilts/misc/common/swig/include/2.0.11/go/ |
cdata.i | 10 int len; 16 $result.data = (char*)_swig_goallocate($1.len); 17 memcpy($result.data, $1.data, $1.len); 18 $result.len = (int)$1.len; 38 d.len = nelements*sizeof(TYPE); 40 d.len = nelements;
|
/external/pdfium/third_party/bigint/ |
NumberlikeArray.hh | 39 Index len; member in class:NumberlikeArray 40 // Heap-allocated array of the blocks (can be NULL if len == 0) 44 NumberlikeArray(Index c) : cap(c), len(0) { 52 NumberlikeArray() : cap(0), len(0) { 80 Index getLength() const { return len; } 82 bool isEmpty() const { return len == 0; } 122 for (i = 0; i < len; i++) 131 : len(x.len) { 133 cap = len; [all...] |
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
PacketReflector.java | 64 private static void swapBytes(byte[] buf, int pos1, int pos2, int len) { 65 for (int i = 0; i < len; i++) { 91 private void processTcpPacket(byte[] buf, int version, int len, int hdrLen) { 92 if (len < hdrLen + TCP_HEADER_LENGTH) { 100 writePacket(buf, len); 105 private void processUdpPacket(byte[] buf, int version, int len, int hdrLen) { 106 if (len < hdrLen + UDP_HEADER_LENGTH) { 118 writePacket(buf, len); 121 private void processIcmpPacket(byte[] buf, int version, int len, int hdrLen) { 122 if (len < hdrLen + ICMP_HEADER_LENGTH) 184 int len; local 196 int len = readPacket(mBuf); local [all...] |
/external/speex/libspeex/ |
buffer.c | 68 EXPORT int speex_buffer_write(SpeexBuffer *st, void *_data, int len) 73 if (len > st->size) 75 data += len-st->size; 76 len = st->size; 78 end = st->write_ptr + len; 88 st->available += len; 94 st->write_ptr += len; 97 return len; 100 EXPORT int speex_buffer_writezeros(SpeexBuffer *st, int len) 106 if (len > st->size [all...] |
/system/core/logd/ |
LogKlog.cpp | 52 static char* is_prio(char* s, ssize_t len) { 53 if ((len <= 0) || !isdigit(*s++)) return nullptr; 54 --len; 55 static const size_t max_prio_len = (len < 4) ? len : 4; 65 static char* is_timestamp(char* s, ssize_t len) { 66 while ((len > 0) && (*s == ' ')) { 68 --len; 70 if ((len <= 0) || !isdigit(*s++)) return nullptr; 71 --len; 230 ssize_t len = 0; local [all...] |
/external/syslinux/gpxe/src/util/ |
zbin.c | 13 size_t len; member in struct:input_file 18 size_t len; member in struct:output_file 30 uint32_t len; member in struct:zinfo_copy 37 uint32_t len; member in struct:zinfo_pack 64 static int read_file ( const char *filename, void **buf, size_t *len ) { 81 *len = stat.st_size; 82 *buf = malloc ( *len ); 85 *len, filename, strerror ( errno ) ); 89 if ( fread ( *buf, 1, *len, file ) != *len ) { 112 size_t len; local 146 size_t len = copy->len; local 176 size_t len = pack->len; local [all...] |
/external/curl/lib/ |
version.c | 107 size_t len; local 114 len = strlen(ptr); 115 left -= len; 116 ptr += len; 119 len = Curl_ssl_version(ptr + 1, left - 1); 121 if(len > 0) { 123 left -= ++len; 124 ptr += len; 129 len = snprintf(ptr, left, " zlib/%s", zlibVersion()); 130 left -= len; [all...] |
inet_ntop.c | 53 size_t len; local 64 len = strlen(tmp); 65 if(len == 0 || len >= size) { 90 long len; member in struct:__anon17346 105 best.len = 0; 106 cur.len = 0; 111 cur.base = i, cur.len = 1; 113 cur.len++; 116 if(best.base == -1 || cur.len > best.len [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
bytes_methods.c | 11 _Py_bytes_isspace(const char *cptr, Py_ssize_t len)
18 if (len == 1 && Py_ISSPACE(*p))
22 if (len == 0)
25 e = p + len;
41 _Py_bytes_isalpha(const char *cptr, Py_ssize_t len)
48 if (len == 1 && Py_ISALPHA(*p))
52 if (len == 0)
55 e = p + len;
71 _Py_bytes_isalnum(const char *cptr, Py_ssize_t len)
78 if (len == 1 && Py_ISALNUM(*p)) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
bytes_methods.c | 11 _Py_bytes_isspace(const char *cptr, Py_ssize_t len)
18 if (len == 1 && Py_ISSPACE(*p))
22 if (len == 0)
25 e = p + len;
41 _Py_bytes_isalpha(const char *cptr, Py_ssize_t len)
48 if (len == 1 && Py_ISALPHA(*p))
52 if (len == 0)
55 e = p + len;
71 _Py_bytes_isalnum(const char *cptr, Py_ssize_t len)
78 if (len == 1 && Py_ISALNUM(*p)) [all...] |
/external/python/cpython2/Objects/ |
bytes_methods.c | 11 _Py_bytes_isspace(const char *cptr, Py_ssize_t len) 18 if (len == 1 && Py_ISSPACE(*p)) 22 if (len == 0) 25 e = p + len; 41 _Py_bytes_isalpha(const char *cptr, Py_ssize_t len) 48 if (len == 1 && Py_ISALPHA(*p)) 52 if (len == 0) 55 e = p + len; 71 _Py_bytes_isalnum(const char *cptr, Py_ssize_t len) 78 if (len == 1 && Py_ISALNUM(*p) [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
LineBreakBufferedWriter.java | 118 public void write(char[] buf, int off, int len) { 119 while (bufferIndex + len > bufferSize) { 141 len -= nextNewLine + 1; 154 len -= rest; 159 if (len > 0) { 161 appendToBuffer(buf, off, len); 162 for (int i = len - 1; i >= 0; i--) { 164 lastNewline = bufferIndex - len + i; 172 public void write(String s, int off, int len) { 173 while (bufferIndex + len > bufferSize) [all...] |
/prebuilts/go/darwin-x86/src/cmd/go/internal/str/ |
path.go | 17 s = s[len(sv):] 18 prefix = prefix[len(pv):] 24 case len(s) == len(prefix): 26 case len(s) > len(prefix): 27 if prefix != "" && prefix[len(prefix)-1] == filepath.Separator { 30 return s[len(prefix)] == filepath.Separator && s[:len(prefix)] == prefix
|
/prebuilts/go/linux-x86/src/cmd/go/internal/str/ |
path.go | 17 s = s[len(sv):] 18 prefix = prefix[len(pv):] 24 case len(s) == len(prefix): 26 case len(s) > len(prefix): 27 if prefix != "" && prefix[len(prefix)-1] == filepath.Separator { 30 return s[len(prefix)] == filepath.Separator && s[:len(prefix)] == prefix
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
nfnetlink_compat.h | 35 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) 36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <= (len)) 38 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) 39 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) 45 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *) (start); (skb)->len; }) [all...] |
/device/generic/goldfish-opengl/host/include/libOpenglRender/ |
IOStream.h | 35 virtual const unsigned char *readFully( void *buf, size_t len) = 0; 37 virtual int writeFully(const void* buf, size_t len) = 0; 44 unsigned char *alloc(size_t len) { 46 if (m_buf && len > m_free) { 53 if (!m_buf || len > m_bufsize) { 54 int allocLen = m_bufsize < len ? len : m_bufsize; 66 m_free -= len; 81 const unsigned char *readback(void *buf, size_t len) { 83 return readFully(buf, len); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
mysnprintf.c | 56 int len; /* # bytes written, excluding \0 */
local 70 len = -666;
75 len = vsnprintf(str, size, format, va);
80 len = -666;
84 len = vsprintf(buffer, format, va);
85 if (len < 0)
88 else if ((size_t)len >= size + _PyOS_vsnprintf_EXTRA_SPACE)
92 const size_t to_copy = (size_t)len < size ?
93 (size_t)len : size - 1;
103 return len;
[all...] |