Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 4 of 4) sorted by relevance

/system/core/toolbox/
Dnotify.c107 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/
Dlinenoise.c214 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/netd/
DSoftapController.h34 int setCommand(char *iface, const char *fname, unsigned buflen=0);
/system/core/adb/
Dcommandline.c359 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_type t… in format_host_command() argument
362 snprintf(buffer, buflen, "host-serial:%s:%s", serial, command); in format_host_command()
370 snprintf(buffer, buflen, "%s:%s", prefix, command); in format_host_command()