|
iPXE
|
Single foreground job. More...
#include <string.h>#include <stdio.h>#include <errno.h>#include <ipxe/process.h>#include <ipxe/console.h>#include <ipxe/keys.h>#include <ipxe/job.h>#include <ipxe/monojob.h>#include <ipxe/timer.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void | monojob_close (struct interface *intf, int rc) |
| static void | monojob_clear (size_t len) |
| Clear previously displayed message. More... | |
| int | monojob_wait (const char *string, unsigned long timeout) |
| Wait for single foreground job to complete. More... | |
Variables | |
| static int | monojob_rc |
| static struct interface_operation | monojob_intf_op [] |
| static struct interface_descriptor | monojob_intf_desc |
| struct interface | monojob = INTF_INIT ( monojob_intf_desc ) |
Single foreground job.
Definition in file monojob.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Definition at line 44 of file monojob.c.
References intf_restart(), monojob_rc, and rc.
Referenced by monojob_wait().
|
static |
Clear previously displayed message.
| len | Length of previously displayed message |
Definition at line 63 of file monojob.c.
References len, and putchar().
Referenced by monojob_wait().
| 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().
|
static |
Definition at line 42 of file monojob.c.
Referenced by monojob_close(), and monojob_wait().
|
static |
|
static |
| struct interface monojob = INTF_INIT ( monojob_intf_desc ) |
Definition at line 56 of file monojob.c.
Referenced by fcels(), ifpoller_wait(), imgdownload(), imgverify(), monojob_wait(), nslookup(), ntp(), ping(), pxebs(), and sync().
1.8.15