syscall: fixes for Solaris
[official-gcc.git] / libgo / go / syscall / libcall_solaris.go
bloba02661401a8ae7a64b825b0a3b306f71d37c815b
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 package syscall
7 //sys Getdents(fd int, buf []byte) (n int, err error)
8 //getdents(fd _C_int, buf *byte, nbyte Size_t) _C_int
10 func ReadDirent(fd int, buf []byte) (n int, err error) {
11 return Getdents(fd, buf)