Home
last modified time | relevance | path

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

12345678910>>...16

/titanic_44/usr/src/lib/libast/common/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)
31 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.st__tim.tv_nsec)
32 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.st__tim.tv_nsec)
34 elif mem stat.st_mtim.tv_nsec sys/stat.h {
[all …]
/titanic_44/usr/src/lib/libc/port/sys/
H A Dtime_util.c62 tsp->tv_nsec = nsec; in hrt2ts()
80 if (abstime->tv_nsec >= now.tv_nsec) { in abstime_to_reltime()
82 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec; in abstime_to_reltime()
85 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime()
93 reltime->tv_nsec = 0; in abstime_to_reltime()
102 if ((ulong_t)abstime->tv_nsec >= NANOSEC) in abstime_to_reltime()
103 reltime->tv_nsec = abstime->tv_nsec; in abstime_to_reltime()
H A Dutimesys.c62 ts[0].tv_nsec = 0; in utime()
64 ts[1].tv_nsec = 0; in utime()
84 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in utimes()
86 ts[1].tv_nsec = ltimes[1].tv_usec * 1000; in utimes()
107 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in futimesat()
109 ts[1].tv_nsec = ltimes[1].tv_usec * 1000; in futimesat()
/titanic_44/usr/src/lib/libresolv2/common/isc/
H A Dev_timers.c69 x.tv_nsec = nsec; in evConsTime()
78 x.tv_nsec = addend1.tv_nsec + addend2.tv_nsec; in evAddTime()
79 if (x.tv_nsec >= BILLION) { in evAddTime()
81 x.tv_nsec -= BILLION; in evAddTime()
91 if (minuend.tv_nsec >= subtrahend.tv_nsec) in evSubTime()
92 x.tv_nsec = minuend.tv_nsec - subtrahend.tv_nsec; in evSubTime()
94 x.tv_nsec = BILLION - subtrahend.tv_nsec + minuend.tv_nsec; in evSubTime()
105 x = a.tv_nsec - b.tv_nsec; in evCmpTime()
153 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec()
162 tv.tv_usec = ts.tv_nsec / 1000; in evTimeVal()
[all …]
/titanic_44/usr/src/lib/libast/common/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()
142 …if (!utimensat(AT_FDCWD, path, ts[0].tv_nsec == UTIME_NOW && ts[1].tv_nsec == UTIME_NOW ? (struct … in tvtouch()
154 …if ((ts[0].tv_nsec != UTIME_NOW || ts[1].tv_nsec != UTIME_NOW) && utimensat(AT_FDCWD, path, ts, (f… 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()
[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()
/titanic_44/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_osdep.h78 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
85 (vvp)->tv_nsec += (uvp)->tv_nsec; \
86 if ((vvp)->tv_nsec >= 1000000000) { \
88 (vvp)->tv_nsec -= 1000000000; \
95 (vvp)->tv_nsec -= (uvp)->tv_nsec; \
96 if ((vvp)->tv_nsec < 0) { \
98 (vvp)->tv_nsec += 1000000000; \
/titanic_44/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h63 (ts).tv_nsec += (long)((nsec) % NANOSEC); \
64 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) { \
[all …]
/titanic_44/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()
/titanic_44/usr/src/lib/libast/amd64/include/ast/
H A Dtv.h100 uint32_t tv_nsec; member
103 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
104 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
105 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
111 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
112 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
113 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
115 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
116 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
117 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/titanic_44/usr/src/lib/libast/amd64/src/lib/libast/
H A Dtv.h79 uint32_t tv_nsec; member
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)
/titanic_44/usr/src/lib/libast/sparc/src/lib/libast/
H A Dtv.h79 uint32_t tv_nsec; member
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)
/titanic_44/usr/src/lib/libast/sparcv9/src/lib/libast/
H A Dtv.h79 uint32_t tv_nsec; member
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)
/titanic_44/usr/src/lib/libast/i386/include/ast/
H A Dtv.h100 uint32_t tv_nsec; member
103 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
104 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
105 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
111 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
112 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
113 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
115 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
116 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
117 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/titanic_44/usr/src/lib/libast/i386/src/lib/libast/
H A Dtv.h79 uint32_t tv_nsec; member
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)
/titanic_44/usr/src/lib/libast/sparc/include/ast/
H A Dtv.h100 uint32_t tv_nsec; member
103 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
104 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
105 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
111 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
112 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
113 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
115 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
116 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
117 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/titanic_44/usr/src/lib/libast/sparcv9/include/ast/
H A Dtv.h100 uint32_t tv_nsec; member
103 #define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
104 #define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
105 #define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
111 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
112 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
113 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
115 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
116 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
117 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
/titanic_44/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()
/titanic_44/usr/src/cmd/mdb/intel/modules/sata/
H A Dsata.c152 (int)dmsg.timestamp.tv_nsec/1000000, in sata_dmsg_dump()
153 (int)(dmsg.timestamp.tv_nsec/1000)%1000, in sata_dmsg_dump()
154 (int)dmsg.timestamp.tv_nsec%1000, in sata_dmsg_dump()
162 (int)dmsg.timestamp.tv_nsec/1000000, in sata_dmsg_dump()
163 (int)(dmsg.timestamp.tv_nsec/1000)%1000, in sata_dmsg_dump()
164 (int)dmsg.timestamp.tv_nsec%1000, in sata_dmsg_dump()
180 (int)dmsg.timestamp.tv_nsec/1000000, in sata_dmsg_dump()
181 (int)(dmsg.timestamp.tv_nsec/1000)%1000, in sata_dmsg_dump()
182 (int)dmsg.timestamp.tv_nsec%1000, in sata_dmsg_dump()
/titanic_44/usr/src/lib/libast/amd64/src/lib/libast/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)
/titanic_44/usr/src/lib/libast/sparcv9/src/lib/libast/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)
/titanic_44/usr/src/lib/libast/i386/src/lib/libast/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)
/titanic_44/usr/src/lib/libast/sparc/src/lib/libast/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)
/titanic_44/usr/src/cmd/ptools/ptime/
H A Dptime.c231 name, buf, (uint_t)ts->tv_nsec); in prtime()
249 if ((result->tv_nsec = a->tv_nsec + b->tv_nsec) >= 1000000000) { in tsadd()
250 result->tv_nsec -= 1000000000; in tsadd()
259 if ((result->tv_nsec = a->tv_nsec - b->tv_nsec) < 0) { in tssub()
260 result->tv_nsec += 1000000000; in tssub()
269 tsp->tv_nsec = hrt % NANOSEC; in hrt2ts()

12345678910>>...16