/freebsd-13-stable/bin/pkill/tests/ |
H A D | pgrep-_s_test.sh | 8 exp_pid="$(ps ax | grep '\[idle\]' | awk '{print $1}')" 11 pid=`pgrep -Sx idle` 17 pid=`pgrep -x idle`
|
/freebsd-13-stable/usr.bin/w/ |
H A D | pr_time.c | 103 * Display the idle time. 104 * Returns number of excess characters that were used for long idle time. 107 pr_idle(time_t idle) argument 109 /* If idle more than 36 hours, print as a number of days. */ 110 if (idle >= 36 * 3600) { 111 int days = idle / 86400; 112 xo_emit(" {:idle/%dday%s} ", days, days > 1 ? "s" : " " ); 119 /* If idle more than an hour, print as HH:MM. */ 120 else if (idle >= 3600) 121 xo_emit(" {:idle/ [all...] |
H A D | w.c | 104 static int sortidle; /* sort by idle time */ 116 time_t idle; /* idle time of terminal in seconds */ member in struct:entry 261 if ((ep->idle = now - touched) < 0) 262 ep->idle = 0; 403 /* sort by idle time */ 411 (*nextp) && from->idle >= (*nextp)->idle; 462 longidle = pr_idle(ep->idle);
|
/freebsd-13-stable/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-13-stable/libexec/rpc.rusersd/ |
H A D | rusers_proc.c | 89 syslog(LOG_ERR, "%s: unable to get idle time", display); 115 u_long idle; local 122 if (display && *display && (idle = XqueryIdle(display)) >= 0) 123 return(idle); 125 idle = 0; 134 idle = (kbd_idle < mouse_idle)?kbd_idle:mouse_idle; 148 idle = now - st.st_atime; 149 idle = (idle + 30) / 60; /* secs->mins */ 152 return(idle); [all...] |
/freebsd-13-stable/usr.bin/rusers/ |
H A D | rusers.c | 100 int idle; local 129 idle = up->utmpidlearr_val[x].ui_idle; 130 sprintf(idle_time, " :%02d", idle); 131 if (idle == MAX_INT) 133 else if (idle == 0) 136 seconds = idle; 143 if (idle > 60) 145 if (idle >= (60 * 60)) 148 if (idle >= (24 * 60 * 60))
|
/freebsd-13-stable/usr.bin/who/ |
H A D | who.c | 67 static int uflag; /* Show idle time */ 99 case 'u': /* Show idle time */ 169 time_t idle, t; local 178 idle = 0; 184 idle = time(NULL) - sb.st_mtime; 200 if (idle < 60) 202 else if (idle < 24 * 60 * 60) 203 printf("%02d:%02d ", (int)(idle / 60 / 60), 204 (int)(idle / 60 % 60));
|
/freebsd-13-stable/sys/net/altq/ |
H A D | altq_rio.h | 66 int idle; /* queue was empty */ member in struct:rio::dropprec_state 68 struct timeval last; /* timestamp when queue becomes idle */ 76 used for idle calibration */
|
H A D | altq_rio.c | 233 prec->idle = 1; 337 if (prec->idle) { 338 prec->idle = 0; 441 if (rp->rio_precstate[i].idle == 0) { 442 rp->rio_precstate[i].idle = 1;
|
/freebsd-13-stable/usr.bin/top/ |
H A D | machine.h | 65 bool idle; /* show idle processes */ member in struct:process_select 76 bool kidle; /* show per-CPU idle threads */
|
H A D | top.c | 92 { "idle-procs", no_argument, NULL, 'I' }, 114 { "system-idle-procs", no_argument, NULL, 'z' }, 278 ps.idle = true; 338 case 'I': /* show idle processes */ 339 ps.idle = !ps.idle; 961 ps.idle = !ps.idle; 963 " %sisplaying idle processes.", 964 ps.idle [all...] |
/freebsd-13-stable/contrib/apr/misc/unix/ |
H A D | randbyte_os2.inc | 59 * idle / busy / interrupt cycle counts which should provide very good 73 ULONG ulIdleLow; /* Low 32 bits of idle time */ 74 ULONG ulIdleHigh; /* High 32 bits of idle time */
|
/freebsd-13-stable/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-13-stable/sys/powerpc/powermac/ |
H A D | uninorthvar.h | 108 extern int unin_chip_sleep(device_t dev, int idle);
|
/freebsd-13-stable/usr.sbin/powerd/ |
H A D | powerd.c | 140 * nice time will be treated as if idle. 496 int ch, mode, mode_ac, mode_battery, mode_none, idle, to; local 682 idle = 0; 692 if (mode == MODE_HIADAPTIVE || idle < 120) 694 else if (idle < 360) 728 if (idle % 32 == 0) { 733 idle++; 750 idle = 0; 769 idle = 0; 830 idle [all...] |
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/ |
H A D | zed.c | 268 idle: 302 goto idle;
|
/freebsd-13-stable/usr.sbin/ppp/ |
H A D | bundle.h | 109 unsigned min_timeout; /* Don't idle out before this */ 110 } idle; member in struct:bundle::__anon16614 136 } idle; member in struct:bundle
|
H A D | bundle.c | 241 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED) 242 /* We may need to start our idle timer */ 277 * If it's the first NCP, start the idle timer. 309 * If it's our last NCP, stop the idle timer. 827 bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT; 828 bundle.cfg.idle.min_timeout = 0; 883 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer); 884 bundle.idle.done = 0; 916 timer_Stop(&bundle->idle [all...] |
/freebsd-13-stable/sys/netinet6/ |
H A D | ip_fw_nat64.h | 170 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state 191 uint16_t idle; /* Last used time */ member in struct:_ipfw_nat64lsn_state_v1
|
/freebsd-13-stable/lib/libc/isc/ |
H A D | ev_timers.c | 495 struct timespec idle; local 500 idle = evSubTime(ctx->lastEventTime, this->lastTouched); 501 if (evCmpTime(idle, this->max_idle) >= 0) { 512 this->timer->inter = evSubTime(this->max_idle, idle);
|
/freebsd-13-stable/sys/kern/ |
H A D | kern_clocksource.c | 68 static sbintime_t getnextcpuevent(int idle); 105 static u_int idletick; /* Run periodic events when idle. */ 107 0, "Run periodic events when idle"); 126 int idle; /* This CPU is in idle mode. */ member in struct:pcpu_state 219 state->idle = 0; 232 getnextcpuevent(int idle) argument 239 /* Handle hardclock() events, skipping some if CPU is idle. */ 241 if (idle) { 255 if (!idle) { /* I [all...] |
/freebsd-13-stable/usr.sbin/bhyve/ |
H A D | usb_mouse.c | 249 uint8_t idle; member in struct:umouse_softc::__anon16478 630 *udata = sc->hid.idle; 651 sc->hid.idle = UGETW(xfer->ureq->wValue) >> 8; 653 sc->hid.idle)); 804 SNAPSHOT_VAR_OR_LEAVE(sc->hid.idle, meta, ret, done);
|
/freebsd-13-stable/sys/dev/sym/ |
H A D | sym_fw.h | 75 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \
|
/freebsd-13-stable/sys/arm/ti/ |
H A D | ti_sysc.c | 122 /* master idle / slave idle mode defined in 8.1.3.2.1 / 8.1.3.2.2 */ 353 parse_idle(struct ti_sysc_softc *sc, const char *name, uint32_t *idle) { argument 374 idle[i] = value[i]; 395 idle[i] = -1; 519 if (OF_hasprop(node, "ti,no-idle-on-init")) 524 if (OF_hasprop(node, "ti,no-idle")) 530 "no-reset-on-init %d, no-idle-on-init %d, no-idle %d\n",
|
/freebsd-13-stable/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) {
|