Lines Matching refs:ts
207 struct timespec ts; in UV_UNUSED() local
208 ts.tv_sec = time; in UV_UNUSED()
209 ts.tv_nsec = (time - ts.tv_sec) * 1e9; in UV_UNUSED()
216 ts.tv_nsec -= ts.tv_nsec % 1000; in UV_UNUSED()
218 if (ts.tv_nsec < 0) { in UV_UNUSED()
219 ts.tv_nsec += 1e9; in UV_UNUSED()
220 ts.tv_sec -= 1; in UV_UNUSED()
222 return ts; in UV_UNUSED()
241 struct timespec ts[2]; in uv__fs_futime() local
242 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_futime()
243 ts[1] = uv__fs_to_timespec(req->mtime); in uv__fs_futime()
244 return futimens(req->file, ts); in uv__fs_futime()
1152 struct timespec ts[2]; in uv__fs_utime() local
1153 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_utime()
1154 ts[1] = uv__fs_to_timespec(req->mtime); in uv__fs_utime()
1155 return utimensat(AT_FDCWD, req->path, ts, 0); in uv__fs_utime()
1193 struct timespec ts[2]; in uv__fs_lutime() local
1194 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_lutime()
1195 ts[1] = uv__fs_to_timespec(req->mtime); in uv__fs_lutime()
1196 return utimensat(AT_FDCWD, req->path, ts, AT_SYMLINK_NOFOLLOW); in uv__fs_lutime()