extern int errorlineno;
extern int parse_error;
extern char *errorfile;
+extern int script_fds[5];
#if defined(RLIMIT_CORE) && !defined(SUDO_DEVEL)
static struct rlimit corelimit;
#endif /* RLIMIT_CORE && !SUDO_DEVEL */
extern char *optarg;
extern int optind;
-/* XXX - script.c */
-extern int script_fds[5];
-extern void term_restore __P((int));
-
int
main(argc, argv, envp)
int argc;
#endif
int script_execv __P((const char *, char * const *));
void script_setup __P((void));
+int term_cbreak __P((int));
+int term_copy __P((int, int));
+int term_noecho __P((int));
+int term_raw __P((int));
+int term_restore __P((int));
YY_DECL;
/* Only provide extern declarations outside of sudo.c. */
static char *getln __P((int, char *, size_t, int));
static char *sudo_askpass __P((const char *));
-extern int term_restore __P((int));
-extern int term_noecho __P((int));
-extern int term_cbreak __P((int));
-
/*
* Like getpass(3) but with timeout and echo flags.
*/