1
0
mirror of https://github.com/golang/go synced 2024-11-24 12:20:17 -07:00
go/src/syscall/export_freebsd_test.go
Yuval Pavel Zholkover 5a7cfbc011 syscall: swap src, dest arguments in convertFromDirents11 for FreeBSD
make fixedSize, oldFixedSize constants.
use st instead of stat for function arg so that we do not shadow the stat() function.

dstPos+reclen == len(buf) is a valid write location, update the break condition.

Change-Id: I55f9210f54d24a3f9cda1ebab52437436254f8f4
Reviewed-on: https://go-review.googlesource.com/c/143637
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-10-24 15:43:41 +00:00

13 lines
304 B
Go

// Copyright 2018 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.
package syscall
type Dirent_freebsd11 = dirent_freebsd11
var (
Roundup = roundup
ConvertFromDirents11 = convertFromDirents11
)