Lines Matching refs:tv
226 struct timeval tv; in UV_UNUSED() local
227 tv.tv_sec = time; in UV_UNUSED()
228 tv.tv_usec = (time - tv.tv_sec) * 1e6; in UV_UNUSED()
229 if (tv.tv_usec < 0) { in UV_UNUSED()
230 tv.tv_usec += 1e6; in UV_UNUSED()
231 tv.tv_sec -= 1; in UV_UNUSED()
233 return tv; in UV_UNUSED()
251 struct timeval tv[2]; in uv__fs_futime()
252 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_futime()
253 tv[1] = uv__fs_to_timeval(req->mtime); in uv__fs_futime()
255 return futimesat(req->file, NULL, tv); in uv__fs_futime()
257 return futimes(req->file, tv); in uv__fs_futime()
1161 struct timeval tv[2]; in uv__fs_utime()
1162 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_utime()
1163 tv[1] = uv__fs_to_timeval(req->mtime); in uv__fs_utime()
1164 return utimes(req->path, tv); in uv__fs_utime()
1201 struct timeval tv[2]; in uv__fs_lutime()
1202 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_lutime()
1203 tv[1] = uv__fs_to_timeval(req->mtime); in uv__fs_lutime()
1204 return lutimes(req->path, tv); in uv__fs_lutime()