Lines Matching defs:cmdline
1283 char *cmdline = *cmdlinep;
1290 if (cmdline == NULL) {
1295 while (*cmdline != 0 && isspace((unsigned char)*cmdline))
1296 cmdline++;
1298 if (*cmdline != 0) {
1300 result = isc_lex_create(gmctx, strlen(cmdline), &lex);
1302 isc_buffer_init(&source, cmdline, strlen(cmdline));
1303 isc_buffer_add(&source, strlen(cmdline));
1330 *cmdlinep = cmdline;
1335 make_prereq(char *cmdline, isc_boolean_t ispositive, isc_boolean_t isrrset) {
1352 retval = parse_name(&cmdline, updatemsg, &name);
1360 word = nsu_strsep(&cmdline, " \t\r\n");
1376 word = nsu_strsep(&cmdline, " \t\r\n");
1405 retval = parse_rdata(&cmdline, rdataclass, rdatatype,
1440 evaluate_prereq(char *cmdline) {
1445 word = nsu_strsep(&cmdline, " \t\r\n");
1466 return (make_prereq(cmdline, ispositive, isrrset));
1470 evaluate_server(char *cmdline) {
1479 word = nsu_strsep(&cmdline, " \t\r\n");
1486 word = nsu_strsep(&cmdline, " \t\r\n");
1526 evaluate_local(char *cmdline) {
1532 word = nsu_strsep(&cmdline, " \t\r\n");
1539 word = nsu_strsep(&cmdline, " \t\r\n");
1576 evaluate_key(char *cmdline) {
1590 namestr = nsu_strsep(&cmdline, " \t\r\n");
1621 secretstr = nsu_strsep(&cmdline, "\r\n");
1657 evaluate_zone(char *cmdline) {
1662 word = nsu_strsep(&cmdline, " \t\r\n");
1683 evaluate_realm(char *cmdline) {
1694 word = nsu_strsep(&cmdline, " \t\r\n");
1708 UNUSED(cmdline);
1714 evaluate_ttl(char *cmdline) {
1719 word = nsu_strsep(&cmdline, " \t\r\n");
1747 evaluate_class(char *cmdline) {
1753 word = nsu_strsep(&cmdline, " \t\r\n");
1780 update_addordelete(char *cmdline, isc_boolean_t isdelete) {
1798 retval = parse_name(&cmdline, updatemsg, &name);
1811 word = nsu_strsep(&cmdline, " \t\r\n");
1851 word = nsu_strsep(&cmdline, " \t\r\n");
1876 word = nsu_strsep(&cmdline, " \t\r\n");
1906 retval = parse_rdata(&cmdline, rdataclass, rdatatype, updatemsg,
1975 evaluate_update(char *cmdline) {
1980 word = nsu_strsep(&cmdline, " \t\r\n");
1995 return (update_addordelete(cmdline, isdelete));
1999 evaluate_checknames(char *cmdline) {
2003 word = nsu_strsep(&cmdline, " \t\r\n");
2094 do_next_command(char *cmdline) {
2098 word = nsu_strsep(&cmdline, " \t\r\n");
2107 return (evaluate_prereq(cmdline));
2109 return (make_prereq(cmdline, ISC_FALSE, ISC_FALSE));
2111 return (make_prereq(cmdline, ISC_TRUE, ISC_FALSE));
2113 return (make_prereq(cmdline, ISC_FALSE, ISC_TRUE));
2115 return (make_prereq(cmdline, ISC_TRUE, ISC_TRUE));
2117 return (evaluate_update(cmdline));
2119 return (update_addordelete(cmdline, ISC_TRUE));
2121 return (update_addordelete(cmdline, ISC_TRUE));
2123 return (update_addordelete(cmdline, ISC_FALSE));
2125 return (evaluate_server(cmdline));
2127 return (evaluate_local(cmdline));
2129 return (evaluate_zone(cmdline));
2131 return (evaluate_class(cmdline));
2142 return (evaluate_ttl(cmdline));
2154 return (evaluate_key(cmdline));
2157 return (evaluate_realm(cmdline));
2160 return (evaluate_checknames(cmdline));
2215 char *cmdline;
2220 cmdline = readline("> ");
2221 if (cmdline != NULL)
2222 add_history(cmdline);
2226 cmdline = fgets(cmdlinebuf, MAXCMD, input);
2229 cmdline = fgets(cmdlinebuf, MAXCMD, input);
2232 if (cmdline != NULL) {
2233 char *tmp = cmdline;
2240 result = do_next_command(cmdline);
2244 free(cmdline);