2024-07-11 18:44:06 +08:00
|
|
|
// Copyright 2022 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 exec
|
|
|
|
|
|
2024-07-12 00:59:32 +08:00
|
|
|
import (
|
|
|
|
|
"syscall"
|
|
|
|
|
|
|
|
|
|
"github.com/goplus/llgo/c/syscall/unix"
|
|
|
|
|
)
|
2024-07-11 18:44:06 +08:00
|
|
|
|
|
|
|
|
func unixEaccess(path string, mode uint32) error {
|
2024-07-12 00:59:32 +08:00
|
|
|
return syscall.Faccessat(unix.AT_FDCWD, path, mode, unix.AT_EACCESS)
|
2024-07-11 18:44:06 +08:00
|
|
|
}
|