• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ppp-2.4.4/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>
217 void fatal __P((int code, const char *fmt, ...));
229 int get_string __P((register char *string));
521 void fatal __V((int code, const char *fmt, ...))
528 int code;
531 code = va_arg(args, int);
540 terminate(code);
646 * Allow the last of the report string to be gathered before we terminate.
682 * 'Clean up' this string.
686 int sending; /* set to 1 when sending (putting) this string. */
879 * If a string was specified then do initial processing.
906 * If this is not in the termination string, continue.
914 * This is the terminator. Mark the end of the string and stop.
923 * Process the expect string
973 * Fetch the expect and reply string.
985 * Handle the expect string. If successful then exit.
991 * If there is a sub-reply string then send it. Otherwise any condition
1011 * Translate the input character to the appropriate string for printing
1018 static char string[10];
1025 sprintf(string, "%s^%c", meta, (int)c + '@');
1027 sprintf(string, "%s^?", meta);
1029 sprintf(string, "%s%c", meta, c);
1031 return (string);
1035 * process the reply string
1077 fatal(1, "Illegal or too-long ABORT string ('%v')", s);
1098 fatal(1, "Illegal or too-long CLR_ABORT string ('%v')", s);
1127 fatal(1, "Illegal or too-long REPORT string ('%v')", s);
1148 fatal(1, "Illegal or too-long REPORT string ('%v')", s);
1182 * The syntax @filename means read the string to send from the
1209 /* use the string we got as the string to send,
1379 * 'Wait for' this string to appear on this file descriptor.
1381 int get_string(string)
1382 register char *string;
1390 string = clean(string, 0);
1391 len = strlen(string);
1395 msgf("expect (%v)", string);
1398 msgf("expect string is too long");
1469 c == string[len - 1] &&
1470 strncmp(s - len, string, len) == 0) {
1568 char **array; /* The address of the array of string pointers */
1693 case 'v': /* "visible" string */
1694 case 'q': /* quoted string */