GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TV(3ast) TV(3ast)

tv - high resolution time support

#include <tv.h>

The tv library supports high resolution Tv_t time specifications. Tv_t contains these elements:

time_t tv_sec
Seconds since the epoch.
uint32_t tv_nsec
Nanosecond resolution.

In practice resolution is much coarser than 1 nanosecond. Systems that only support 1 second resolution always set tv_nsec to 0.

Sets tv to the current time. 0 is returned on success, -1 on error.

Sets the system time to tv. The caller must have sufficient privilege. 0 is returned on success, -1 on error.

Compares the times av and bv and returns -1 if av is less than bv, 0 if av is equal to bv, and 1 if av is greater than bv.

These macros set tv to the st the access, modify, or change time, respectively. The seconds portion of tv is returned.

These macros set the st access, modify, or change time, respectively, to tv. The seconds portion of tv is returned.

Sets the file path access time from av, modify time from mv, and change time from cv. Any of av, mv, and cv may be 0; the corresponding file time will retain the previous value if path exists and copy is 1; otherwise the corresponding file time will be set to the current time. 0 is returned on success, -1 on error.

Pauses execution for tv time. 0 is returned if the full tv amount has expired. Otherwise -1 is returned and rv, if not 0, is set to the sleep time remaining.

Except for tvcmp(), an error return of -1 also sets errno to the corresponding error code.

tm(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.