2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * Listener loop for subsystem library libss.a. 2N/A * Copyright 1987, 1988 by MIT Student Information Processing Board 2N/A/* Solaris Kerberos */ 2N/A/* Solaris Kerberos */ 2N/A * get_commands fills out a ss_commands structure with pointers 2N/A * to the top-level commands (char*) that a program supports. 2N/A * count reflects the number of commands cmd holds. Memory must 2N/A * be allocated by the caller. 2N/A * Match function used by libtecla for tab-completion. 2N/A /* Dup the line as ss_parse will modify the string */ 2N/A /* Tab-completion may happen in the middle of a line */ 2N/A /* Don't bother if the arg count is not 1 or 0 */ 2N/A /* Solaris Kerberos */ 2N/A /* Solaris Kerberos */ 2N/A "new_GetLine() failed.\n"));
2N/A /* Find out how many commands there are */ 2N/A /* Alloc space for them */ 2N/A "failed to register completion function.\n"));
2N/A * Let libtecla deal with SIGINT when it's doing its own processing 2N/A * otherwise the input line won't be cleared on SIGINT. 2N/A "Failed to trap SIGINT.\n"));
2N/A /* Solaris Kerberos */ 2N/A while (*c ==
' ' || *c ==
'\t')
2N/A "Unknown request \"%s\". Type \"?\" for a request list."),
2N/A /* Solaris Kerberos */ 2N/A/* Solaris Kerberos - errors are now returned. */