Lines Matching +full:p +full:- +full:states

138     lines = smart_terminal ? screen_length - Header_lines : 1;  in display_resize()
148 return(-1); in display_resize()
165 num_cpus = statics->ncpus; in display_updatecpus()
173 /* fill the "last" array with all -1s, to insure correct updating */ in display_updatecpus()
175 lcpustates[i] = -1; in display_updatecpus()
192 if (lines > -1) in display_init()
195 procstate_names = statics->procstate_names; in display_init()
200 cpustate_names = statics->cpustate_names; in display_init()
202 swap_names = statics->swap_names; in display_init()
208 lcpustates = calloc(num_cpustates * sizeof(int), statics->ncpus); in display_init()
211 memory_names = statics->memory_names; in display_init()
216 arc_names = statics->arc_names; in display_init()
217 carc_names = statics->carc_names; in display_init()
245 /* mpid == -1 implies this system doesn't have an _mpid */ in i_loadave()
246 if (mpid != -1) in i_loadave()
267 if (mpid != -1) in u_loadave()
314 Move_to(screen_width - 8, 0); in i_timeofday()
327 printf("%-8.8s\n", &(ctime(tod)[11])); in i_timeofday()
335 * *_procstates(total, brkdn, names) - print the process summary line
416 i_cpustates(int *states) in i_cpustates() argument
422 int *hstates = states; in i_cpustates()
444 value = *states++; in i_cpustates()
456 states = hstates; in i_cpustates()
457 memcpy(lcpustates, states, num_cpustates * sizeof(int) * num_cpus); in i_cpustates()
461 u_cpustates(int *states) in u_cpustates() argument
466 int *hstates = states; in u_cpustates()
485 if (*lp != *states) in u_cpustates()
492 value = *states; in u_cpustates()
505 states++; in u_cpustates()
510 states = hstates; in u_cpustates()
543 /* fill the "last" array with all -1s, to insure correct updating */ in z_cpustates()
545 lcpustates[i] = -1; in z_cpustates()
550 * *_memory(stats) - print "Memory: " followed by the memory summary string
584 * *_arc(stats) - print "ARC: " followed by the ARC summary string
624 * *_carc(stats) - print "Compressed ARC: " followed by the summary string
663 * *_swap(stats) - print "Swap: " followed by the swap summary string
703 * *_message() - print the next pending message line, or erase the one
776 * *_header(text) - print the header for the process area
817 * *_process(line, thisline) - print one process line
825 char *p; in i_process() local
847 p = stpcpy(base, thisline); in i_process()
850 if (p - base < screen_width) in i_process()
852 memset(p, 0, screen_width - (p - base)); in i_process()
878 if (screen_line - lastline == 1) in u_process()
896 if (optr - bufferline < screen_width) in u_process()
898 memset(optr, 0, screen_width - (optr - bufferline)); in u_process()
922 if (screen_line - lastline < 5) in u_endscreen()
995 /* message there already -- can we clear it? */ in new_message()
998 /* yes -- write it and clear to end */ in new_message()
1007 clear_eol(msglen - i); in new_message()
1046 size -= 1; in readline()
1060 /* kill line -- account for overstriking */ in readline()
1069 return(-1); in readline()
1082 ptr--; in readline()
1083 cnt--; in readline()
1106 /* all done -- null terminate the string */ in readline()
1115 return(cnt == 0 ? -1 : numeric ? atoi(buffer) : cnt); in readline()
1123 char *p; in summary_format() local
1129 p = str; in summary_format()
1135 /* display only non-zero numbers */ in summary_format()
1142 p = stpcpy(p, format_k(num)); in summary_format()
1145 p = stpcpy(p, thisname+1); in summary_format()
1151 (float)*(numbers - 2) / (float)num); in summary_format()
1152 p = stpcpy(p, rbuf); in summary_format()
1153 p = stpcpy(p, thisname); in summary_format()
1157 p = stpcpy(p, itoa(num)); in summary_format()
1158 p = stpcpy(p, thisname); in summary_format()
1165 p = stpcpy(p, thisname); in summary_format()
1170 p -= 2; in summary_format()
1171 if (p >= str && p[0] == ',' && p[1] == ' ') in summary_format()
1173 *p = '\0'; in summary_format()
1194 fputs("\n-\n", debug); in line_update()
1201 if (line - lastline == 1 && start == 0) in line_update()
1217 * main loop -- check each character. If the old and new aren't the in line_update()
1233 diff = newcol - lastcol; in line_update()
1236 /* some motion is required--figure out which is shorter */ in line_update()
1239 /* overwrite old stuff--get it out of the old buffer */ in line_update()
1240 printf("%.*s", diff, &current[lastcol-start]); in line_update()
1260 /* at the end--terminate with a clear-to-end-of-line */ in line_update()
1278 /* zero out the rest of the line buffer -- MUST BE DONE! */ in line_update()
1279 diff = screen_width - newcol; in line_update()
1298 if (bt->tv_sec != -1) { in i_uptime()
1299 uptime = *tod - bt->tv_sec; in i_uptime()
1313 Move_to((screen_width - 24) - (days > 9 ? 1 : 0), 0); in i_uptime()
1356 memcpy(new_buffer, buffer, old_len < len - 1 ? old_len : len - 1); in setup_buffer()