runtime/internal/lib/os: fix readdir for darwin-amd64

This commit is contained in:
visualfc
2025-08-26 17:15:43 +08:00
parent cf2d1ef9ca
commit 69fe6d6377
8 changed files with 76 additions and 32 deletions

View File

@@ -0,0 +1,17 @@
package os
import (
_ "unsafe"
c "github.com/goplus/llgo/runtime/internal/clite"
)
type DIR struct {
Unused [0]byte
}
//go:linkname Opendir C.opendir
func Opendir(name *c.Char) *DIR
//go:linkname Closedir C.closedir
func Closedir(dir *DIR) c.Int