/openbsd/usr.bin/w/ |
H A D | pr_time.c | 81 pr_idle(time_t idle) in pr_idle() argument 83 int days = idle / SECSPERDAY; in pr_idle() 86 if (idle >= 36 * SECSPERHOUR) { in pr_idle() 96 else if (idle >= SECSPERHOUR) in pr_idle() 98 (long long)idle / SECSPERHOUR, in pr_idle() 99 ((long long)idle % SECSPERHOUR) / 60); in pr_idle() 103 (void)printf(" %2lld ", (long long)idle / 60); in pr_idle()
|
H A D | w.c | 90 time_t idle; /* idle time of terminal in seconds */ member 211 if ((ep->idle = now - stp->st_atime) < 0) in main() 212 ep->idle = 0; in main() 276 (*nextp) && from->idle >= (*nextp)->idle; in main() 327 pr_idle(ep->idle); in main()
|
/openbsd/usr.bin/rusers/ |
H A D | rusers.c | 83 u_int idle; member 203 switch (idle) { in fmt_idle() 211 seconds = idle; in fmt_idle() 225 else if (idle > 60) in fmt_idle() 262 entry->idle = UINT_MAX; in rusers_reply() 731 if (a->idle < b->idle) in hcompare() 733 else if (a->idle > b->idle) in hcompare() 750 if (a->idle < b->idle) in icompare() 752 else if (a->idle > b->idle) in icompare() 774 if (a->idle < b->idle) in ucompare() [all …]
|
/openbsd/regress/sys/kern/sosplice/ |
H A D | funcs.pl | 169 my $idle = $self->{idle}; 179 if ($idle && $n == 0) { 255 my $idle = $self->{idle}; 261 if ($idle) { 324 my $idle = $self->{idle}; 377 my $idle = $self->{idle}; 380 setsplice(\*STDIN, \*STDOUT, $splicemax, $idle) 413 my ($idle, $max, $len, $error) = @_; 415 if ($idle && $error == Errno::ETIMEDOUT) { 580 my $idle = $self->{idle}; [all …]
|
H A D | Relay.pm | 103 my $idle = 15; # timeout 106 defined(my $n = select($rin, undef, undef, $idle)) 108 $idle && $n == 0
|
/openbsd/usr.bin/dig/lib/isc/ |
H A D | timer.c | 36 struct timespec idle; member 84 due = timer->idle; in schedule() 196 timespecadd(&now, interval, &timer->idle); in isc_timer_create() 260 timespecadd(&now, interval, &timer->idle); in isc_timer_reset() 262 timespecclear(&timer->idle); in isc_timer_reset() 279 timespecadd(&now, &timer->interval, &timer->idle); in isc_timer_touch() 312 int idle; in dispatch() local 322 idle = 0; in dispatch() 325 &timer->idle, >=)) { in dispatch() 326 idle = 1; in dispatch() [all …]
|
/openbsd/usr.bin/who/ |
H A D | who.c | 230 time_t idle = 0; in output() local 242 idle = now - sb.st_atime; in output() 245 idle = 0; in output() 259 if (idle < 60) in output() 261 else if (idle < (24 * 60 * 60)) in output() 263 ((int)idle / (60 * 60)), in output() 264 ((int)idle % (60 * 60)) / 60); in output()
|
/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_ids.c | 201 struct amdgpu_vmid **idle, in amdgpu_vmid_grab_idle() argument 221 list_for_each_entry((*idle), &id_mgr->ids_lru, list) { in amdgpu_vmid_grab_idle() 226 fences[i] = amdgpu_sync_peek_fence(&(*idle)->active, r); in amdgpu_vmid_grab_idle() 233 if (&(*idle)->list == &id_mgr->ids_lru) { in amdgpu_vmid_grab_idle() 239 *idle = NULL; in amdgpu_vmid_grab_idle() 403 struct amdgpu_vmid *idle = NULL; in amdgpu_vmid_grab() local 408 r = amdgpu_vmid_grab_idle(vm, ring, &idle, fence); in amdgpu_vmid_grab() 409 if (r || !idle) in amdgpu_vmid_grab() 423 id = idle; in amdgpu_vmid_grab()
|
/openbsd/libexec/rpc.rusersd/ |
H A D | rusers_proc.c | 78 long idle; in getidle() local 94 idle = now - st.st_atime; in getidle() 95 idle = (idle + 30) / 60; /* secs->mins */ in getidle() 96 if (idle < 0) in getidle() 97 idle = 0; in getidle() 99 return (idle); in getidle()
|
/openbsd/regress/sys/kern/sosplice/udp/ |
H A D | args-long.pl | 12 idle => 6, 18 idle => 7,
|
H A D | relay.pl | 42 idle => 4, 51 idle => 3,
|
H A D | remote.pl | 64 idle => 3, 94 idle => 4,
|
H A D | args-idle-timeout.pl | 16 idle => 2,
|
H A D | args-idle-trickle.pl | 15 idle => 2,
|
H A D | args-sleep-client.pl | 16 idle => 5,
|
H A D | args-maxcopy-sleep-client.pl | 17 idle => 5,
|
/openbsd/libexec/talkd/ |
H A D | process.c | 196 time_t idle, now; in find_user() local 199 idle = INT_MAX; in find_user() 221 } else if (now - statb.st_atime < idle) { in find_user() 222 idle = now - statb.st_atime; in find_user()
|
/openbsd/usr.bin/file/magdir/ |
H A D | gnome-keyring | 21 >>>>>>>&0 ubelong x \b, locked if idle for %u seconds 22 >>>>>>&16 ubelong ^1 \b, not locked if idle
|
/openbsd/sys/kern/ |
H A D | sched_bsd.c | 598 uint64_t idle, total, allidle = 0, alltotal = 0; in setperf_auto() local 630 idle = ci->ci_schedstate.spc_cp_time[CP_IDLE] - idleticks[j]; in setperf_auto() 631 if (idle < total / 3) in setperf_auto() 634 allidle += idle; in setperf_auto() 635 idleticks[j] += idle; in setperf_auto()
|
H A D | kern_sched.c | 228 struct proc *idle; in sched_toidle() local 250 idle = spc->spc_idleproc; in sched_toidle() 251 idle->p_stat = SRUN; in sched_toidle() 254 TRACEPOINT(sched, off__cpu, idle->p_tid + THREAD_PID_OFFSET, in sched_toidle() 255 idle->p_p->ps_pid); in sched_toidle() 256 cpu_switchto(NULL, idle); in sched_toidle()
|
/openbsd/usr.bin/top/ |
H A D | top.c | 280 ps.idle = !ps.idle; in parseargs() 396 ps.idle = true; in main() 906 ps.idle = !ps.idle; in rundisplay() 909 ps.idle ? "D" : "Not d"); in rundisplay()
|
/openbsd/regress/sys/kern/sosplice/tcp/ |
H A D | args-idle-trickle.pl | 12 idle => 2,
|
H A D | args-idle-timeout.pl | 11 idle => 2,
|
H A D | args-idle-reverse.pl | 19 idle => 2,
|
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn10/ |
H A D | dcn10_mpc.c | 150 unsigned int idle; in mpc1_is_mpcc_idle() local 154 REG_GET(MPCC_STATUS[mpcc_id], MPCC_IDLE, &idle); in mpc1_is_mpcc_idle() 155 if (top_sel == 0xf && opp_id == 0xf && idle) in mpc1_is_mpcc_idle() 472 REG_GET_2(MPCC_STATUS[mpcc_inst], MPCC_IDLE, &s->idle, in mpc1_read_mpcc_state()
|