/freebsd-9.3-release/usr.bin/w/ |
H A D | pr_time.c | 98 * Display the idle time. 99 * Returns number of excess characters that were used for long idle time. 102 pr_idle(time_t idle) argument 104 /* If idle more than 36 hours, print as a number of days. */ 105 if (idle >= 36 * 3600) { 106 int days = idle / 86400; 114 /* If idle more than an hour, print as HH:MM. */ 115 else if (idle >= 3600) 117 (int)(idle / 3600), (int)((idle [all...] |
H A D | w.c | 98 int sortidle; /* sort by idle time */ 110 time_t idle; /* idle time of terminal in seconds */ member in struct:entry 253 if ((ep->idle = now - touched) < 0) 254 ep->idle = 0; 328 /* sort by idle time */ 336 (*nextp) && from->idle >= (*nextp)->idle; 425 longidle = pr_idle(ep->idle);
|
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/ |
H A D | tst.schedenable.ksh | 57 xdt:sched::idle-off-cpu, 58 xdt:sched::idle-on-cpu,
|
/freebsd-9.3-release/contrib/top/ |
H A D | machine.h | 63 int idle; /* show idle processes */ member in struct:process_select 71 int kidle; /* show per-CPU idle threads */
|
H A D | top.c | 261 ps.idle = Yes; 321 case 'I': /* show idle processes */ 322 ps.idle = !ps.idle; 993 ps.idle = !ps.idle; 995 " %sisplaying idle processes.", 996 ps.idle ? "D" : "Not d"); 1142 " %sisplaying system idle process.",
|
/freebsd-9.3-release/libexec/rpc.rusersd/ |
H A D | rusers_proc.c | 93 syslog(LOG_ERR, "%s: unable to get idle time", display); 119 u_long idle; local 126 if (display && *display && (idle = XqueryIdle(display)) >= 0) 127 return(idle); 129 idle = 0; 138 idle = (kbd_idle < mouse_idle)?kbd_idle:mouse_idle; 152 idle = now - st.st_atime; 153 idle = (idle + 30) / 60; /* secs->mins */ 156 return(idle); [all...] |
/freebsd-9.3-release/usr.bin/rusers/ |
H A D | rusers.c | 98 int idle; local 127 idle = up->utmpidlearr_val[x].ui_idle; 128 sprintf(idle_time, " :%02d", idle); 129 if (idle == MAX_INT) 131 else if (idle == 0) 134 seconds = idle; 141 if (idle > 60) 143 if (idle >= (60 * 60)) 146 if (idle >= (24 * 60 * 60))
|
/freebsd-9.3-release/contrib/bind9/bin/named/ |
H A D | lwdclient.c | 78 ISC_LIST_INIT(cm->idle); 99 if (ISC_LIST_EMPTY(cm->idle)) 120 client = ISC_LIST_HEAD(cm->idle); 122 ISC_LIST_UNLINK(cm->idle, client, link); 124 client = ISC_LIST_HEAD(cm->idle); 146 * run through the idle list and free the clients there. Idle 150 client = ISC_LIST_HEAD(cm->idle); 154 ISC_LIST_UNLINK(cm->idle, client, link); 156 client = ISC_LIST_HEAD(cm->idle); 241 * Go idle [all...] |
/freebsd-9.3-release/usr.bin/who/ |
H A D | who.c | 63 static int uflag; /* Show idle time */ 89 case 'u': /* Show idle time */ 159 time_t idle, t; local 168 idle = 0; 174 idle = time(NULL) - sb.st_mtime; 187 if (idle < 60) 189 else if (idle < 24 * 60 * 60) 190 printf("%02d:%02d ", (int)(idle / 60 / 60), 191 (int)(idle / 60 % 60));
|
/freebsd-9.3-release/contrib/bind9/lib/isc/ |
H A D | timer.c | 84 isc_time_t idle; member in struct:isc__timer 242 if (isc_time_isepoch(&timer->idle)) 245 due = timer->idle; 246 else if (isc_time_compare(&timer->idle, &timer->expires) < 0) 247 due = timer->idle; 448 result = isc_time_add(&now, interval, &timer->idle); 454 isc_time_settoepoch(&timer->idle); 571 result = isc_time_add(&now, interval, &timer->idle); 573 isc_time_settoepoch(&timer->idle); 629 result = isc_time_add(&now, &timer->interval, &timer->idle); 687 isc_boolean_t idle; local [all...] |
/freebsd-9.3-release/sbin/pfctl/missing/altq/ |
H A D | altq_rio.h | 106 int idle; /* queue was empty */ member in struct:rio::dropprec_state 108 struct timeval last; /* timestamp when queue becomes idle */ 116 used for idle calibration */
|
/freebsd-9.3-release/sys/contrib/altq/altq/ |
H A D | altq_rio.h | 105 int idle; /* queue was empty */ member in struct:rio::dropprec_state 107 struct timeval last; /* timestamp when queue becomes idle */ 115 used for idle calibration */
|
H A D | altq_rio.c | 255 prec->idle = 1; 359 if (prec->idle) { 360 prec->idle = 0; 463 if (rp->rio_precstate[i].idle == 0) { 464 rp->rio_precstate[i].idle = 1;
|
/freebsd-9.3-release/contrib/ntp/lib/isc/ |
H A D | timer.c | 84 isc_time_t idle; member in struct:isc__timer 242 if (isc_time_isepoch(&timer->idle)) 245 due = timer->idle; 246 else if (isc_time_compare(&timer->idle, &timer->expires) < 0) 247 due = timer->idle; 448 result = isc_time_add(&now, interval, &timer->idle); 454 isc_time_settoepoch(&timer->idle); 571 result = isc_time_add(&now, interval, &timer->idle); 573 isc_time_settoepoch(&timer->idle); 629 result = isc_time_add(&now, &timer->interval, &timer->idle); 687 isc_boolean_t idle; local [all...] |
/freebsd-9.3-release/usr.sbin/powerd/ |
H A D | powerd.c | 452 int ch, mode, mode_ac, mode_battery, mode_none, idle, to; local 630 idle = 0; 640 if (mode == MODE_HIADAPTIVE || idle < 120) 642 else if (idle < 360) 676 if (idle % 32 == 0) { 681 idle++; 698 idle = 0; 717 idle = 0; 778 idle = 0;
|
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | bundle.h | 107 unsigned min_timeout; /* Don't idle out before this */ 108 } idle; member in struct:bundle::__anon10978 134 } idle; member in struct:bundle
|
H A D | bundle.c | 239 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED) 240 /* We may need to start our idle timer */ 275 * If it's the first NCP, start the idle timer. 307 * If it's our last NCP, stop the idle timer. 828 bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT; 829 bundle.cfg.idle.min_timeout = 0; 884 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer); 885 bundle.idle.done = 0; 917 timer_Stop(&bundle->idle [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | kern_clocksource.c | 71 static void getnextcpuevent(struct bintime *event, int idle); 114 static u_int idletick = 0; /* Run periodic events when idle. */ 117 0, "Run periodic events when idle"); 142 int idle; /* This CPU is in idle mode. */ member in struct:pcpu_state 256 state->idle = 0; 268 getnextcpuevent(struct bintime *event, int idle) argument 277 if (idle || (!activetick && !profiling && 279 skip = idle ? 4 : (stathz / 2); 288 if (!idle) { /* I [all...] |
/freebsd-9.3-release/sys/dev/patm/ |
H A D | if_patm.c | 373 u_int base, idle; local 376 idle = sc->mmap->tst1base + sc->mmap->tst_size; 384 sc->tst_jump[1] = idle + sc->mmap->tst_size - 1; 386 sc->tst_base[1] = idle; 395 patm_sram_write(sc, idle + i, IDT_TST_VBR); 396 patm_sram_write(sc, sc->tst_jump[1], IDT_TST_BR | (idle << 2));
|
/freebsd-9.3-release/lib/libc/isc/ |
H A D | ev_timers.c | 493 struct timespec idle; local 498 idle = evSubTime(ctx->lastEventTime, this->lastTouched); 499 if (evCmpTime(idle, this->max_idle) >= 0) { 510 this->timer->inter = evSubTime(this->max_idle, idle);
|
/freebsd-9.3-release/contrib/bind9/bin/named/include/named/ |
H A D | lwdclient.h | 163 * Overall magic test that means we're not idle. 190 ISC_LIST(ns_lwdclient_t) idle; /*%< idle client slots */ member in struct:ns_lwdclientmgr
|
/freebsd-9.3-release/sys/dev/sym/ |
H A D | sym_fw.h | 73 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \
|
/freebsd-9.3-release/usr.bin/ctlstat/ |
H A D | ctlstat.c | 91 uint64_t idle; member in struct:ctl_cpu_stats 232 cpu_stats->idle = cp_time[CP_IDLE]; 426 ctx->cur_cpu.intr + ctx->cur_cpu.idle; 431 ctx->cur_idle = ctx->cur_cpu.idle;
|
/freebsd-9.3-release/sys/netinet/ |
H A D | tcp_output.c | 180 int idle, sendalot; local 208 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una); 209 if (idle && ticks - tp->t_rcvtime >= tp->t_rxtcur) 212 if (idle) { 215 idle = 0; 462 * TODO: Shrink send buffer during idle periods together 522 * either idle or running NODELAY 539 (idle || (tp->t_flags & TF_NODELAY)) && 650 * idle not doing retransmits or persists 660 * The output side is idle whe [all...] |
/freebsd-9.3-release/sys/contrib/ngatm/netnatm/sig/ |
H A D | sig_uni.c | 662 int idle; local 664 idle = TAILQ_EMPTY(&uni->calls) && 668 if ((*mask & UNICFG_PROTO) && idle) { 684 if (!uni->cx.q2932 || idle) {
|