// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package syscallimportfunc (, int64) Timespec {returnTimespec{Sec: , Nsec: }}func (, int64) Timeval {returnTimeval{Sec: , Usec: int32()}}//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_fstat64//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_fstatfs64//sysnb Gettimeofday(tp *Timeval) (err error)//sys Lstat(path string, stat *Stat_t) (err error) = SYS_lstat64//sys Stat(path string, stat *Stat_t) (err error) = SYS_stat64//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_statfs64//sys fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_fstatat64//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptracefunc ( *Kevent_t, , , int) { .Ident = uint64() .Filter = int16() .Flags = uint16()}func ( *Iovec) ( int) { .Len = uint64()}func ( *Msghdr) ( int) { .Controllen = uint32()}func ( *Cmsghdr) ( int) { .Len = uint32()}func ( int, int, *int64, int) ( int, error) {var = uint64() , , := syscall6(funcPC(libc_sendfile_trampoline), uintptr(), uintptr(), uintptr(*), uintptr(unsafe.Pointer(&)), 0, 0) = int()if != 0 { = }return}func ()//go:linkname libc_sendfile libc_sendfile//go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"// Implemented in the runtime package (runtime/sys_darwin_64.go)func (, , , uintptr) (, uintptr, Errno)func (, , , , , , , , , uintptr) (, uintptr, Errno)
The pages are generated with Goldsv0.3.6. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.