Debian Codegraph @

libgo/go/syscall/libcall_solaris_largefile.go

raw
1 // Copyright 2019 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 //go:build (solaris && 386) || (solaris && sparc)
6 // +build solaris,386 solaris,sparc
7
8 package syscall
9
10 //sys Getdents(fd int, buf []byte) (n int, err error)
11 //getdents64(fd _C_int, buf *byte, nbyte Size_t) _C_int
12
13 func ReadDirent(fd int, buf []byte) (n int, err error) {
14 return Getdents(fd, buf)
15 }