Fix "PR c++/92804 ICE trying to use concept as a nested-name-specifier"
[official-gcc.git] / libgo / go / syscall / libcall_solaris_regfile.go
blobfa5dd8c65a8e53b48f6e3f0ad788bcbfa5874cb0
1 // Copyright 2017 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.
5 // +build solaris,amd64 solaris,sparc64
7 package syscall
9 //sys Getdents(fd int, buf []byte) (n int, err error)
10 //getdents(fd _C_int, buf *byte, nbyte Size_t) _C_int
12 func ReadDirent(fd int, buf []byte) (n int, err error) {
13 return Getdents(fd, buf)