67 for ( i = 0 ; i <
len ; i++ )
69 for ( i = 0 ; i <
len ; i++ )
71 for ( i = 0 ; i <
len ; i++ )
84 unsigned long last_check;
85 unsigned long last_progress;
86 unsigned long last_display;
88 unsigned long elapsed;
90 unsigned long scaled_completed;
91 unsigned long scaled_total;
92 unsigned int percentage;
99 printf (
"%s...",
string );
101 last_check = last_progress = last_display =
currticks();
111 elapsed = ( now - last_check );
134 elapsed = ( now - last_progress );
141 elapsed = ( now - last_display );
145 scaled_completed = ( progress.
completed / 128 );
146 scaled_total = ( progress.
total / 128 );
147 if ( scaled_total ) {
148 percentage = ( ( 100 * scaled_completed ) /
150 clear_len =
printf (
"%3d%%", percentage );
156 clear_len +=
printf (
" [%s]",
union @162305117151260234136356364136041353210355154177 key
Sense key.
struct arbelprm_rc_send_wqe rc
int getchar(void)
Read a single character from any console.
int iskey(void)
Check for available input on any console.
int putchar(int character)
Write a single character to each console device.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define ETIMEDOUT
Connection timed out.
#define EINPROGRESS
Operation in progress.
#define ECANCELED
Operation canceled.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define TICKS_PER_SEC
Number of ticks per second.
void intf_close(struct interface *intf, int rc)
Close an object interface.
void intf_restart(struct interface *intf, int rc)
Shut down and restart an object interface.
#define INTF_DESC_PURE(operations)
Define an object interface descriptor for a pure-interface object.
#define INTF_INIT(descriptor)
Initialise a static object interface.
#define INTF_OP(op_type, object_type, op_func)
Define an object interface operation.
int job_progress(struct interface *intf, struct job_progress *progress)
Get job progress.
static struct interface_descriptor monojob_intf_desc
static struct interface_operation monojob_intf_op[]
static void monojob_close(struct interface *intf, int rc)
int monojob_wait(const char *string, unsigned long timeout)
Wait for single foreground job to complete.
static void monojob_clear(size_t len)
Clear previously displayed message.
void step(void)
Single-step a single process.
char * strerror(int errno)
Retrieve string representation of error number.
An object interface descriptor.
An object interface operation.
unsigned long total
Total operation size.
char message[32]
Message (optional)
unsigned long completed
Amount of operation completed so far.
unsigned long currticks(void)
Get current system time in ticks.
int printf(const char *fmt,...)
Write a formatted string to the console.