mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-11-28 06:19:59 +08:00
cf79b1117b
Add blank lines after //sys comments where needed, and then run gofmt on the syscall package with the new formatter. This is the libgo version of CL 407136. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/412074
16 lines
460 B
Go
16 lines
460 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build (solaris && 386) || (solaris && sparc)
|
|
// +build solaris,386 solaris,sparc
|
|
|
|
package syscall
|
|
|
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
|
//getdents64(fd _C_int, buf *byte, nbyte Size_t) _C_int
|
|
|
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
|
return Getdents(fd, buf)
|
|
}
|