mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 07:07:33 -04:00
unix: remove un-used ptrSize
Same as CL 202881. Change-Id: Idc85bd23574c437c711b40155b49621e35ef571b Reviewed-on: https://go-review.googlesource.com/c/sys/+/203237 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
e66fe6eb8e
commit
b4ff53e7a1
@@ -27,8 +27,6 @@ func libc_fdopendir_trampoline()
|
|||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
||||||
const ptrSize = unsafe.Sizeof(uintptr(0))
|
|
||||||
|
|
||||||
// We store the number of entries to skip in the seek
|
// We store the number of entries to skip in the seek
|
||||||
// offset of fd. See issue #31368.
|
// offset of fd. See issue #31368.
|
||||||
// It's not the full required semantics, but should handle the case
|
// It's not the full required semantics, but should handle the case
|
||||||
|
|||||||
Reference in New Issue
Block a user