c/syscall/unix

This commit is contained in:
xushiwei
2024-07-12 00:59:32 +08:00
parent 11682e487e
commit 68f70af2f3
12 changed files with 153 additions and 3 deletions

View File

@@ -4,8 +4,12 @@
package exec
import "syscall"
import (
"syscall"
"github.com/goplus/llgo/c/syscall/unix"
)
func unixEaccess(path string, mode uint32) error {
return syscall.Faccessat(AT_FDCWD, path, mode, AT_EACCESS)
return syscall.Faccessat(unix.AT_FDCWD, path, mode, unix.AT_EACCESS)
}

View File

@@ -7,7 +7,6 @@
package os
import (
"io/fs"
"runtime"
)
@@ -173,7 +172,10 @@ func (d *unixDirent) Info() (FileInfo, error) {
}
func (d *unixDirent) String() string {
/* TODO(xsw):
return fs.FormatDirEntry(d)
*/
panic("todo: os.unixDirent.String")
}
/* TODO(xsw):