version 1.32, 2017/03/15 04:24:14 |
version 1.33, 2019/10/08 07:26:59 |
|
|
#include <unistd.h> |
#include <unistd.h> |
#include <sys/time.h> |
#include <sys/time.h> |
#include <sys/resource.h> |
#include <sys/resource.h> |
|
#include <stdbool.h> |
|
|
#include "top.h" |
#include "top.h" |
|
|
#include "boolean.h" |
|
#include "utils.h" |
#include "utils.h" |
#include "machine.h" |
#include "machine.h" |
|
|
|
|
static char * |
static char * |
err_string(void) |
err_string(void) |
{ |
{ |
int cnt = 0, first = Yes, currerr = -1; |
int cnt = 0, first = true, currerr = -1; |
static char string[STRMAX]; |
static char string[STRMAX]; |
struct errs *errp; |
struct errs *errp; |
|
|
|
|
(void) strlcat(string, "; ", sizeof string); |
(void) strlcat(string, "; ", sizeof string); |
} |
} |
currerr = errp->err; |
currerr = errp->err; |
first = Yes; |
first = true; |
} |
} |
if (str_addarg(string, sizeof string, errp->arg, first) >= |
if (str_addarg(string, sizeof string, errp->arg, first) >= |
sizeof string) |
sizeof string) |
return (err_listem); |
return (err_listem); |
|
|
first = No; |
first = false; |
} |
} |
|
|
/* add final message */ |
/* add final message */ |