Searched defs:pos (Results 1 - 9 of 9) sorted by relevance

/system/core/toolbox/
H A Dnandread.c33 loff_t pos, opos, end, bpos; local
189 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) {
192 printf("reading at %llx\n", pos);
193 lseek64(fd, pos, SEEK_SET);
196 fprintf(stderr, "short read at %llx, %d\n", pos, ret);
200 oobbuf.start = pos;
203 fprintf(stderr, "failed to read oob data at %llx, %d\n", pos, ret);
213 bpos = pos / mtdinf
[all...]
/system/core/liblinenoise/
H A Dlinenoise.c187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) { argument
191 while((plen+pos) >= cols) {
194 pos--;
210 snprintf(seq,64,"\x1b[0G\x1b[%dC", (int)(pos+plen));
216 size_t pos = 0; local
249 if (pos > 0 && len > 0) {
250 memmove(buf+pos-1,buf+pos,len-pos);
251 pos
[all...]
/system/core/libnl_2/
H A Dattr.c125 struct nlattr *pos; local
131 nla_for_each_attr(pos, head, len, rem) {
132 int type = nla_type(pos);
135 tb[type] = pos;
/system/core/libutils/
H A DString16.cpp262 status_t String16::insert(size_t pos, const char16_t* chrs) argument
264 return insert(pos, chrs, strlen16(chrs));
267 status_t String16::insert(size_t pos, const char16_t* chrs, size_t len) argument
277 if (pos > myLen) pos = myLen;
280 printf("Insert in to %s: pos=%d, len=%d, myLen=%d, chrs=%s\n",
281 String8(*this).string(), pos,
289 if (pos < myLen) {
290 memmove(str+pos+len, str+pos, (myLe
[all...]
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp135 char *pos; local
165 pos = strstr(ctrl_data, buff);
167 if (pos && !addr) {
169 res = sscanf(pos - strlen("sock=1234abcd"),
183 return pos != NULL;
/system/core/include/utils/
H A DVector.h196 inline iterator erase(iterator pos) { argument
197 ssize_t index = removeItemsAt(pos-array());
/system/core/adb/
H A Dsysdeps.h117 extern int adb_lseek(int fd, int pos, int where);
388 static __inline__ int adb_lseek(int fd, int pos, int where) argument
390 return lseek(fd, pos, where);
H A Dsysdeps_win32.c83 int (*_fh_lseek)( FH f, int pos, int origin );
258 _fh_file_lseek( FH f, int pos, int origin ) argument
273 result = SetFilePointer( f->fh_handle, pos, NULL, method );
426 int adb_lseek(int fd, int pos, int where) argument
434 return f->clazz->_fh_lseek(f, pos, where);
507 _fh_socket_lseek( FH f, int pos, int origin ) argument
1135 _fh_socketpair_lseek( FH f, int pos, int origin ) argument
/system/core/libsparse/
H A Doutput_file.c727 off64_t pos; local
732 pos = lseek64(fd, offset, SEEK_SET);
733 if (pos < 0) {

Completed in 198 milliseconds