...
Source file src/pkg/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
1
2
3
4
5 package unix
6
7 import (
8 "syscall"
9 )
10
11 func setTimespec(sec, nsec int64) Timespec {
12 return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
13 }
14
15 func setTimeval(sec, usec int64) Timeval {
16 return Timeval{Sec: int32(sec), Usec: int32(usec)}
17 }
18
19
20 func Gettimeofday(tv *Timeval) (err error) {
21
22
23
24 sec, usec, err := gettimeofday(tv)
25 tv.Sec = int32(sec)
26 tv.Usec = int32(usec)
27 return err
28 }
29
30 func SetKevent(k *Kevent_t, fd, mode, flags int) {
31 k.Ident = uint32(fd)
32 k.Filter = int16(mode)
33 k.Flags = uint16(flags)
34 }
35
36 func (iov *Iovec) SetLen(length int) {
37 iov.Len = uint32(length)
38 }
39
40 func (msghdr *Msghdr) SetControllen(length int) {
41 msghdr.Controllen = uint32(length)
42 }
43
44 func (cmsg *Cmsghdr) SetLen(length int) {
45 cmsg.Len = uint32(length)
46 }
47
48 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
49
50
51
52 const SYS___SYSCTL = SYS_SYSCTL
53
54
55
56
57
58
59
60
61
62 func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
63 return 0, ENOSYS
64 }
65
View as plain text