Files
llgo/internal/lib/os/exec/unix_eaccess_linux.go

16 lines
362 B
Go
Raw Normal View History

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
}