listen.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Listener loop for subsystem library libss.a.
*
*
* Copyright 1987, 1988 by MIT Student Information Processing Board
*
* For copyright information, see copyright.h.
*/
#include "copyright.h"
#include "ss_internal.h"
#include <stdio.h>
#include <setjmp.h>
#include <signal.h>
#include <libintl.h>
#ifdef BSD
#include <sgtty.h>
#endif
static ss_data *current_info;
static jmp_buf listen_jmpb;
static RETSIGTYPE print_prompt()
{
#ifdef BSD
/* put input into a reasonable mode */
}
}
#endif
}
int signo;
{
}
int sci_idx;
{
register char *cp;
int code;
#ifdef POSIX_SIGNALS
#else
register RETSIGTYPE (*sig_cont)();
int mask;
#endif
#ifdef POSIX_SIGNALS
sigemptyset(&nmask);
#else
sig_cont = (RETSIGTYPE (*)())0;
#endif
#ifdef POSIX_SIGNALS
#else
#endif
#ifdef POSIX_SIGNALS
#else
(void) sigsetmask(mask);
#endif
print_prompt();
*end = '\0';
#ifdef POSIX_SIGNALS
#else
if (sig_cont == print_prompt)
#endif
goto egress;
}
if (cp) {
*cp = '\0';
continue;
}
#ifdef POSIX_SIGNALS
#else
#endif
;
if (code == SS_ET_COMMAND_NOT_FOUND) {
register char *c = input;
while (*c == ' ' || *c == '\t')
c++;
if (cp)
*cp = '\0';
if (cp)
*cp = '\0';
"Unknown request \"%s\". Type \"?\" for a request list."),
c);
}
}
code = 0;
#ifdef POSIX_SIGNALS
#else
#endif
return code;
}
int sci_idx;
int code;
{
}
int argc;
char **argv;
int sci_idx;
{
}