golang.org/x/sys@v0.9.0/unix/syscall_aix_ppc.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build aix && ppc 6 // +build aix,ppc 7 8 package unix 9 10 //sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64 11 //sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek64 12 13 //sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) 14 15 func setTimespec(sec, nsec int64) Timespec { 16 return Timespec{Sec: int32(sec), Nsec: int32(nsec)} 17 } 18 19 func setTimeval(sec, usec int64) Timeval { 20 return Timeval{Sec: int32(sec), Usec: int32(usec)} 21 } 22 23 func (iov *Iovec) SetLen(length int) { 24 iov.Len = uint32(length) 25 } 26 27 func (msghdr *Msghdr) SetControllen(length int) { 28 msghdr.Controllen = uint32(length) 29 } 30 31 func (msghdr *Msghdr) SetIovlen(length int) { 32 msghdr.Iovlen = int32(length) 33 } 34 35 func (cmsg *Cmsghdr) SetLen(length int) { 36 cmsg.Len = uint32(length) 37 } 38 39 func Fstat(fd int, stat *Stat_t) error { 40 return fstat(fd, stat) 41 } 42 43 func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error { 44 return fstatat(dirfd, path, stat, flags) 45 } 46 47 func Lstat(path string, stat *Stat_t) error { 48 return lstat(path, stat) 49 } 50 51 func Stat(path string, statptr *Stat_t) error { 52 return stat(path, statptr) 53 }