Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 426) sorted by path

12345678910>>...18

/illumos-gate/usr/src/boot/common/
H A Dpart.c263 int pri, sec; in ptable_gptread() local
280 pri = sec = 0; in ptable_gptread()
326 sec = 1; in ptable_gptread()
330 if (pri == 0 && sec == 0) { in ptable_gptread()
/illumos-gate/usr/src/boot/forth/
H A Ddelay.4th77 25 ms \ sleep for 25 milliseconds (40 iterations/sec)
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosdisk.c1155 uint32_t x, bpc, cyl, hd, sec; in bd_chs_io() local
1162 sec = x % bd->bd_sec; /* offset into track */ in bd_chs_io()
1165 sec++; in bd_chs_io()
1178 v86.ecx = ((cyl & 0xff) << 8) | ((cyl & 0x300) >> 2) | sec; in bd_chs_io()
H A Dtime.c45 int hr, minute, sec; in bios_seconds() local
54 sec = bcd2bin((v86.edx & 0xff00) >> 8); /* second in %dh */ in bios_seconds()
56 return (hr * 3600 + minute * 60 + sec); in bios_seconds()
/illumos-gate/usr/src/boot/libsa/
H A Ddosfs.c588 uint_t nsec, lsec, xdn, chk, sec, ent, x; in lookup() local
610 for (sec = 0; sec < nsec; sec++) { in lookup()
611 if ((err = ioget(fs->fd, lsec + sec, dir, secbyt(1)))) in lookup()
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h54 time_t sec; member
66 _bt->sec++; in bintime_addx()
77 _bt->sec++; in bintime_add()
78 _bt->sec += _bt2->sec; in bintime_add()
89 _bt->sec--; in bintime_sub()
90 _bt->sec -= _bt2->sec; in bintime_sub()
100 _bt->sec *= _x; in bintime_mul()
110 _bt->sec <<= _exp; in bintime_shift()
116 _bt->sec >>= -_exp; in bintime_shift()
123 (((a)->sec == (b)->sec) ? \
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctcom.c596 long hr, min, sec; local
598 min = sec = 0;
600 if(sscanf(str, "%ld:%ld:%ld", &hr, &min, &sec) < 1) {
604 sec += (min*60);
605 sec += (hr*3600);
606 return(sec + timezone);
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h158 virtual off_t Time_to_Bytes(Double sec) const;
166 virtual unsigned long Time_to_Samples(Double sec) const;
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioHdr.cc139 Double sec) const // time, in seconds in Time_to_Bytes()
143 if (Undefined(sec) || (Validate() != AUDIO_SUCCESS)) in Time_to_Bytes()
146 offset = (off_t)(0.5 + (sec * in Time_to_Bytes()
198 Double sec) const // time, in seconds in Time_to_Samples()
200 if (Undefined(sec) || (Validate() != AUDIO_SUCCESS)) in Time_to_Samples()
205 (((double)sec * (double)sample_rate) / (double)samples_per_unit))); in Time_to_Samples()
H A Dhdr_misc.c64 offset = (unsigned)(0.5 + (sec * in audio_secs_to_bytes()
128 if (sec == HUGE_VAL) { in audio_secs_to_str()
139 if (sec < 0.) { in audio_secs_to_str()
140 sec = -sec; in audio_secs_to_str()
145 if (sec > 0.) in audio_secs_to_str()
150 x = fmod(sec, 60.); in audio_secs_to_str()
151 sec -= x; in audio_secs_to_str()
154 sec += x; in audio_secs_to_str()
156 if (sec >= 60.) { in audio_secs_to_str()
159 sec -= (double)(ovflow * 60); in audio_secs_to_str()
[all …]
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c169 int sec = tme->tm_sec; in tm_to_secs() local
192 num_sec += sec; in tm_to_secs()
/illumos-gate/usr/src/cmd/bnu/
H A Duudemon.cleanup126 SEC_LOGS=$OLD/Old-sec
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_phys.c221 #define WLAN_ENC(sec) \ argument
222 ((sec == DLADM_WLAN_SECMODE_WPA ? "WPA" : \
223 (sec == DLADM_WLAN_SECMODE_WEP ? "WEP" : "none")))
225 #define NEED_ENC(sec) \ argument
226 (sec == DLADM_WLAN_SECMODE_WPA || sec == DLADM_WLAN_SECMODE_WEP)
H A Dutil.h66 #define SEC_TO_NSEC(sec) (sec) * (long)NANOSEC argument
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dbound.c437 fuzzify(uint32_t sec, double pct) in fuzzify() argument
439 return (sec * (pct + (drand48() - 0.5) / 25.0)); in fuzzify()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp.c78 static int empty(struct fd_set *mask, int sec, int nfds);
722 empty(struct fd_set *mask, int sec, int nfds) in empty() argument
727 t.tv_sec = (time_t)sec; in empty()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa.c246 int sec; in pmksa_cache_set_expiration() local
250 sec = wpa_s->pmksa->expiration - time(NULL); in pmksa_cache_set_expiration()
251 if (sec < 0) in pmksa_cache_set_expiration()
252 sec = 0; in pmksa_cache_set_expiration()
253 (void) eloop_register_timeout(sec + 1, 0, pmksa_cache_expire, in pmksa_cache_set_expiration()
H A Dwpa_supplicant.c146 wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec) in wpa_supplicant_req_scan() argument
149 sec, usec); in wpa_supplicant_req_scan()
151 (void) eloop_register_timeout(sec, usec, wpa_supplicant_scan, in wpa_supplicant_req_scan()
177 int sec, int usec) in wpa_supplicant_req_auth_timeout() argument
180 "%d usec", sec, usec); in wpa_supplicant_req_auth_timeout()
182 (void) eloop_register_timeout(sec, usec, wpa_supplicant_timeout, in wpa_supplicant_req_auth_timeout()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drdisc.c351 time_t sec; in rdisc_age() local
377 sec = (now.tv_sec - drp->dr_life + in rdisc_age()
379 if (drp->dr_ts > sec) { in rdisc_age()
383 drp->dr_ts = sec; in rdisc_age()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop.c616 int sec, usec; in show_pktinfo() local
640 sec = tvp->tv_sec - ptvp->tv_sec; in show_pktinfo()
644 sec -= 1; in show_pktinfo()
646 (void) sprintf(lp, "%3d.%05d ", sec, usec / 10); in show_pktinfo()
H A Dsnoop.h205 char *format_time(int64_t sec, uint32_t nsec);
H A Dsnoop_display.c572 time_t sec; in getxdr_date() local
580 sec = getxdr_long(); in getxdr_date()
582 if (sec == -1) in getxdr_date()
588 tmp = gmtime(&sec); in getxdr_date()
612 time_t sec, nsec; in getxdr_date_ns() local
614 sec = getxdr_long(); in getxdr_date_ns()
616 if (sec == -1) in getxdr_date_ns()
670 time_t sec; in getxdr_time() local
676 sec = getxdr_long(); in getxdr_time()
677 if (sec == -1) in getxdr_time()
[all …]
H A Dsnoop_ospf.c112 long sec, mins, hour; in ospf_print_lsa_age() local
115 sec = age % 60; in ospf_print_lsa_age()
120 hour, mins, sec); in ospf_print_lsa_age()
122 snprintf(lsa_age, sizeof (lsa_age), "%u:%02u", mins, sec); in ospf_print_lsa_age()
124 snprintf(lsa_age, sizeof (lsa_age), "%u", sec); in ospf_print_lsa_age()
H A Dsnoop_pmap.c496 time_t sec = getxdr_long(); local
497 struct tm *tmp = gmtime(&sec);
592 time_t sec = getxdr_long(); local
593 struct tm *tmp = gmtime(&sec);
/illumos-gate/usr/src/cmd/date/
H A Ddate.c225 int sec = 0; in setdate() local
236 (sec = atoi(&secptr[1])) >= 0 && sec < 60) in setdate()
327 clock_val += sec; in setdate()

12345678910>>...18