Searched refs:buflen (Results 1 – 4 of 4) sorted by relevance
/system/core/toolbox/ |
D | notify.c | 107 int buflen; in notify_main() local 115 buflen = width - strlen(display_name); in notify_main() 116 read_len = read(ffd, buf, buflen); in notify_main() 118 if(read_len < buflen && buf[read_len-1] != '\n') { in notify_main() 122 if(read_len == buflen) { in notify_main()
|
/system/core/liblinenoise/ |
D | linenoise.c | 214 static int linenoisePrompt(int fd, char *buf, size_t buflen, const char *prompt) { in linenoisePrompt() argument 222 buflen--; /* Make sure there is always space for the nulterm */ in linenoisePrompt() 310 strncpy(buf,history[history_len-1-history_index],buflen); in linenoisePrompt() 311 buf[buflen] = '\0'; in linenoisePrompt() 318 if (len < buflen) { in linenoisePrompt() 364 static int linenoiseRaw(char *buf, size_t buflen, const char *prompt) { in linenoiseRaw() argument 368 if (buflen == 0) { in linenoiseRaw() 373 if (fgets(buf, buflen, stdin) == NULL) return -1; in linenoiseRaw() 381 count = linenoisePrompt(fd, buf, buflen, prompt); in linenoiseRaw()
|
/system/core/adb/ |
D | adb.c | 762 static int format_listeners(char* buf, size_t buflen) in format_listeners() argument 770 int len = format_listener(l, buf, buflen); in format_listeners() 775 buflen -= len; in format_listeners() 776 if (buflen <= 0) in format_listeners()
|
D | commandline.c | 374 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_type t… in format_host_command() argument 377 snprintf(buffer, buflen, "host-serial:%s:%s", serial, command); in format_host_command() 385 snprintf(buffer, buflen, "%s:%s", prefix, command); in format_host_command()
|