fd_set fds;
static pstring line;
struct timeval timeout;
- int fd = fileno(stdin);
+ int fd = x_fileno(x_stdin);
char *ret;
x_fprintf(dbf, "%s", prompt);
FD_SET(fd,&fds);
if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) {
- ret = fgets(line, sizeof(line), stdin);
+ ret = x_fgets(line, sizeof(line), x_stdin);
return ret;
}
if (callback)
char **(completion_fn)(char *text, int start, int end))
{
#if HAVE_LIBREADLINE
- if (isatty(fileno(stdin))) {
+ if (isatty(fileno(x_stdin))) {
char *ret;
/* Aargh! Readline does bizzare things with the terminal width