Debian Codegraph @

libgo/go/syscall/syscall_darwin.go

raw
1 // Copyright 2009,2010 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 package syscall
6
7 import (
8 "internal/abi"
9 "unsafe"
10 )
11
12 func direntIno(buf []byte) (uint64, bool) {
13 return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
14 }
15
16 func direntReclen(buf []byte) (uint64, bool) {
17 return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
18 }
19
20 func direntNamlen(buf []byte) (uint64, bool) {
21 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
22 }