Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 8 of 8) sorted by relevance

/system/core/liblinenoise/
Dlinenoise.c187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols)… in refreshLine() argument
191 while((plen+pos) >= cols) { in refreshLine()
194 pos--; in refreshLine()
210 snprintf(seq,64,"\x1b[0G\x1b[%dC", (int)(pos+plen)); in refreshLine()
216 size_t pos = 0; in linenoisePrompt() local
249 if (pos > 0 && len > 0) { in linenoisePrompt()
250 memmove(buf+pos-1,buf+pos,len-pos); in linenoisePrompt()
251 pos--; in linenoisePrompt()
254 refreshLine(fd,prompt,buf,len,pos,cols); in linenoisePrompt()
258 if (pos > 0 && pos < len) { in linenoisePrompt()
[all …]
/system/core/toolbox/
Dnandread.c33 loff_t pos, opos, end, bpos; in nandread_main() local
189 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) { in nandread_main()
192 printf("reading at %llx\n", pos); in nandread_main()
193 lseek64(fd, pos, SEEK_SET); in nandread_main()
196 fprintf(stderr, "short read at %llx, %d\n", pos, ret); in nandread_main()
200 oobbuf.start = pos; in nandread_main()
203 fprintf(stderr, "failed to read oob data at %llx, %d\n", pos, ret); in nandread_main()
213 bpos = pos / mtdinfo.erasesize * mtdinfo.erasesize; in nandread_main()
216 printf("badblock at %llx\n", pos); in nandread_main()
220 printf("ecc corrected, %u, at %llx\n", ecc.corrected - last_ecc.corrected, pos); in nandread_main()
[all …]
/system/netd/
DSoftapController.cpp245 int SoftapController::addParam(int pos, const char *cmd, const char *arg) in addParam() argument
247 if (pos < 0) in addParam()
248 return pos; in addParam()
249 if ((unsigned)(pos + strlen(cmd) + strlen(arg) + 1) >= sizeof(mBuf)) { in addParam()
253 pos += sprintf(&mBuf[pos], "%s=%s,", cmd, arg); in addParam()
254 return pos; in addParam()
DSoftapController.h35 int addParam(int pos, const char *cmd, const char *arg);
/system/core/libnl_2/
Dattr.c125 struct nlattr *pos; in nla_parse() local
131 nla_for_each_attr(pos, head, len, rem) { in nla_parse()
132 int type = nla_type(pos); in nla_parse()
135 tb[type] = pos; in nla_parse()
/system/extras/tests/iptables/qtaguid/
DsocketTag.cpp135 char *pos; in checkTag() local
165 pos = strstr(ctrl_data, buff); in checkTag()
167 if (pos && !addr) { in checkTag()
169 res = sscanf(pos - strlen("sock=1234abcd"), in checkTag()
183 return pos != NULL; in checkTag()
/system/core/adb/
Dsysdeps.h116 extern int adb_lseek(int fd, int pos, int where);
369 static __inline__ int adb_lseek(int fd, int pos, int where) in adb_lseek() argument
371 return lseek(fd, pos, where); in adb_lseek()
Dsysdeps_win32.c83 int (*_fh_lseek)( FH f, int pos, int origin );
258 _fh_file_lseek( FH f, int pos, int origin ) in _fh_file_lseek() argument
273 result = SetFilePointer( f->fh_handle, pos, NULL, method ); in _fh_file_lseek()
426 int adb_lseek(int fd, int pos, int where) in adb_lseek() argument
434 return f->clazz->_fh_lseek(f, pos, where); in adb_lseek()
507 _fh_socket_lseek( FH f, int pos, int origin ) in _fh_socket_lseek() argument
1135 _fh_socketpair_lseek( FH f, int pos, int origin ) in _fh_socketpair_lseek() argument