Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyToCStruct ¶ added in v0.8.0
func CopyToCStruct(ts Timespec, cts CTimespecPtr)
CopyToCStruct copies the time values from a Timespec to a previously allocated C `struct timespec`. Due to restrictions on Cgo the C pointer must be passed via the CTimespecPtr wrapper.
Types ¶
type CTimespecPtr ¶
CTimespecPtr is an unsafe pointer wrapping C's `struct timespec`.
type Timespec ¶
Timespec behaves similarly to C's struct timespec. Timespec is used to retain fidelity to the C based file systems apis that could be lossy with the use of Go time types.
func CStructToTimespec ¶
func CStructToTimespec(cts CTimespecPtr) Timespec
CStructToTimespec creates a new Timespec for the C 'struct timespec'.
Click to show internal directories.
Click to hide internal directories.