* cp-tree.h (build_noexcept_spec, add_exception_specifier): Adjust
[official-gcc.git] / libgo / go / syscall / syscall_aix.go
blob231ff40500f2cc6f22930a32f87758bd6f5121ea
1 // Copyright 2017 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.
5 package syscall
7 import "unsafe"
9 func (ts *StTimespec) Unix() (sec int64, nsec int64) {
10 return int64(ts.Sec), int64(ts.Nsec)
13 func (ts *StTimespec) Nano() int64 {
14 return int64(ts.Sec)*1e9 + int64(ts.Nsec)
17 func direntIno(buf []byte) (uint64, bool) {
18 return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
21 func direntReclen(buf []byte) (uint64, bool) {
22 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
25 func direntNamlen(buf []byte) (uint64, bool) {
26 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))