Searched refs:ans (Results 1 - 9 of 9) sorted by relevance

/ast/src/cmd/cs/vcs_src/
H A Difs_http.c113 int port, len, ans = -1; local
160 ans = (int)strtol( ptr+1, (char**)0, 0 );
168 return ans;
183 int ans; local
187 ans = HttpXfer( srv, rpath, linkfile, tmpfile );
188 if( ans < 300 ) { /* 2xx Successful, 1xx Informational */
197 return ans;
212 int ans; local
220 ans = HttpXfer( srv, srv->rpath, linkfile, tmpfile );
221 if( ans < 30
238 int ans; local
[all...]
H A Difs_gopher.c117 int ans; local
121 ans = GopherXferDir( srv, tmpfile );
123 ans = GopherXferFile( srv, tmpfile );
125 if( (ans = GopherXferDir( srv, tmpfile )) == -1 ) {
126 ans = GopherXferFile( srv, tmpfile );
130 return ans;
H A Difs_ftp.c511 int ans; local
523 ans = FtpXferDir( srv, tmpfile );
525 ans = FtpXferFile( srv, tmpfile );
527 if( (ans = FtpXferDir( srv, tmpfile )) == -1 )
528 ans = FtpXferFile( srv, tmpfile );
531 return ans;
/ast/src/cmd/tests/
H A Ddate.c241 char* ans; local
339 if (!(ans = field[2]))
349 t_now = tmdate(ans, &e, &t_now);
351 bad("invalid NOW", ans, NiL);
369 if (fmt = ans)
371 if (!(ans = field[3]))
378 sfprintf(sfstdout, "%d: str=`%s' fmt=`%s' ans=`%s'\n", state.lineno, str, fmt, ans);
383 escape(ans);
384 if (strcmp(s, ans))
[all...]
/ast/src/cmd/re/
H A Dtestmatch.c449 matchprint(ssize_t* match, int nmatch, char* ans) argument
470 if (ans)
471 printf(" expected: %s", ans);
476 matchcheck(int nmatch, ssize_t* match, char* ans, char* re, char* s, int flags, int query, int unspecified, int expand) argument
483 for (i = 0, p = ans; i < nmatch && *p; i += 2)
510 matchprint(match, nmatch, ans);
527 matchprint(match, nmatch, ans);
625 char* ans; local
824 if (!(ans = setlocale(LC_COLLATE, s)) || streq(ans, "
[all...]
H A Dtestregex.c860 matchprint(regmatch_t* match, int nmatch, int nsub, char* ans, unsigned long test) argument
877 if (ans)
878 printf(" expected: %s", ans);
884 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test) argument
891 if (streq(ans, "OK"))
893 for (i = 0, p = ans; i < nmatch && *p; i++)
954 matchprint(match, nmatch, nsub, ans, test);
973 matchprint(match, nmatch, nsub, ans, test);
1080 extract(int* tabs, char* spec, char* re, char* s, char* ans, char* msg, char* accept, regmatch_t* match, int nmatch, int nsub, unsigned long skip, unsigned long level, unsigned long test) argument
1123 printf("%s", ans);
1140 catchfree(regex_t* preg, int flags, int* tabs, char* spec, char* re, char* s, char* ans, char* msg, char* accept, regmatch_t* match, int nmatch, int nsub, unsigned long skip, unsigned long level, unsigned long test) argument
1244 char* ans; local
[all...]
H A Dtestfmt.c321 char* ans; local
505 if ((ans = field[2]) && expand)
526 sfprintf(sfstdout, "test %-3d %s \"%s\" \"%s\"\n", state.lineno, fun, re, ans ? ans : "NIL");
537 if (!s && ans || s && !ans || s && ans && !streq(s, ans))
540 quote(ans, expand);
548 s = ans;
[all...]
H A Dtestfnmatch.c494 char* ans; local
687 if (!(ans = setlocale(LC_COLLATE, s)) || streq(ans, "C") || streq(ans, "POSIX") || !(ans = setlocale(LC_CTYPE, s)) || streq(ans, "C") || streq(ans, "POSIX"))
838 if (!(ans = field[3]))
840 if (*ans == '(')
842 i = strtol(ans
[all...]
H A Dtestglob.c514 char* ans; local
794 if (!(ans = setlocale(LC_COLLATE, s)) || streq(ans, "C") || streq(ans, "POSIX") || !(ans = setlocale(LC_CTYPE, s)) || streq(ans, "C") || streq(ans, "POSIX"))
911 if (ans = field[3])
912 escape(ans);
1036 if (!ans)
[all...]

Completed in 42 milliseconds