mirror of
https://github.com/golang/go
synced 2024-11-18 16:04:44 -07:00
14 lines
320 B
Go
14 lines
320 B
Go
|
// Copyright 2018 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.
|
||
|
|
||
|
// +build darwin freebsd openbsd netbsd
|
||
|
|
||
|
package fastwalk
|
||
|
|
||
|
import "syscall"
|
||
|
|
||
|
func direntNamlen(dirent *syscall.Dirent) uint64 {
|
||
|
return uint64(dirent.Namlen)
|
||
|
}
|