diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-06 00:38:38 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-06 00:38:38 +1000 |
commit | da227003c7f9cd999ec230c3004378b215daa433 (patch) | |
tree | fefa633fef518525b1dec646f59caafe7767198a /vendor/golang.org/x/sys/unix/dirent.go | |
parent | 6126ddd373ddf18b96566eb1ddc204f017b449cb (diff) |
use dep
Diffstat (limited to 'vendor/golang.org/x/sys/unix/dirent.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/dirent.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/dirent.go b/vendor/golang.org/x/sys/unix/dirent.go new file mode 100644 index 000000000..95fd35317 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dirent.go @@ -0,0 +1,17 @@ +// Copyright 2009 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 dragonfly freebsd linux nacl netbsd openbsd solaris + +package unix + +import "syscall" + +// ParseDirent parses up to max directory entries in buf, +// appending the names to names. It returns the number of +// bytes consumed from buf, the number of entries added +// to names, and the new names slice. +func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { + return syscall.ParseDirent(buf, max, names) +} |