history
static char **history = NULL;
free(history[history_len - 1 - l->history_index]);
history[history_len - 1 - l->history_index] = strdup(l->buf);
strncpy(l->buf,history[history_len - 1 - l->history_index],l->buflen);
free(history[history_len]);
if (history == NULL) {
history = malloc(sizeof(char*)*history_max_len);
if (history == NULL) return 0;
memset(history,0,(sizeof(char*)*history_max_len));
if (history_len && !strcmp(history[history_len-1], line)) return 0;
free(history[0]);
memmove(history,history+1,sizeof(char*)*(history_max_len-1));
history[history_len] = linecopy;
if (history) {
for (j = 0; j < tocopy-len; j++) free(history[j]);
memcpy(new,history+(history_len-tocopy), sizeof(char*)*tocopy);
free(history);
history = new;
uint8_t history;
GETINT8(history, optdata);
history);
uint16_t history;
GETINT16(history, optdata);
(void) sprintf(get_line(0, 0), "History Count = %d", history);
uint8_t history;
GETINT8(history, optdata);
features = history >> 6;
pflag = (history >> 5) & 0x01;
history &= 0x1f;
(void) sprintf(get_line(0, 0), "History Size = %d", history);
show_history_date(dladm_usage_t *history, void *arg)
if ((status = dladm_name2info(handle, history->du_name,
stime = history->du_stime;
show_history_time(dladm_usage_t *history, void *arg)
if ((status = dladm_name2info(handle, history->du_name,
(void) printf(" %s", history->du_name);
if (history->du_last) {
time = history->du_etime;
bw = (double)history->du_bandwidth/1000;
if (history->du_last) {
history->du_name);
time = history->du_stime;
time = history->du_etime;
"%llu", history->du_rbytes);
"%llu", history->du_obytes);
"%s Mbps", dladm_bw2str(history->du_bandwidth, buf));
show_history_res(dladm_usage_t *history, void *arg)
if ((status = dladm_name2info(handle, history->du_name,
history->du_name);
"%llu", history->du_duration);
"%llu", history->du_ipackets);
"%llu", history->du_rbytes);
"%llu", history->du_opackets);
"%llu", history->du_obytes);
"%s Mbps", dladm_bw2str(history->du_bandwidth, buf));
show_history_date(dladm_usage_t *history, void *arg)
history->du_name, &attr)) != DLADM_STATUS_OK)) {
stime = history->du_stime;
show_history_time(dladm_usage_t *history, void *arg)
history->du_name, &attr)) != DLADM_STATUS_OK)) {
(void) printf(" %s", history->du_name);
if (history->du_last) {
time = history->du_etime;
bw = (double)history->du_bandwidth/1000;
if (history->du_last) {
history->du_name);
time = history->du_stime;
time = history->du_etime;
"%llu", history->du_rbytes);
"%llu", history->du_obytes);
dladm_bw2str(history->du_bandwidth, buf));
show_history_res(dladm_usage_t *history, void *arg)
history->du_name, &attr)) != DLADM_STATUS_OK)) {
history->du_name);
"%llu", history->du_duration);
"%llu", history->du_ipackets);
"%llu", history->du_rbytes);
"%llu", history->du_opackets);
"%llu", history->du_obytes);
"%s Mbps", dladm_bw2str(history->du_bandwidth, buf));
uint_t history = FALSE;
'h', MDB_OPT_SETBITS, TRUE, &history,
if (in_history && !history)
if (history && !in_history) {
uint_t history = FALSE;
'h', MDB_OPT_SETBITS, TRUE, &history, NULL) != argc) {
if ((history == FALSE) && !(flags & DCMD_ADDRSPEC)) {
if (history == TRUE) {
uint_t history = FALSE;
'h', MDB_OPT_SETBITS, TRUE, &history,
if (in_history && !history)
if (history && !in_history) {
int history = -1;
if (history < 0)
else if (grub_strcmp (get_history (history), buf) != 0)
add_history (buf, history);
history++;
p = get_history (history);
history--;
if (history < 0)
else if (grub_strcmp (get_history (history), buf) != 0)
add_history (buf, history);
history--;
p = get_history (history);
int echo_char, int history);
FILE *history;
if ((history = fopen(HISTORY, "rF")) == NULL) {
while ((s = fgets(buf, sizeof (buf), history)) !=
(void) fclose(history);
struct history *previous;
struct history *next;
accum += _filt31_##T(*history, filter); \
history--; \
_conv31_L(int32_t *history, uint32_t filter)
accum += _filt31_##p(*history, filter); \
history--
_conv31_M(int32_t *history, uint32_t filter)
_conv31_H(int32_t *history, uint32_t filter)
_conv31_HX(int32_t *history, uint32_t filter)
_conv31_P(int32_t *history, uint32_t filter)
_conv31_PX(int32_t *history, uint32_t filter)
int32_t *history = grc->historyptr; \
dst[0] = (_conv31_##QUAL(history, \
history++; \
if (history >= (grc->history + GRC3_MAXHISTORY * 2)) \
history -= GRC3_MAXHISTORY; \
history[0] = history[-GRC3_MAXHISTORY] = (*src); \
grc->historyptr = history; \
int32_t *history = grc->historyptr; \
dst[0] = (_conv31d_##QUAL(history, \
history++; \
if (history >= (grc->history + GRC3_MAXHISTORY * 2)) \
history -= GRC3_MAXHISTORY; \
history[0] = history[-GRC3_MAXHISTORY] = \
grc->historyptr = history; \
grc->historyptr = grc->history + GRC3_MAXHISTORY;
grc->history[t] = 0;
_conv31d_##T(int32_t *history, uint32_t filter, uint32_t incv) \
int32_t history[GRC3_MAXHISTORY * 2 + 1];