iPXE
|
Single foreground job. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | monojob_wait (const char *string, unsigned long timeout) |
Wait for single foreground job to complete. More... | |
Variables | |
struct interface | monojob |
Single foreground job.
Definition in file monojob.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int monojob_wait | ( | const char * | string, |
unsigned long | timeout | ||
) |
Wait for single foreground job to complete.
string | Job description to display, or NULL to be silent |
timeout | Timeout period, in ticks (0=indefinite) |
rc | Job final status code |
Definition at line 81 of file monojob.c.
References job_progress::completed, CTRL_C, currticks(), ECANCELED, EINPROGRESS, ETIMEDOUT, getchar(), iskey(), job_progress(), key, job_progress::message, monojob, monojob_clear(), monojob_close(), monojob_rc, printf(), rc, step(), strerror(), TICKS_PER_SEC, timeout(), and job_progress::total.
Referenced by fcels(), ifpoller_wait(), imgdownload(), imgverify(), nslookup(), ntp(), ping(), pxebs(), and sync().
struct interface monojob |
Definition at line 56 of file monojob.c.
Referenced by fcels(), ifpoller_wait(), imgdownload(), imgverify(), monojob_wait(), nslookup(), ntp(), ping(), pxebs(), and sync().