Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c43 tsp->tv_nsec = hrt % NANOSEC; in hrt2ts()
65 tsp->tv_nsec = nsec; in hrt2ts()
84 if (abstime->tv_nsec >= now.tv_nsec) { in abstime_to_reltime()
86 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec; in abstime_to_reltime()
89 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime()
97 reltime->tv_nsec = 0; in abstime_to_reltime()
106 if ((ulong_t)abstime->tv_nsec >= NANOSEC) in abstime_to_reltime()
107 reltime->tv_nsec = abstime->tv_nsec; in abstime_to_reltime()
H A Dutimesys.c66 ts[0].tv_nsec = 0; in utime()
68 ts[1].tv_nsec = 0; in utime()
88 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in utimes_impl()
90 ts[1].tv_nsec = ltimes[1].tv_usec * 1000; in utimes_impl()
123 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in futimesat()
125 ts[1].tv_nsec = ltimes[1].tv_usec * 1000; in futimesat()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dtv20 uint32_t tv_nsec;
24 if mem stat.st_mtimespec.tv_nsec sys/stat.h {
25 #define ST_ATIME_NSEC_GET(st) ((st)->st_atimespec.tv_nsec)
26 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctimespec.tv_nsec)
27 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtimespec.tv_nsec)
29 elif mem stat.st_mtim.st__tim.tv_nsec sys/stat.h {
30 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.st__tim.tv_nsec)
34 elif mem stat.st_mtim.tv_nsec sys/stat.h {
35 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
36 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_timers.c63 x.tv_nsec = nsec; in evConsTime()
72 x.tv_nsec = addend1.tv_nsec + addend2.tv_nsec; in evAddTime()
75 x.tv_nsec -= BILLION; in evAddTime()
85 if (minuend.tv_nsec >= subtrahend.tv_nsec) in evSubTime()
86 x.tv_nsec = minuend.tv_nsec - subtrahend.tv_nsec; in evSubTime()
88 x.tv_nsec = BILLION - subtrahend.tv_nsec + minuend.tv_nsec; in evSubTime()
99 x = a.tv_nsec - b.tv_nsec; in evCmpTime()
187 if (due.tv_sec < 0 || due.tv_nsec < 0 || due.tv_nsec >= BILLION) in evSetTimer()
190 if (inter.tv_sec < 0 || inter.tv_nsec < 0 || inter.tv_nsec >= BILLION) in evSetTimer()
303 if (due.tv_sec < 0 || due.tv_nsec < 0 || due.tv_nsec >= BILLION) in evResetTimer()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtvtouch.c113 ts[0].tv_nsec = UTIME_NOW; in tvtouch()
118 ts[0].tv_nsec = UTIME_OMIT; in tvtouch()
123 ts[0].tv_nsec = NS(av->tv_nsec); in tvtouch()
128 ts[1].tv_nsec = UTIME_NOW; in tvtouch()
133 ts[1].tv_nsec = UTIME_OMIT; in tvtouch()
138 ts[1].tv_nsec = NS(mv->tv_nsec); in tvtouch()
179 ts[0].tv_nsec = ST_ATIME_NSEC_GET(&st); in tvtouch()
184 ts[0].tv_nsec = NS(av->tv_nsec); in tvtouch()
189 ts[1].tv_nsec = ST_MTIME_NSEC_GET(&st); in tvtouch()
194 ts[1].tv_nsec = NS(mv->tv_nsec); in tvtouch()
[all …]
H A Dtvcmp.c38 if (a->tv_nsec != TV_NSEC_IGNORE && b->tv_nsec != TV_NSEC_IGNORE) in tvcmp()
40 if (a->tv_nsec < b->tv_nsec) in tvcmp()
42 if (a->tv_nsec > b->tv_nsec) in tvcmp()
H A Dtvsleep.c42 stv.tv_nsec = tv->tv_nsec; in tvsleep()
45 rv->tv_nsec = srv.tv_nsec; in tvsleep()
/illumos-gate/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h64 if ((ts).tv_nsec > NANOSEC) { \
65 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \
66 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \
73 (ts).tv_nsec += (add).tv_nsec; \
74 if ((ts).tv_nsec > NANOSEC) { \
75 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \
76 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \
83 (delta).tv_nsec = (new).tv_nsec - (old).tv_nsec;\
84 if ((delta).tv_nsec < 0) { \
85 delta.tv_nsec += NANOSEC; \
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_osdep.h103 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
110 (vvp)->tv_nsec += (uvp)->tv_nsec; \
111 if ((vvp)->tv_nsec >= 1000000000) { \
113 (vvp)->tv_nsec -= 1000000000; \
120 (vvp)->tv_nsec -= (uvp)->tv_nsec; \
121 if ((vvp)->tv_nsec < 0) { \
123 (vvp)->tv_nsec += 1000000000; \
H A Dsmb_time.c81 tsp->tv_nsec = 0; in smb_time_NT2local()
90 tsp->tv_nsec = 0; in smb_time_NT2local()
94 tsp->tv_nsec = nt_tus * 100; in smb_time_NT2local()
116 nt_tus = tsp->tv_nsec / 100; in smb_time_local2NT()
141 tsp->tv_nsec = 0; in smb_time_server2local()
/illumos-gate/usr/src/uts/common/syscall/
H A Dutime.c135 if (ts[0].tv_nsec == UTIME_NOW || ts[1].tv_nsec == UTIME_NOW) in get_timespec_vattr()
138 if (ts[0].tv_nsec == UTIME_OMIT) { in get_timespec_vattr()
139 ts[0].tv_nsec = 0; in get_timespec_vattr()
142 if (ts[0].tv_nsec == UTIME_NOW) in get_timespec_vattr()
144 else if (ts[0].tv_nsec < 0 || ts[0].tv_nsec >= NANOSEC) in get_timespec_vattr()
147 if (ts[1].tv_nsec == UTIME_OMIT) { in get_timespec_vattr()
148 ts[1].tv_nsec = 0; in get_timespec_vattr()
151 if (ts[1].tv_nsec == UTIME_NOW) in get_timespec_vattr()
153 else if (ts[1].tv_nsec < 0 || ts[1].tv_nsec >= NANOSEC) in get_timespec_vattr()
H A Dlwp_timer.c69 lwptp->lwpt_rqtime.tv_nsec > now.tv_nsec))) { in lwp_timer_timeout()
127 if (lwptp->lwpt_rqtime.tv_sec == 0 && lwptp->lwpt_rqtime.tv_nsec == 0) { in lwp_timer_copyin()
156 lwptp->lwpt_rqtime.tv_nsec > now.tv_nsec))) { in lwp_timer_enqueue()
204 rmtime.tv_sec = rmtime.tv_nsec = 0; in lwp_timer_copyout()
209 (now.tv_nsec < lwptp->lwpt_rqtime.tv_nsec))) { in lwp_timer_copyout()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dtimespec_get.c31 if (ls->tv_nsec > rs->tv_nsec) in timespec_cmp()
33 if (ls->tv_nsec > rs->tv_nsec) in timespec_cmp()
35 if (ls->tv_nsec < rs->tv_nsec) in timespec_cmp()
H A Dutimes.c36 .tv_nsec = 123456789
40 .tv_nsec = 17
44 .tv_nsec = 9
48 .tv_nsec = 987654321
69 } else if (st->st_atim.tv_nsec != ( in compare_times()
70 trunc ? atim->tv_nsec / 1000 * 1000 : atim->tv_nsec)) { in compare_times()
74 } else if (st->st_mtim.tv_nsec != ( in compare_times()
75 trunc ? mtim->tv_nsec / 1000 * 1000 : mtim->tv_nsec)) { in compare_times()
81 st->st_atim.tv_sec, st->st_atim.tv_nsec); in compare_times()
83 st->st_mtim.tv_sec, st->st_mtim.tv_nsec); in compare_times()
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h177 _ts->tv_nsec = ((uint64_t)1000000000 * in bintime2timespec()
187 _bt->frac = _ts->tv_nsec * (uint64_t)18446744073LL; in timespec2bintime()
213 _ts.tv_nsec = ((uint64_t)1000000000 * (uint32_t)_sbt) >> 32; in sbttots()
248 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec)
251 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
256 (vvp)->tv_nsec += (uvp)->tv_nsec; \
257 if ((vvp)->tv_nsec >= 1000000000) { \
259 (vvp)->tv_nsec -= 1000000000; \
265 (vvp)->tv_nsec -= (uvp)->tv_nsec; \
266 if ((vvp)->tv_nsec < 0) { \
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/modules/sata/
H A Dsata.c153 (int)dmsg.timestamp.tv_nsec/1000000, in sata_dmsg_dump()
154 (int)(dmsg.timestamp.tv_nsec/1000)%1000, in sata_dmsg_dump()
155 (int)dmsg.timestamp.tv_nsec%1000, in sata_dmsg_dump()
163 (int)dmsg.timestamp.tv_nsec/1000000, in sata_dmsg_dump()
164 (int)(dmsg.timestamp.tv_nsec/1000)%1000, in sata_dmsg_dump()
165 (int)dmsg.timestamp.tv_nsec%1000, in sata_dmsg_dump()
181 (int)dmsg.timestamp.tv_nsec/1000000, in sata_dmsg_dump()
182 (int)(dmsg.timestamp.tv_nsec/1000)%1000, in sata_dmsg_dump()
183 (int)dmsg.timestamp.tv_nsec%1000, in sata_dmsg_dump()
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/
H A Dtv79 uint32_t tv_nsec;
82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
90 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
91 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
92 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
94 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
95 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
96 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/
H A Dtv79 uint32_t tv_nsec;
82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
90 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
91 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
92 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
94 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
95 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
96 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/
H A Dtv79 uint32_t tv_nsec;
82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
90 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
91 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
92 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
94 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
95 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
96 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/
H A Dtv79 uint32_t tv_nsec;
82 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
83 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
84 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
90 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
91 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
92 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
94 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
95 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
96 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/illumos-gate/usr/src/uts/common/os/
H A Dclock_highres.c120 when->it_value.tv_nsec > 0 && in clock_highres_timer_settime()
121 when->it_value.tv_nsec < clock_highres_interval_min) in clock_highres_timer_settime()
125 when->it_interval.tv_nsec > 0 && in clock_highres_timer_settime()
126 when->it_interval.tv_nsec < clock_highres_interval_min) in clock_highres_timer_settime()
135 clamped.it_value.tv_nsec = clock_highres_interval_min; in clock_highres_timer_settime()
137 clamped.it_value.tv_nsec = when->it_value.tv_nsec; in clock_highres_timer_settime()
141 clamped.it_interval.tv_nsec = in clock_highres_timer_settime()
144 clamped.it_interval.tv_nsec = when->it_interval.tv_nsec; in clock_highres_timer_settime()
155 it->it_itime.it_interval.tv_nsec == 0 && in clock_highres_timer_settime()
/illumos-gate/usr/src/cmd/ptools/ptime/
H A Dptime.c271 name, buf, (uint_t)ts->tv_nsec); in prtime()
289 if ((result->tv_nsec = a->tv_nsec + b->tv_nsec) >= 1000000000) { in tsadd()
290 result->tv_nsec -= 1000000000; in tsadd()
299 if ((result->tv_nsec = a->tv_nsec - b->tv_nsec) < 0) { in tssub()
300 result->tv_nsec += 1000000000; in tssub()
309 tsp->tv_nsec = hrt % NANOSEC; in hrt2ts()
/illumos-gate/usr/src/lib/commpage/common/
H A Dcp_main.c134 now.tv_nsec = cp->cp_hrestime[1]; in __cp_clock_gettime_realtime()
143 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
152 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
157 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
163 while ((unsigned long)now.tv_nsec >= NANOSEC) { in __cp_clock_gettime_realtime()
164 now.tv_nsec -= NANOSEC; in __cp_clock_gettime_realtime()
/illumos-gate/usr/src/uts/common/sys/
H A Dtime_impl.h59 long tv_nsec; /* and nanoseconds */ member
68 (ts)->tv_nsec = (ts32)->tv_nsec; \
73 (ts32)->tv_nsec = (ts)->tv_nsec; \
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/without_structs/
H A Dimplicit_dependencies_verbose.pretty5469 ('timespec', 'tv_nsec'),
5502 ('timespec', 'tv_nsec'),
5514 ('timespec', 'tv_nsec'),
5522 ('timespec', 'tv_nsec'),
5529 ('timespec', 'tv_nsec'),
5577 ('timespec', 'tv_nsec'),
5582 ('timespec', 'tv_nsec'),
5593 ('timespec', 'tv_nsec'),
5605 ('timespec', 'tv_nsec'),
5643 ('timespec', 'tv_nsec'),
[all …]

12345678910>>...15