summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/sysinstall.h
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-17 15:58:58 +0000
committerjkh <jkh@FreeBSD.org>1997-01-17 15:58:58 +0000
commit36e3910a7d4d2443addb87b2ec5a93aa0a3c0a5a (patch)
treec617ad8c4cac1b6a32599d587298596325e5b0f1 /usr.sbin/sysinstall/sysinstall.h
parentb293f5b41ca45894135a41fd164567da1f639444 (diff)
downloadFreeBSD-src-36e3910a7d4d2443addb87b2ec5a93aa0a3c0a5a.zip
FreeBSD-src-36e3910a7d4d2443addb87b2ec5a93aa0a3c0a5a.tar.gz
Add timeout support to sysinstall's general media handling,
allow SIGINT to stand for "time out now!" in certain cases.
Diffstat (limited to 'usr.sbin/sysinstall/sysinstall.h')
-rw-r--r--usr.sbin/sysinstall/sysinstall.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h
index 0eea56f..69e400a 100644
--- a/usr.sbin/sysinstall/sysinstall.h
+++ b/usr.sbin/sysinstall/sysinstall.h
@@ -68,6 +68,9 @@
#define INTERFACE_MAX 50 /* Maximum number of network interfaces we'll deal with */
#define IO_ERROR -2 /* Status code for I/O error rather than normal EOF */
+/* Number of seconds to wait for data to come off even the slowest media */
+#define MEDIA_TIMEOUT 300
+
/*
* I make some pretty gross assumptions about having a max of 50 chunks
* total - 8 slices and 42 partitions. I can't easily display many more
@@ -301,6 +304,7 @@ typedef struct _devPriv {
/*** Externs ***/
+extern Boolean AlarmWentOff; /* Convenience variable for alarm_foo() stuff */
extern int DebugFD; /* Where diagnostic output goes */
extern Boolean Fake; /* Don't actually modify anything - testing */
extern Boolean SystemWasInstalled; /* Did we install it? */
@@ -627,6 +631,8 @@ extern int package_extract(Device *dev, char *name, Boolean depended);
extern Boolean package_exists(char *name);
/* system.c */
+extern void alarm_clear(void);
+extern void alarm_set(int delay, void (*handler)(int sig));
extern void systemInitialize(int argc, char **argv);
extern void systemShutdown(int status);
extern int execExecute(char *cmd, char *name);
OpenPOWER on IntegriCloud