/dragonfly/games/rogue/ |
H A D | object.c | 383 short percent; in gr_what_is() local 388 if (percent <= 30) { in gr_what_is() 409 short percent; in gr_scroll() local 415 if (percent <= 5) { in gr_scroll() 447 short percent; in gr_potion() local 453 if (percent <= 5) { in gr_potion() 487 short percent; in gr_weapon() local 507 if (percent <= 16) { in gr_weapon() 513 if (percent <= 32) { in gr_weapon() 551 short percent; in gr_armor() local [all …]
|
/dragonfly/games/trek/ |
H A D | warp.c | 77 int percent; in warp() local 96 if (percent >= 85) { in warp() 99 percent); in warp() 110 if (percent >= 85) { in warp() 112 percent); in warp() 148 percent = ranf(100); in warp() 149 if (percent < 70) { in warp() 151 if (percent < 35 || !Game.snap) { in warp() 159 percent = Event[i].evcode; in warp() 160 if (percent == E_FIXDV || percent == E_LRTB) in warp() [all …]
|
H A D | impulse.c | 48 int percent; in impulse() local 61 percent = 100 * power / Ship.energy + 0.5; in impulse() 62 if (percent >= 85) { in impulse() 65 percent); in impulse() 71 percent = 100 * time / Now.time + 0.5; in impulse() 72 if (percent >= 85) { in impulse() 74 percent); in impulse()
|
H A D | rest.c | 56 int percent; in rest() local 62 percent = 100 * t / Now.time + 0.5; in rest() 63 if (percent >= 70) { in rest() 65 percent); in rest()
|
H A D | srscan.c | 65 int percent; in srscan() local 133 percent = 100.0 * Ship.shield / Param.shield; in srscan() 134 printf("shields %s, %d%%", s, percent); in srscan()
|
/dragonfly/usr.bin/backlight/ |
H A D | backlight.c | 94 long percent = -1; in main() local 141 percent = strtonum(argv[0], 0, 100, &percent_error); in main() 170 if (percent == -1) in main() 172 props.brightness = percent; in main() 178 if (percent == 0) in main() 183 percent = percent == -1 ? 10 : percent; in main() 184 percent = action == BACKLIGHT_INCR ? percent : -percent; in main() 185 props.brightness += percent; in main()
|
/dragonfly/games/fortune/fortune/ |
H A D | fortune.c | 74 int percent; member 355 int percent; in form_file_list() local 393 percent = 0; in form_file_list() 395 percent = percent * 10 + *sp - '0'; in form_file_list() 536 fp->percent = percent; in add_file() 669 scene->percent = obscene->percent = NO_PROB; in all_forts() 886 percent = 0; in init_prob() 894 percent += fp->percent; in init_prob() 904 percent); in init_prob() 911 percent = 100 - percent; in init_prob() [all …]
|
/dragonfly/contrib/dialog/ |
H A D | guage.c | 43 int percent; member 206 obj->percent = atoi(buf); in handle_input() 224 obj->percent = atoi(buf); in handle_input() 289 obj->percent = percent; in dlg_update_gauge() 303 int percent) in dlg_reallocate_gauge() argument 352 obj->percent = percent; in dlg_reallocate_gauge() 371 int percent) in dlg_allocate_gauge() argument 406 int percent) in dialog_gauge() argument 418 DLG_TRACE2N("percent", percent); in dialog_gauge() 421 dlg_update_gauge(obj, percent); in dialog_gauge() [all …]
|
H A D | mixedgauge.c | 119 float percent; in myprint_status() local 161 if (sscanf(status, "%f%%", &percent) != 1) in myprint_status() 162 percent = 0.0; in myprint_status() 163 xxx = (int) ((cells * (percent + 0.5)) / 100.0); in myprint_status() 216 dlg_update_mixedgauge(DIALOG_MIXEDGAUGE * dlg, int percent) in dlg_update_mixedgauge() argument 232 (void) wprintw(dlg->dialog, "%3d%%", percent); in dlg_update_mixedgauge() 239 x = (percent * (dlg->width - 2 * (3 + MARGIN))) / 100; in dlg_update_mixedgauge() 386 int percent, in dialog_mixedgauge() argument 398 DLG_TRACE2N("percent", percent); in dialog_mixedgauge() 405 dlg_update_mixedgauge(&dlg, percent); in dialog_mixedgauge()
|
H A D | arrows.c | 180 int percent; in dlg_draw_scrollbar() local 183 percent = (!total_data in dlg_draw_scrollbar() 188 if (percent < 0) in dlg_draw_scrollbar() 189 percent = 0; in dlg_draw_scrollbar() 190 else if (percent > 100) in dlg_draw_scrollbar() 191 percent = 100; in dlg_draw_scrollbar() 194 (void) sprintf(buffer, "%d%%", percent); in dlg_draw_scrollbar()
|
/dragonfly/sbin/hammer/ |
H A D | cmd_info.c | 42 static double percent(int64_t value, int64_t total); 179 percent(usedbigblocks, fip->bigblocks), in show_info() 181 percent(fip->rsvbigblocks, fip->bigblocks), in show_info() 183 percent(fip->freebigblocks - fip->rsvbigblocks, fip->bigblocks)); in show_info() 202 percent(usedbytes, totalbytes)); in show_info() 207 percent(rsvbytes, totalbytes)); in show_info() 212 percent(freebytes, totalbytes)); in show_info() 239 percent(int64_t value, int64_t total) in percent() function
|
/dragonfly/contrib/lvm2/dist/daemons/dmeventd/plugins/snapshot/ |
H A D | dmeventd_snapshot.c | 115 int percent, *percent_warning = (int*)private; in process_event() local 141 percent = 100 * stat.used / stat.max; in process_event() 142 if (percent >= *percent_warning) { in process_event() 143 syslog(LOG_WARNING, "Snapshot %s is now %i%% full.\n", device, percent); in process_event() 145 *percent_warning = (percent / WARNING_STEP) * WARNING_STEP + WARNING_STEP; in process_event()
|
/dragonfly/contrib/gdb-7/gdb/common/ |
H A D | buffer.c | 92 int percent = 0; in buffer_xml_printf() local 99 if (percent) in buffer_xml_printf() 182 percent = 0; in buffer_xml_printf() 185 percent = 1; in buffer_xml_printf()
|
/dragonfly/crypto/openssh/ |
H A D | progressmeter.c | 125 int percent; in refresh_progress_meter() local 178 percent = 100; in refresh_progress_meter() 180 percent = ((float)cur_pos / end_pos) * 100; in refresh_progress_meter() 182 " %3d%% ", percent); in refresh_progress_meter()
|
/dragonfly/contrib/lvm2/dist/lib/activate/ |
H A D | dev_manager.c | 350 struct logical_volume *lv, float *percent, in _percent_run() argument 369 *percent = -1; in _percent_run() 430 *percent = (float) total_numerator *100 / total_denominator; in _percent_run() 433 *percent = 100; in _percent_run() 440 log_debug("LV percent: %f", *percent); in _percent_run() 450 struct logical_volume *lv, float *percent, in _percent() argument 458 target_type, wait, lv, percent, in _percent() 519 float *percent, percent_range_t *percent_range) in dev_manager_snapshot_percent() argument 537 if (!(_percent(dm, name, dlid, "snapshot", 0, NULL, percent, in dev_manager_snapshot_percent() 551 float *percent, percent_range_t *percent_range, in dev_manager_mirror_percent() argument [all …]
|
H A D | dev_manager.h | 51 float *percent, 55 float *percent, percent_range_t *percent_range,
|
H A D | activate.h | 86 int lv_snapshot_percent(const struct logical_volume *lv, float *percent, 89 int wait, float *percent, percent_range_t *percent_range,
|
/dragonfly/sbin/dump/ |
H A D | optr.c | 182 double percent; in timeest() local 189 percent = (blockswritten * 100.0) / tapesize; in timeest() 194 disk, passno, percent, hours, mins); in timeest() 199 msg("%3.2f%% done, finished in %d:%02d\n", percent, hours, in timeest()
|
/dragonfly/stand/lib/ |
H A D | printf.c | 182 const char *p, *percent; in kvprintf() local 208 percent = fmt - 1; in kvprintf() 427 while (percent < fmt) in kvprintf() 428 PCHAR(*percent++); in kvprintf()
|
/dragonfly/share/examples/pf/ |
H A D | queue4 | 9 # departments get the thirty percent and twenty percent of bandwidth
|
/dragonfly/libexec/rtld-elf/ |
H A D | rtld_printf.c | 126 const char *p, *percent, *q; in kvprintf() local 152 percent = fmt - 1; in kvprintf() 416 while (percent < fmt) in kvprintf() 417 PCHAR(*percent++); in kvprintf()
|
/dragonfly/usr.bin/printf/ |
H A D | printf.c | 462 escape(char *fmt, int percent, size_t *len) in escape() argument 489 if (!percent) { in escape() 514 c = (!percent && *fmt == '0') ? 4 : 3; in escape() 521 if (percent && value == '%') { in escape()
|
/dragonfly/contrib/lvm2/dist/include/ |
H A D | activate.h | 86 int lv_snapshot_percent(const struct logical_volume *lv, float *percent, 89 int wait, float *percent, percent_range_t *percent_range,
|
/dragonfly/usr.sbin/burncd/ |
H A D | burncd.c | 173 int error, blank, percent; in main() local 187 error = ioctl(fd, CDRIOCGETPROGRESS, &percent); in main() 188 if (percent > 0 && !quiet) in main() 192 "eras" : "blank", percent); in main() 193 if (error || percent == 100) in main()
|
/dragonfly/contrib/ncurses/progs/ |
H A D | dump_entry.c | 776 bool percent = FALSE; in fmt_complex() local 782 percent = FALSE; in fmt_complex() 786 percent = FALSE; in fmt_complex() 790 percent = TRUE; in fmt_complex() 795 if (percent) { in fmt_complex() 796 percent = FALSE; in fmt_complex() 830 if (percent) { in fmt_complex() 831 percent = FALSE; in fmt_complex() 852 if (percent && params && !leading_DYN(&tmpbuf, "%")) { in fmt_complex() 858 percent = FALSE; in fmt_complex() [all …]
|