• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/chat/

Lines Matching +defs:code +defs:string

7  *  1 - invalid argument, expect string too large, etc.
9 * 3 - timeout waiting for a simple string.
10 * 4 - the first string declared as "ABORT"
11 * 5 - the second string declared as "ABORT"
21 * if the send string starts with @. Idea from gpk <gpk@onramp.net>.
37 * Added CLR_ABORT to clear previously set ABORT string. This has been
42 * fatal string. As soon as we got called back (probably get "CONNECT"),
51 * expect string must be quoted.
99 #include <string.h>
216 void fatal __P((int code, const char *fmt, ...));
228 int get_string __P((register char *string));
505 void fatal __V((int code, const char *fmt, ...))
512 int code;
515 code = va_arg(args, int);
524 terminate(code);
630 * Allow the last of the report string to be gathered before we terminate.
666 * 'Clean up' this string.
670 int sending; /* set to 1 when sending (putting) this string. */
833 *s1++ = '\0'; /* terminate the string */
849 * If a string was specified then do initial processing.
876 * If this is not in the termination string, continue.
884 * This is the terminator. Mark the end of the string and stop.
893 * Process the expect string
943 * Fetch the expect and reply string.
955 * Handle the expect string. If successful then exit.
961 * If there is a sub-reply string then send it. Otherwise any condition
981 * Translate the input character to the appropriate string for printing
988 static char string[10];
995 sprintf(string, "%s^%c", meta, (int)c + '@');
997 sprintf(string, "%s^?", meta);
999 sprintf(string, "%s%c", meta, c);
1001 return (string);
1005 * process the reply string
1047 fatal(1, "Illegal or too-long ABORT string ('%v')", s);
1068 fatal(1, "Illegal or too-long CLR_ABORT string ('%v')", s);
1097 fatal(1, "Illegal or too-long REPORT string ('%v')", s);
1117 fatal(1, "Illegal or too-long REPORT string ('%v')", s);
1151 * The syntax @filename means read the string to send from the
1178 /* use the string we got as the string to send,
1348 * 'Wait for' this string to appear on this file descriptor.
1350 int get_string(string)
1351 register char *string;
1359 string = clean(string, 0);
1360 len = strlen(string);
1364 logf("expect (%v)", string);
1367 logf("expect string is too long");
1438 c == string[len - 1] &&
1439 strncmp(s - len, string, len) == 0) {
1537 char **array; /* The address of the array of string pointers */
1662 case 'v': /* "visible" string */
1663 case 'q': /* quoted string */