|
|
@@ -943,6 +943,21 @@ func libc_chroot_trampoline()
|
|
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
|
+func ClockGettime(clockid int32, time *Timespec) (err error) {
|
|
|
+ _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
|
|
+ if e1 != 0 {
|
|
|
+ err = errnoErr(e1)
|
|
|
+ }
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
+func libc_clock_gettime_trampoline()
|
|
|
+
|
|
|
+//go:linkname libc_clock_gettime libc_clock_gettime
|
|
|
+//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
|
|
|
+
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
+
|
|
|
func Close(fd int) (err error) {
|
|
|
_, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
|
|
|
if e1 != 0 {
|