Home
last modified time | relevance | path

Searched refs:tsp (Results 1 – 14 of 14) sorted by relevance

/glibc-2.36/sysdeps/mach/hurd/
Dutime-helper.c88 utime_ts_from_tspec (const struct timespec tsp[2], in utime_ts_from_tspec()
91 if (tsp == NULL) in utime_ts_from_tspec()
102 *atime = tsp[0]; in utime_ts_from_tspec()
103 *mtime = tsp[1]; in utime_ts_from_tspec()
109 utime_tvalue_from_tspec (const struct timespec tsp[2], in utime_tvalue_from_tspec()
112 if (tsp == NULL) in utime_tvalue_from_tspec()
118 if (tsp[0].tv_nsec == UTIME_NOW) in utime_tvalue_from_tspec()
120 else if (tsp[0].tv_nsec == UTIME_OMIT) in utime_tvalue_from_tspec()
123 TIMESPEC_TO_TIME_VALUE (atime, &(tsp[0])); in utime_tvalue_from_tspec()
124 if (tsp[1].tv_nsec == UTIME_NOW) in utime_tvalue_from_tspec()
[all …]
Dfutimens.c30 __futimens (int fd, const struct timespec tsp[2]) in __futimens()
35 utime_ts_from_tspec (tsp, &atime, &mtime); in __futimens()
43 utime_tvalue_from_tspec (tsp, &atim, &mtim); in __futimens()
Dutimensat.c30 utimensat (int fd, const char *file, const struct timespec tsp[2], in utimensat()
40 err = hurd_futimens (port, tsp); in utimensat()
/glibc-2.36/hurd/
Dhurdlock.h111 #define lll_abstimed_wait(var, val, tsp, flags, ...) \ argument
114 __lll_abstimed_wait (&(var), (val), (tsp), (flags), \
118 #define lll_abstimed_wait_intr(var, val, tsp, flags, ...) \ argument
121 __lll_abstimed_wait_intr (&(var), (val), (tsp), (flags), \
125 #define lll_abstimed_xwait(var, lo, hi, tsp, flags, ...) \ argument
128 __lll_abstimed_xwait (&(var), (lo), (hi), (tsp), (flags), \
132 #define lll_abstimed_lock(var, tsp, flags, ...) \ argument
135 __lll_abstimed_lock (&(var), (tsp), (flags), \
139 #define lll_robust_abstimed_lock(var, tsp, flags, ...) \ argument
142 __lll_robust_abstimed_lock (&(var), (tsp), (flags), \
Dhurdlock.c48 const struct timespec *tsp, int flags, int clk) in __lll_abstimed_wait() argument
53 int mlsec = compute_reltime (tsp, clk); in __lll_abstimed_wait()
59 const struct timespec *tsp, int flags, int clk) in __lll_abstimed_wait_intr() argument
64 int mlsec = compute_reltime (tsp, clk); in __lll_abstimed_wait_intr()
70 const struct timespec *tsp, int flags, int clk) in __lll_abstimed_xwait() argument
75 int mlsec = compute_reltime (tsp, clk); in __lll_abstimed_xwait()
82 const struct timespec *tsp, int flags, int clk) in __lll_abstimed_lock() argument
94 else if (! valid_nanoseconds (tsp->tv_nsec)) in __lll_abstimed_lock()
97 int mlsec = compute_reltime (tsp, clk); in __lll_abstimed_lock()
163 const struct timespec *tsp, int flags, int clk) in __lll_robust_abstimed_lock() argument
[all …]
/glibc-2.36/sysdeps/mach/hurd/htl/
Dpt-mutex-timedlock.c29 const struct timespec *tsp) in __pthread_mutex_clocklock() argument
37 ret = lll_abstimed_lock (mtxp->__lock, tsp, flags, clockid); in __pthread_mutex_clocklock()
50 else if ((ret = lll_abstimed_lock (mtxp->__lock, tsp, flags, clockid)) == 0) in __pthread_mutex_clocklock()
62 else if ((ret = lll_abstimed_lock (mtxp->__lock, tsp, flags, clockid)) == 0) in __pthread_mutex_clocklock()
71 ROBUST_LOCK (self, mtxp, lll_robust_abstimed_lock, tsp, flags, clockid); in __pthread_mutex_clocklock()
85 const struct timespec *tsp) in weak_alias()
87 return __pthread_mutex_clocklock (mutex, CLOCK_REALTIME, tsp); in weak_alias()
/glibc-2.36/support/
Dsupport_path_support_time64.c30 utimesat_call (const char *path, const struct __timespec64 tsp[2]) in utimesat_call()
35 return syscall (__NR_utimensat_time64, AT_FDCWD, path, &tsp[0], 0); in utimesat_call()
47 const struct __timespec64 tsp[] = { { at, 0 }, { mt, 0 } }; in support_path_support_time64_value() local
50 if (utimesat_call (path, tsp) == -1) in support_path_support_time64_value()
58 bool support = stx.stx_atime.tv_sec == tsp[0].tv_sec in support_path_support_time64_value()
59 && stx.stx_mtime.tv_sec == tsp[1].tv_sec; in support_path_support_time64_value()
Dsupport_stat_nanoseconds.c38 const struct timespec tsp[] = { { 0, TIMESPEC_HZ - 1 }, in support_stat_nanoseconds() local
40 TEST_VERIFY_EXIT (utimensat (AT_FDCWD, path, tsp, 0) == 0); in support_stat_nanoseconds()
45 support = st.st_atim.tv_nsec == tsp[0].tv_nsec in support_stat_nanoseconds()
46 && st.st_mtim.tv_nsec == tsp[1].tv_nsec; in support_stat_nanoseconds()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dfutimens.c44 __futimens (int fd, const struct timespec tsp[2]) in __futimens()
47 if (tsp) in __futimens()
49 tsp64[0] = valid_timespec_to_timespec64 (tsp[0]); in __futimens()
50 tsp64[1] = valid_timespec_to_timespec64 (tsp[1]); in __futimens()
53 return __futimens64 (fd, tsp ? &tsp64[0] : NULL); in __futimens()
Dutimensat.c88 __utimensat (int fd, const char *file, const struct timespec tsp[2], in libc_hidden_def()
92 if (tsp) in libc_hidden_def()
94 tsp64[0] = valid_timespec_to_timespec64 (tsp[0]); in libc_hidden_def()
95 tsp64[1] = valid_timespec_to_timespec64 (tsp[1]); in libc_hidden_def()
98 return __utimensat64 (fd, file, tsp ? &tsp64[0] : NULL, flags); in libc_hidden_def()
/glibc-2.36/include/
Dtime.h191 const struct __timespec64 tsp[2], int flags);
196 const struct __timespec64 tsp[2], int flags);
212 extern int __futimens64 (int fd, const struct __timespec64 tsp[2]);
/glibc-2.36/io/
Dfutimens.c29 futimens (int fd, const struct timespec tsp[2]) in futimens()
Dutimensat.c26 utimensat (int fd, const char *file, const struct timespec tsp[2], in utimensat()
/glibc-2.36/inet/protocols/
Dtimed.h46 struct tsp { struct