blob: 95fd353171fa8cae3f7cdedd13715f9020281b8f [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001// Copyright 2009 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// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
6
7package unix
8
9import "syscall"
10
11// ParseDirent parses up to max directory entries in buf,
12// appending the names to names. It returns the number of
13// bytes consumed from buf, the number of entries added
14// to names, and the new names slice.
15func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
16 return syscall.ParseDirent(buf, max, names)
17}