libcall_solaris_regfile.go 412 B

1234567891011121314
  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.
  4. // +build solaris,amd64 solaris,sparc64
  5. package syscall
  6. //sys Getdents(fd int, buf []byte) (n int, err error)
  7. //getdents(fd _C_int, buf *byte, nbyte Size_t) _C_int
  8. func ReadDirent(fd int, buf []byte) (n int, err error) {
  9. return Getdents(fd, buf)
  10. }