mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
13 lines
233 B
Go
13 lines
233 B
Go
//go:build !windows && !linux
|
|
|
|
package timezone
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func openDirectory(path string) (fd int, err error) {
|
|
const O_PATH = 0x00400000
|
|
return unix.Open(path, unix.O_RDONLY|O_PATH|unix.O_CLOEXEC, 0)
|
|
}
|