aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go
blob: a3b26a7bae0bfa6af831cbb25068a94296aac0ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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)
}